mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
24 lines
No EOL
701 B
Lua
Executable file
24 lines
No EOL
701 B
Lua
Executable file
--[[
|
|
Script Name : ItemScripts/cadavers_dram.lua
|
|
Script Purpose : cavader's dram
|
|
Script Author : theFoof
|
|
Script Date : 2013.7.24
|
|
Script Notes :
|
|
--]]
|
|
|
|
local BecomingOrcbane = 81
|
|
|
|
function used(Item, Player)
|
|
if GetQuestStep(Player, BecomingOrcbane) == 1 then
|
|
local target = GetTarget(Player)
|
|
if GetSpawnID(target) == 4700105 then
|
|
if GetHP(target) < GetMaxHP(target) * .20 then
|
|
CastEntityCommand(Player, target, 1299, "cadaver's dram")
|
|
else
|
|
SendMessage(Player, "You must use this on a Ry'Gorr tunneler that is under 20 percent life.", "yellow")
|
|
end
|
|
else
|
|
SendMessage(Player, "You can only use this on a Ry'Gorr tunneler.", "yellow")
|
|
end
|
|
end
|
|
end |