Odp: Skrypt na Efekty po wbici lvl lub jakiego? skilla
nie polecam, strasznie muli silnik od tego, przy wi?kszej ilo?ci graczy. Przyk?adowy skrypt
Creaturescripts:
[LUA]function onAdvance(cid, skill, oldlevel, newlevel)
local pos = getCreaturePosition(cid)
if skill == SKILL__LEVEL then
doSendAnimatedText(pos, "Level Up!", 150)
doSendMagicEffect(pos, 28)
end
return true
end[/LUA]
PHP:
<event type="advance" name="przyklad" event="script" value="przyklad.lua"/>
login.lua
PHP:
registerCreatureEvent(cid, "przyklad")