Yea I need a teleport so when you walk through it, it will assign you to a certain guild. I made a script but it doesnt seem to be working, the guildid is 2 and it matches in the database to 2 so i have no idea. Here is the script i have now.
function onStepIn(cid, item, position, fromPosition)
if(item.actionid > 30022) then
doPlayerSetTown(cid, 4)
doPlayerSetGuildId(cid, 2)
end
return true
end