Hello!
I have an item that I don't want players to use if they are in any kind of battle. For obvious reasons:
I guess you might see why. I don't know howto implent it into the script though, if anyone could help me out, It'd be appriciated! =)
(Using TFS 0.3.6pl1)
I have an item that I don't want players to use if they are in any kind of battle. For obvious reasons:
LUA:
function onUse(cid, item, frompos, item2, topos)
player1pos = getPlayerPosition(cid)
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
temple = {x=223, y=223, z=7}
doSendMagicEffect(topos,12)
doTeleportThing(player1.uid,temple)
doSendMagicEffect(temple,12)
doPlayerSendTextMessage(player1.uid,22,"Temple!")
end
end
I guess you might see why. I don't know howto implent it into the script though, if anyone could help me out, It'd be appriciated! =)
(Using TFS 0.3.6pl1)