EQ2EMu/server/ItemScripts/Bogchild's_Iced_Trap.lua
Image 548007ea96 Base
Starting point..!
2020-02-28 09:17:24 -05:00

19 lines
No EOL
671 B
Lua

--[[
Script Name : ItemScripts/Bogchild's_Iced_Trap.lua
Script Purpose : Handles the item "Bogchild's Iced Trap"
Script Author : theFoof
Script Date : 2013.5.20
Script Notes :
--]]
function used(Item, Player)
target = GetTarget(Player)
if GetName(target) == 'a snowpack' or GetName(target) == 'an iceflow' then
if IsInCombat(target) then
SendMessage(Player, "You can only use this on an iceflow or snowpack that is not currently engaged in combat.", "yellow")
else
CastEntityCommand(Player, target, 1274, "Bogchild's Iced Trap")
end
else
SendMessage(Player, "You can only use this on an iceflow or a snowpack.", "yellow")
end
end