Knight God
Member
- Joined
- Oct 19, 2008
- Messages
- 1,180
- Reaction score
- 21
As I said, I need that script, it is urgent
give reputation to help me
:blink:
give reputation to help me
local config = {
savePlayersOnAdvance = true
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(config.savePlayersOnAdvance) then
doPlayerSave(cid, true)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
end
return true
end
data/creaturescripts/scripts/advancesave.lua
Code:local config = { savePlayersOnAdvance = true } function onAdvance(cid, skill, oldLevel, newLevel) if(config.savePlayersOnAdvance) then doPlayerSave(cid, true) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) end return true end
local config = {
savePlayersOnAdvance = true
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(config.savePlayersOnAdvance) then
doPlayerSave(cid, true)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
end
return true
end
if(config.savePlayersOnAdvance) then
doPlayerSave(cid, true)
end
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))