pawlacz741
New Member
- Joined
- Jan 23, 2009
- Messages
- 90
- Reaction score
- 2
Hello
Can somebody fix mine scripts?
First script It's lvl blocking its working but when i get 370 lvl i get blocked and I'm don't get more exp It's ok. But when i died and get 365 lvl I'm don't getting exp.
Can somebody fix mine script to only working when ppl have 370 lvl?
Seond is lvl goingdown allways to 150 lvl when you die.
Fix please
Can somebody fix mine scripts?
First script It's lvl blocking its working but when i get 370 lvl i get blocked and I'm don't get more exp It's ok. But when i died and get 365 lvl I'm don't getting exp.
Can somebody fix mine script to only working when ppl have 370 lvl?
function onAdvance(cid, skill, oldLevel, newLevel)
if(newLevel > 370 and skill == SKILL_LEVEL) then
return false
end
return true
end
Seond is lvl goingdown allways to 150 lvl when you die.
function onDeath(cid, corpse, deathList)
if(isPlayer(cid) == false) then
return true
end
if(getPlayerExperience(cid) > 54042300) then
doPlayerAddExperience(cid, -(getPlayerExperience(cid)-54042300))
elseif(getPlayerExperience(cid) < 54042300) then
doPlayerAddExperience(cid, (54042300-getPlayerExperience(cid)))
end
return true
end
Fix please