Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local newVocation = 8
- local newArmor = 2222
- local slotArm = getPlayerSlotItem(cid, CONST_SLOTARMOR)
- if getPlayerStorageValue(cid, 8343) < 0 then
- setPlayerStorageValue(cid, 93829, 1)
- setPlayerStorageValue(cid, 93830, newVocation)
- doPlayerSetVocation(cid, newVocation)
- doPlayerAddItem(cid, slotArm.itemitemid, 1)
- doTransformItem(slotArm.uid, newArmor)
- else
- doPlayerSendCancel(cid, "Sorry, you can't do it.")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement