Hello today i was going to update my server to the newest tfs (0,3)
And then when i were testing my action scripts i relized that
my super vocation script does not work.
It works like this
You get an item from shop and when you use it will make you to an "super druid" etc,
when i use this item, on 0.3 My vocation is being super druid but then when i relog i reloged i saw my vocation and it said "you are . "
Here is my script
Thanks in Advance!
And then when i were testing my action scripts i relized that
my super vocation script does not work.
It works like this
You get an item from shop and when you use it will make you to an "super druid" etc,
when i use this item, on 0.3 My vocation is being super druid but then when i relog i reloged i saw my vocation and it said "you are . "
Here is my script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == 5 then
doPlayerSetVocation(cid, 12)
doCreatureSay(cid, "You are now a Super Sorcerer!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 6 then
doPlayerSetVocation(cid, 11)
doCreatureSay(cid, "You are now a Super Druid!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 7 then
doPlayerSetVocation(cid, 10)
doCreatureSay(cid, "You are now a Super Paladin!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 8 then
doPlayerSetVocation(cid, 9)
doCreatureSay(cid, "You are now a Super Knight!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
end
end
Thanks in Advance!
Last edited: