7804364
Member
- Joined
- Mar 6, 2010
- Messages
- 457
- Reaction score
- 10
Ok so i have this
Im trying to make this work on tfs 1.0 (pulled it from 0.3.6) i want someone with the second promotion, to use this item, and become the thrid promo, EK to imperial guard ect ect
anyone?
bump
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local voc = getPlayerVocation(cid)
if voc < 5 then
doPlayerSendCancel(cid, "You do not have the first promotion.")
elseif voc > 8 then
doPlayerSendCancel(cid, "You already have the second promotion!")
else
doPlayerSetPromotionLevel(cid, 2)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations you are now a\"" ..getPlayerVocationName(cid).. "!\"")
end
return true
end
Im trying to make this work on tfs 1.0 (pulled it from 0.3.6) i want someone with the second promotion, to use this item, and become the thrid promo, EK to imperial guard ect ect
anyone?
bump
Last edited by a moderator: