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

Lua Deads are disappear

Versions of server? Post login.lua script? Give us some more information rather then just "fix this bug" or "I have same problem". Obviously alot of us here have not had that problem, so we cant pinpoint exactly where to fix it. We can only throw common sense at you.
 
gl
Lua:
local corpse_ids = {
	[0] = 3065,
	[1] = 3058
}
function onPrepareDeath(cid, deathList)
	if getPlayerItemSlot(cid, 2).itemid == 2173 then
		doCreatureSetDropLoot(cid, false)
		local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), ""
		for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do
					killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList[i]) and "a " or "") .. getCreatureName(deathList[i])
		end
	end
return true
end
 
gl
Lua:
local corpse_ids = {
	[0] = 3065,
	[1] = 3058
}
function onPrepareDeath(cid, deathList)
	if getPlayerItemSlot(cid, 2).itemid == 2173 then
		doCreatureSetDropLoot(cid, false)
		local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), ""
		for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do
					killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList[i]) and "a " or "") .. getCreatureName(deathList[i])
		end
	end
return true
end
>,<

Also that would only work if the player is wearing an AOL.
 
i have NaxedOT 6.5
Login.Lua
local message = [[WElkom to This ot Gz OWNER Cassek
!buypremuim=premium
!createguild=guildmaker
Spells :
:exevo pala=paladin
:exevo druid=druid
:exevo Knight=knight
:exevo Sorc=sorcerer

When you have Guild with members you only have to say
!go an the have the same outfit of yours

)
]]


function onLogin(cid)
registerCreatureEvent(cid, "Advance")
registerCreatureEvent(cid, "reward")

registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena

doPlayerPopupFYI(cid, message)
registerCreatureEvent(cid, "PlayerDeath")
--registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.--
registerCreatureEvent(cid, "KilledMonstersCounter")
registerCreatureEvent(cid, "playeradvance")
return TRUE

end
 
LOL Maybe you just have put on map PVP?
If u are press PVP Button again then hold control/ctrl and remove it !
 
Last edited:
Back
Top