Russistheman
New Member
- Joined
- Oct 20, 2007
- Messages
- 28
- Reaction score
- 1
Is onAdvance supported in [9.60/9.61] The Forgotten Server v0.2.14 (Mystic Spirit)?
test.lua
creaturescripts.xml
login.lua
Nothing happens, no errors...?
test.lua
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL then
doCreatureSay(cid,"IT WORKS!",1)
doSendMagicEffect(getThingPos(cid), 28)
end
return true
end
creaturescripts.xml
Code:
<event name="lvlup" type="advance" script="test.lua"/>
login.lua
Code:
registerCreatureEvent(cid, "lvlup")
Nothing happens, no errors...?
Last edited by a moderator: