• 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!

Teleport Citizen of a City.

jpkulik

New Member
Joined
Mar 15, 2008
Messages
208
Reaction score
2
Hello all!
Im needing some help to make a teleport to make a playerCitizen ofa city.
I have a script.
There is it:
function onStepIn(cid, item, position, fromPosition)
if item.actionid > 30020 and item.actionid < 30100 then
doPlayerSetTown(cid, item.actionid - 30020)
end
return TRUE
end
But, what i have to do?
If some one cam explait it is good.
I have to pot actionID in the teleport on the map?
How to expecific the town, becouse i have 2 towns in my map.
Some one cam teatch it please? :D
Tankyou

PS:Im newbie please? :()
 
Okay, i made it on teleport, now in the Script, i need to do something else?
Note: Teleport now is action ID = 30022 (2 = MyID Town)
ANd in the scrit just let it like this or change any thing?
 
Okay! It works! :D
Tank you fella, i apreciatte it.
But..
If is possible, how i can add a mensage, like, You Become a citizen of CITY NAME.
Tankyou
:D
 
Last edited:
function onStepIn(cid, item, position, fromPosition)
if item.actionid > 30020 and item.actionid < 30100 then
doPlayerSetTown(cid, item.actionid - 30020)
if getPlayerTown(cid) == 1 then
doSendAnimatedText(playerPos, 'You became citizen of a TOWN1NAME', TEXTCOLOR_GOLD)
elseif getPlayerTown(cid) == 2 then
doSendAnimatedText(playerPos, 'You became citizen of a TOWN2NAME', TEXTCOLOR_GOLD)
elseif getPlayerTown(cid) == 3 then
doSendAnimatedText(playerPos, 'You became citizen of a TOWN3NAME', TEXTCOLOR_GOLD)
--Etc
--to add a new town paste this ABOVE "--Etc"
--elseif getPlayerTown(cid) == TOWNID then
--doSendAnimatedText(playerPos, 'You became citizen of a TOWNNAME', TEXTCOLOR_GOLD)
end
end
return TRUE
end
 
Last edited:
Back
Top