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

AOL Problem

GOD Wille

Excellent OT User
Joined
Jan 11, 2010
Messages
2,826
Solutions
2
Reaction score
815
Location
Sweden
I got a problem at my server, i do not know more than this but here we go...
I use r3777

Sometimes, rarely, (not all the time, maybe 1 out of 10 000 idk?) i hear players tell they lost their items..

Today a guy who i am sure he got aol and bless, lost his items and the aol was in his backpack after dying.
He picked up his items and went PKing again...
Next death, a new aol, and bless.
Everything works just as it should, perfectly..

So WHY is this happening rarely and what can cause it to happen?:(

Appreciate help!:)
 
Aol
LUA:
function onSay(cid, words, param)
	if doPlayerRemoveMoney(cid, 10000) == TRUE then
		doPlayerAddItem(cid, 2173, 1)
		doPlayerSendTextMessage(cid, 19,"You've bought an amulet of loss for 1 crystal coin.")
		doSendMagicEffect(getPlayerPosition(cid), 19)
	else
		doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
	return true
end


Bless
LUA:
local bless = {5} 
local cost = 2000 
function onSay(cid, words, param) 
    for i = 1, table.maxn(bless) do 
		if(getPlayerBlessing(cid, bless[i])) then 
			doPlayerSendCancel(cid, "You have already all blessings.") 
		elseif getPlayerLevel(cid) < 110000 then
			doPlayerSendCancel(cid, "You are not the required level.")
		elseif doPlayerRemoveMoney(cid, cost) then 
			doPlayerAddBlessing(cid, bless[i]) 
			doCreatureSay(cid, "You are now blessed, Dont forget to buy aol!" ,19) 
			doSendMagicEffect(getPlayerPosition(cid), 49) 
		else 
			doPlayerSendCancel(cid, "You don\'t have enough money.") 
		end
	end
	return true
end
 
Back
Top