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

skillup & spells script!!

kozin

OrgeaRPG Project!
Joined
Mar 8, 2008
Messages
487
Reaction score
0
Location
Sweden
hello, if you have playd on unline.org then you know that they got this scriptV


When you do a spell, its come with red text the spell name, wants to know how to do that script
unline1.jpg

when you advance its come a animatedtext with that thing you advanced
unline2.jpg
 
1) in config lua ;

Lua:
    spellNameInsteadOfWords = "yes"
    emoteSpells = "yes"

2) go in your creaturescripts/scripts folder, make a advance.lua
than put this;

Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
skillnames={'Fist','Club','Sword','Axe','Distance','Shield','Fishing','Magic','Level'}

     doSendAnimatedText(getCreaturePosition(cid), '' ..skillnames[skill+1].. ' Up!', math.random(1,254))
doSendMagicEffect(getCreaturePosition(cid),29)
end

and in your creaturescripts.xml paste this;
PHP:
<event type="advance" name="playeradvance" script="advance.lua"/>
 
1) in config lua ;

Lua:
    spellNameInsteadOfWords = "yes"
    emoteSpells = "yes"

2) go in your creaturescripts/scripts folder, make a advance.lua
than put this;

Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
skillnames={'Fist','Club','Sword','Axe','Distance','Shield','Fishing','Magic','Level'}

     doSendAnimatedText(getCreaturePosition(cid), '' ..skillnames[skill+1].. ' Up!', math.random(1,254))
doSendMagicEffect(getCreaturePosition(cid),29)
end

and in your creaturescripts.xml paste this;
PHP:
<event type="advance" name="playeradvance" script="advance.lua"/>

The spell script doesn't work for me. No errors or anything, just nothing happens. Added it in login.lua too
 
Back
Top