How Would I add a level restriction to that script?Code:function Teleport_onUse (pUnit, Event, pMisc) pMisc:Teleport (1, 4623.913086, -3842.872803, 980) end RegisterGameObjectEvent (1999999, 2, 'Teleport_onUse')
How Would I add a level restriction to that script?Code:function Teleport_onUse (pUnit, Event, pMisc) pMisc:Teleport (1, 4623.913086, -3842.872803, 980) end RegisterGameObjectEvent (1999999, 2, 'Teleport_onUse')
function Teleport_onUse (pUnit, Event, pMisc)
if(pUnit:GetLevel()) => yourrequirement then
pMisc:Teleport (1, 4623.913086, -3842.872803, 980)
end
else
pUnit:SendChatMessage(x, x, "You do not meet the level requirement of x")
RegisterGameObjectEvent (1999999, 2, 'Teleport_onUse')
thanks I have been looking for this also +rep
edit: must spread first also I am glad to see it is rep again and no longer karma lol