[creaturescripts] Text po wbiciu lvl
Strona 1 z 1
[creaturescripts] Text po wbiciu lvl
Tekst po wbiciu lvl
creaturescripts.xml
i login.lua
- Kod:
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
creaturescripts.xml
- Kod:
<event type="advance" name="LevelUP" event="script" value="levelup.lua"/>
i login.lua
- Kod:
registerCreatureEvent(cid, "LevelUP")
$wirus- Uploader
- Liczba postów : 35
Join date : 16/11/2012
Strona 1 z 1
Permissions in this forum:
Nie możesz odpowiadać w tematach
|
|