• 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!

When player dies they start in lvl 1?

login.lua
Code:
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
 
Post your xampp/htdocs/accountmanagement.php (if it's too big, upload it somewhere)

accountmanagement.php

my login:

function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)

end
 
  1. Remove this from your login.lua:
    Code:
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
  2. Shutdown the server
  3. Execute this query on your database (in phpMyAdmin -> SQL):
    PHP:
    UPDATE players SET loss_experience = 100
  4. Run the server
  5. Test it
  6. ????
  7. PROFIT
 
  1. Remove this from your login.lua:
    Code:
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
  2. Shutdown the server
  3. Execute this query on your database (in phpMyAdmin -> SQL):
    PHP:
    UPDATE players SET loss_experience = 100
  4. Run the server
  5. Test it
  6. ????
  7. PROFIT


Thanks dude, but no you aren't loosing anny exp at all :) but thanks annyway!
 
Back
Top