[8.54]
Witam, mam skrypt na transform w spells wszystko ?adnie git. Dodaje HP i MP.
Ale jest problem gdy na transie sie wyloguje zostaje HP i MP chodzi o to ze mozna bugowac.
O to moje starania w creaturescript.
Plik creaturescript>scripts>onLogout.lua
W Login.Lua doda?em linijk?:
W creaturescript.xml:
I Nie dzia?a. Jestem s?aby w tych rzeczach. Prosze o pomoc.
Witam, mam skrypt na transform w spells wszystko ?adnie git. Dodaje HP i MP.
Ale jest problem gdy na transie sie wyloguje zostaje HP i MP chodzi o to ze mozna bugowac.
O to moje starania w creaturescript.
Plik creaturescript>scripts>onLogout.lua
Kod:
local first = -500
local second = -1300
local third = -2300
function onLogout(cid)
if getPlayerStorageVaule(cid, 1001) == 2
doCreatureAddHealth(cid, first)
doCreatureAddMana(cid, first)
end
if getPlayerStorageVaule(cid, 1001) == 3
doCreatureAddHealth(cid, second)
doCreatureAddMana(cid, second)
end
if getPlayerStorageVaule(cid, 1001) == 4
doCreatureAddHealth(cid, third)
doCreatureAddMana(cid, third)
end
end
return true
end
W Login.Lua doda?em linijk?:
Kod:
registerCreatureEvent(cid, "Wyloguj")
W creaturescript.xml:
Kod:
<event type="logout" name="wyloguj" event="script" value="onLogout.lua"/>
I Nie dzia?a. Jestem s?aby w tych rzeczach. Prosze o pomoc.

