perfection
FATAL DAMAGE
- Joined
- Aug 27, 2011
- Messages
- 196
- Reaction score
- 8
on data/creaturescripts/scripts/Promotion.lua
and in creaturescripts.xml
and in login.lua add
hope u like it
Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
if getPlayerLevel(cid) >= 20 and (getPlayerStorageValue(cid, 10200)) ~= 1 then
setPlayerPromotionLevel(cid, 1)
doPlayerAddPremiumDays(cid, 350)
doPlayerSendTextMessage(cid,22,"You Have Successfully been Promoted And Recieved 350 Premium Days For Reaching level 20 Successfully.")
setPlayerStorageValue(cid, 10200, 1)
end
return 1
end
and in creaturescripts.xml
XML:
<event type="advance" name="Promotion" event="script" value="Promotion.lua"/>
and in login.lua add
Lua:
registerCreatureEvent(cid, "Promotion")
hope u like it