dualshock3
New Member
- Joined
- May 14, 2010
- Messages
- 89
- Reaction score
- 3
how can i add exhaustion to my teleport command, here it is my lua if needed:
Code:
local teleport = {
['temple'] = {x=100, y=678, z=7},
['depot'] = {x=64, y=674, z=7},
}
function onSay(cid, words, param, channel)
local s = teleport[param:lower()]
if s then
if getCreatureCondition(cid, CONDITION_INFIGHT)== false then
doTeleportThing(cid, s)
doSendMagicEffect(s, CONST_ME_TELEPORT)
else
doPlayerSendCancel(cid, 'You are currently in a fight.')
end
else
doPlayerSendCancel(cid, 'Destination doesn\'t exist.')
end
return true
end