eq2emu-content/ItemScripts/IcemaneLeash.lua
2025-08-07 00:00:06 +00:00

11 lines
347 B
Lua
Executable file

local IcemanesCometh = 18
function used(Item, Player)
if GetQuestStep(Player, IcemanesCometh) == 1 then
target = GetTarget(Player)
if GetName(target) == 'an icemane cub' then
if not (GetInfoStructUInt(target, "engaged_encounter") == 1) then
CastEntityCommand(Player, target, 1278, "Leash")
end
end
end
end