OmegaOT
Discontinued|Working on something new
- Joined
- Dec 2, 2014
- Messages
- 12
- Reaction score
- 2
This has been boggling my mind all day, so you create a character from acct manager, it spawns and you pick a voc from there, once you pick the voc it goes straight to temple. But, when a player is relogged, the vocation is reset back to no vocation and I can't figure out why. This is my code for vocation 4 (Infernalist)
Any help?
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local playerVoc = getPlayerVocation(cid)
local pos = {x=1018, y=1026, z=7}
if playerVoc == 0 then
doTeleportThing(cid, pos)
doPlayerSetVocation(cid, 4)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doCreatureSay(cid, "You have chosen Infernalist as your Vocation!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "You have already chosen a vocation!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doTeleportThing(cid, fromPosition, TRUE)
return false
end
end
Any help?