• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

How i can turn off skill lose after death?

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello
I want turn off all skills lose after death.
I want only lose experience when i die.
How2 do it ?
 
Look at your creaturescript/scripts/login.lua and find the code that changes experience loss based on your config value, and use that as a base to change it for skills as well - shouldn't be too hard!
 
Get a SQLite browser (google it) and instead of

PHP:
UPDATE `players` SET `loss_skills` = 0;

do

PHP:
UPDATE "players" SET "loss_skills" = 0;
 
yeah, thanks but, thats isnt the problem, when a guy dies, he gets an automatic level loss to 1 :c i tried to do this in query UPDATE "players" SET "loss_level" = 0; but it didnt work xD im sorry, im new at this query things~
 
so what i have to do is errase
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
from login?
 
lol just go config.lua and edit the blessings part

LUA:
	-- Blessings
	-- NOTE: blessingReduction* regards items/containers loss.
	-- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
	blessingOnlyPremium = false
	blessingReductionBase = 15
	blessingReductionDecreament = 5
	eachBlessReduction = 8
 
Back
Top