Forkz
Well-Known Member
- Joined
- Jun 29, 2020
- Messages
- 380
- Solutions
- 1
- Reaction score
- 89
Hi otlanders,
I use this script to become a resident of a city, however I would like to add that X city can only become a resident if it has "PremiumAccount". My premiumaccount system is from tibia itself.
I use this script to become a resident of a city, however I would like to add that X city can only become a resident if it has "PremiumAccount". My premiumaccount system is from tibia itself.
Lua:
function onStepIn(cid, item, position, fromPosition)
if(item.actionid > 30020 and item.actionid < 30100) then
local townId = (item.actionid - 30020)
doPlayerSetTown(cid, townId)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
end
return true
end