• 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 do i make it where people dont lose items when they die, for my war server

Rugged Mage

Lua Scripter
Joined
Mar 8, 2010
Messages
1,182
Solutions
2
Reaction score
77
i need to know how to make people not lose items when they die, without aol and also how do i make people get coins when they kill someone and start with skills
 
data/creaturescripts/scripts/script.lua
LUA:
local corpse = {
	[0] = 3065,
	[1] = 3058
}

function onPrepareDeath(cid, deathList)
	doCreatureSetDropLoot(cid, false)
	doItemSetAttribute(doCreateItem(corpse[getPlayerSex(cid)], 1, getThingPos(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by " .. (isMonster(deathList[1]) and "a " .. string.lower(getCreatureName(deathList[1])) or isCreature(deathList[1]) and getCreatureName(deathList[1]) or "a field item") .. ".\nHis soul was protected.")
	return true
end
 
why you don't try this
Code:
UPDATE `players` SET `loss_containers` = 0;
Code:
UPDATE `players` SET `loss_items` = 0;
rep++ if helped
RoHaN
how it's rolling in your server ? :P
 
open localhost/phpmyadmin
then click sql
IWaDT0MRCD.png
 
Back
Top