Theres a wall (hive wall in this case) and when i click on it i want to move to other side of it, like quest door etc.
TFS 0.3.
IF possible and you have enough skill is it possible to make the scirpt that i dont have to add every X/Y position.
If not thats fine too.
like this
Thanks.
TFS 0.3.
IF possible and you have enough skill is it possible to make the scirpt that i dont have to add every X/Y position.
If not thats fine too.
like this
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerVipDays(cid) >= 1 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
return true
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Only VIP Account can go there.')
end
return true
end
Thanks.
Last edited: