Gangstabanga
Advanced User
- Joined
- Aug 26, 2009
- Messages
- 279
- Reaction score
- 13
- Age
- 34
Skrypt na lvl up. Pokazuje Efekt po wbiciu lvl BY Synthetic @ OTFans & OTLand
1.do creaturescripts.xml dodajemy
2.login.lua dodajemy
3.data\creaturescripts\scripts >>Advance.lua<<
1.do creaturescripts.xml dodajemy
Code:
<event type="advance" name="Advance" event="script" value="Advance.lua"/>
Code:
registerCreatureEvent(cid, "Advance")
Code:
-- Credits: Synthetic @ OTFans & OTLand
function onAdvance(cid, skill, oldlevel, newlevel)
local pPos = getPlayerPosition(cid)
if skill == 8 then
doSendAnimatedText(pPos, "Level Up", 210)
doSendMagicEffect(pPos, 28)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
end
return TRUE
end