Hello, i need help to fix my script, i was creating a 8.6 server but decided to go 10.99, but this scripts its not working (maybe cuz there are different functions on these TFS)
what script did on 8.6:
when enter on teleport the player: join X guild, Set X townind and send a message to the player.
thanks in advice!
what script did on 8.6:
when enter on teleport the player: join X guild, Set X townind and send a message to the player.
Code:
local id = 6000 --this is the action id u need to edit to the item in map editor
local place = {x=607, y=606, z=10} --location where player will be tped
function onStepIn(cid, item, position, fromPosition)
if item.actionid == id then
doTeleportThing(cid, place)
doPlayerSetTown(cid, 4)
doPlayerSetGuildId(cid, 5)
doPlayerPopupFYI(cid, "You are now a member of the Fire Nation, please relog to save this change. THE WAR SYSTEM IS ACTIVE UNTIL LEVEL 100. Enjoy the battle!")
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif item.actionid ~= id then
end
end
thanks in advice!