@exique:
You aren't, Sherlok is.![]()
Shut the fuck up.
He's requesting the NPC, not vocation entries![]()
if (msg == "promotion") then
if (getPlayerStorageValue(cid, 1337) > 0) then
if (doPlayerRemoveMoney(cid, 10000000) == TRUE) then
doPlayerSetPromotionLevel(cid, promotion level of new voc)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
npcHandler:selfSay("You are now promoted to promotion level 2!", cid)
else
npcHandler:selfSay("You haven't enough gold!", cid)
end
else
npcHandler:selfSay("Sorry, but you aren't vip!", cid)
end
end
Take this piece of code:
Code:if (msg == "promotion") then if (getPlayerStorageValue(cid, 1337) > 0) then if (doPlayerRemoveMoney(cid, 10000000) == TRUE) then doPlayerSetPromotionLevel(cid, promotion level of new voc) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) npcHandler:selfSay("You are now promoted to promotion level 2!", cid) else npcHandler:selfSay("You haven't enough gold!", cid) end else npcHandler:selfSay("Sorry, but you aren't vip!", cid) end end