• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TFS 0.3.4 skill up animation.

Ezzam

New Member
Joined
Jan 16, 2008
Messages
213
Reaction score
2
Code:
<event type="advance" name="anim" event="script" value="[COLOR="Red"][B][U]XXXX[/U][/B][/COLOR].lua"/>


XXXX.lua
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
  doCreatureSay(cid, SKILLS[skill]:gsub("%a", string.upper, 1) .. " UP [" .. newLevel .. "]", TALKTYPE_ORANGE_1)
  return TRUE
end



in login.lua add this live over "return TRUE"
Code:
registerCreatureEvent(cid, "anim")
 
Code:
<event type="advance" name="anim" event="script" value="[COLOR="Red"][B][U]XXXX[/U][/B][/COLOR].lua"/>


XXXX.lua
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
  doCreatureSay(cid, SKILLS[skill]:gsub("%a", string.upper, 1) .. " UP [" .. newLevel .. "]", TALKTYPE_ORANGE_1)
  return TRUE
end



in login.lua add this live over "return TRUE"
Code:
registerCreatureEvent(cid, "anim")

~Fail~
Ripoff from slawkens
 
Sorry for the "ripoff".
A guy helped me by giving the line, and I tought it would be good if other would see the code too. Credits to slawkens
 
Back
Top