pomoc

matek53

Active User
Zarejestrowany
Dołączył
Sierpień 12, 2009
Posty
53
Liczba reakcji
0
Jak zrobi? ?e by posta? na zawsze gdy spadnie lvl po ni?ej 7 to awansuje posta? do 8lvl a gdy wbijemy wi?kszy lvl to nam zostanie ? i jak zrobi? ?eby spada? tylko lvl a nie skill ?
 
Odp: pomoc

1.
creaturescripts.xml
PHP:
	<event type="login" name="8lev" event="script" value="8lev.lua"/>
login.lua
PHP:
registerCreatureEvent(cid,"8lev")
8lev.lua
PHP:
function onLogin(cid)
local lev = 4200-getPlayerExperience(cid)
if getPlayerLevel(cid) <= 7 then
doPlayerAddExperience(cid,lev)
end
return true
end
 
Back
Do góry