• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action Statue of Resident UPDATE for Evolutions 0.7.8

Solid Snake

New Member
Joined
Jun 9, 2007
Messages
4
Reaction score
0
Hellou...
Here put is the Statue of Resident:
Code:
function onUse(cid, item, frompos, item2, topos)

townid = ?
pos = {x=???, y=???, z=?}
if item.uid == 1507 then
    
getPlayerTown(cid)
doPlayerSetTown(cid,townid)
doTeleportThing(cid,pos)
doSendMagicEffect(pos,10)
    
else
doPlayerSendCancel(cid,"You can't live on ... City.")
  
end

return 1

end

And in actions.xml:
Code:
<action uniqueid="1507" script="resident_city.lua" />

Variables:
if item.uid == 1507 then: Here put the UniqueID of the Statue.
townid = ?Here put urs TownID:
For that... guide for this images:
OTMapEditor

ejemplo1lw9.jpg


ejemplo2gs2.jpg


ddddik1.jpg


pos = {x=???, y=???, z=?}: position of temple...
It's all...
Dudes? Post.
PD: Sorry for my bad english... I'm Chilean.
Original Post by Me on OTServHispano:
http://www.otservhispano.com/showthread.php?tid=17748

It's all.
 
Last edited:
lol use it..
Code:
function onUse(cid, item, frompos, item2, topos)

townid = ?
pos = {x=???, y=???, z=?}


doPlayerSetTown(cid,townid)
doTeleportThing(cid,pos)
doSendMagicEffect(pos,10)


return 1
end
 
@Fokuleh
Obviously, because tfs has all those functions and more :p
 
Back
Top