• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Working script ??

mahant

Banned User
Joined
May 15, 2010
Messages
111
Reaction score
1
Code:
function onEquip(cid, item, slot)
        if getPlayerVocation(cid) == 1 then
doPlayerSetVocation(cid, 9)
doRemoveItem(item.uid, 1)

elseif getPlayerVocation(cid) == 2 then
doPlayerSetVocation(cid, 10)
doRemoveItem(item.uid, 1)

elseif getPlayerVocation(cid) == 3 then
doPlayerSetVocation(cid, 11)
doRemoveItem(item.uid, 1)

elseif getPlayerVocation(cid) == 4 then
doPlayerSetVocation(cid, 12)
doRemoveItem(item.uid, 1)

end

this can work ? or someone can fix this?
 
Try liek this
Code:
function onEquip(cid, item, slot)
	doPlayerSetVocation(cid, getPlayerVocation(cid) + 8)
	doRemoveItem(item.uid, 1)
end
 
You are missing an "end" at the end of the script. Add 1x more "end" at the bottom and the script should work.
 
Back
Top