function onStepIn(cid, item, pos)
local town = {x=?????, y=?????, z=?}
if item.actionid == TILE ACTIONID then
doPlayerSetTown(cid,TOWN ID)
doTeleportThing(cid,town)
doSendMagicEffect(getCreaturePosition(cid),12)
doPlayerSendTextMessage(cid,22, "You are now a citzen of NAME OF TOWN")
end
return 1
end
TFS Developers napisali takowy.
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
haha ;D no tak, czemu ja na to nie wpadlem ?hahahahahahahhahaha