• 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!

Lua third promotion item tfs 1.0

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
Ok so i have this
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:
Back
Top