Hi,
it is work with TFS 0.3+
Create new lua and add this:
then add login.lua under fuction onLogin:
and creaturescripts.xml
it is work with TFS 0.3+
Create new lua and add this:
Code:
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
then add login.lua under fuction onLogin:
Code:
registerCreatureEvent(cid, "playeradvance")
and creaturescripts.xml
Code:
<event type="advance" name="playeradvance" script="advance.lua"/>