• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Level Up Msg [ I will REP++]

Synthetic_

deathzot.net
Joined
Dec 30, 2008
Messages
2,535
Reaction score
575
I know there are a lot of these, but I dislike how they were done. I want it so when you gain a level, you get a message that says "Level Up" In red text, nothing else :p
I'll rep+ for anyone who helps :)
 
In TFS 0.3 is creaturescript 'onAdvance', but do you want script that say in red when player advance in level "level" or level of skill too?
 
LUA:
function onAdvance(cid, skill, oldlevel, newlevel)
local pPos = getPlayerPosition(cid)
         if skill == 0 then
            doSendAnimatedText(pPos, "FIST UP!", 144)
         elseif skill == 1 then
            doSendAnimatedText(pPos, "CLUB UP!", 144)
         elseif skill == 2 then
            doSendAnimatedText(pPos, "SWORD UP!", 144)
         elseif skill == 3 then
            doSendAnimatedText(pPos, "AXE UP!", 144)
         elseif skill == 4 then
            doSendAnimatedText(pPos, "DISTANCE UP!", 144)
         elseif skill == 5 then
            doSendAnimatedText(pPos, "SHIELDING UP!", 144)
         elseif skill == 6 then
            doSendAnimatedText(pPos, "FISHING UP!", 144)
         elseif skill == 7 then
            doSendAnimatedText(pPos, "MAGIC UP!", 144)
         elseif skill == 8 then
            doSendAnimatedText(pPos, "LEVEL UP!", 144)
         end
         return TRUE
end
 
LUA:
function onAdvance(cid, skill, oldlevel, newlevel)
local pPos = getPlayerPosition(cid)
         if skill == 1 then
            doSendAnimatedText(pPos, "CLUB UP!", TEXTCOLOR_RED)
         elseif skill == 2 then
            doSendAnimatedText(pPos, "SWORD UP!", TEXTCOLOR_RED)
         elseif skill == 3 then
            doSendAnimatedText(pPos, "AXE UP!", TEXTCOLOR_RED)
         elseif skill == 7 then
            doSendAnimatedText(pPos, "MAGIC UP!", TEXTCOLOR_RED)
         elseif skill == 8 then
            doSendAnimatedText(pPos, "LEVEL UP!", TEXTCOLOR_RED)
         end
         return TRUE
end
 
shortened it down some.

LUA:
skills = {"FIST UP!","CLUB UP!","SWORD UP!","AXE UP!","DIS UP!","SHIELD UP!","FISH UP!","MAGIC UP!","LEVEL UP!"}
function onAdvance(cid, skill, oldlevel, newlevel)
doSendAnimatedText(getPlayerPosition(cid), skills[(skill + 1)], 144)
return TRUE
end


kind regards, Evil Hero.
 
Back
Top