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
niestety nie jestem tak madry jak ty i nie umiem tego zrobic
function onStepIn(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
novapos = {x=438, y=501, z=8}
if item.uid == 1003 then
doPlayerSetTown(cid,3)
getThingfromPos(playerpos)
doSendMagicEffect(playerpos,2)
doPlayerSendTextMessage(cid,18,"Jestes obywatelem miasta: nazwamiasta")
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,10)
end
end