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

I need a aol never end and you dont lost your items with white skull and red skull!

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,782
Solutions
31
Reaction score
2,286
Location
Sweden?
I need a aol never end and you dont lost your items with white skull and red skull!
 
well in items.xml press Cltr+F and find it:
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="0" />
<attribute key="preventDrop" value="1" />
</item>

change
<attribute key="charges" value="0" />

to
<attribute key="charges" value="1" />

And now your amulet of loss never ends...

PS: I don't have any idea to prevent drop of items when a player with red skull dies :(
 
I have a script at home that I made for this, give me a couple hours and I'll post it here...

Lua:
function onPrepareDeath(cid, killer)
local position = getCreaturePosition(cid)

	if getPlayerItemCount(cid, 2196) >= 1 then
		if getCreatureSkullType(cid) < 5 then
			doSetCreatureDropLoot(cid, 0)
			if getCreatureSkullType(cid) == 4 then
				doSendAnimatedText(position, 'AOL Ownz', 180)
			elseif getCreatureSkullType(cid) < 4 then
				doSendAnimatedText(position, 'AOL Owns', 215)
			end
		end
	end
	return TRUE
end
 
Last edited by a moderator:
I have a script at home that I made for this, give me a couple hours and I'll post it here...

Lua:
function onPrepareDeath(cid, killer)
local position = getCreaturePosition(cid)

	if getPlayerItemCount(cid, 2196) >= 1 then
		if getCreatureSkullType(cid) < 5 then
			doSetCreatureDropLoot(cid, 0)
			if getCreatureSkullType(cid) == 4 then
				doSendAnimatedText(position, 'AOL Ownz', 180)
			elseif getCreatureSkullType(cid) < 4 then
				doSendAnimatedText(position, 'AOL Owns', 215)
			end
		end
	end
	return TRUE
end

Is it possible to make the AOL to removes on death ? If so, how ?
 
Code:
function onPrepareDeath(cid, deathList)
	if getCreatureSkullType(cid) < 5 and doPlayerRemoveItem(cid, 2196, 1) then
		doSetCreatureDropLoot(cid, false)
		doSendAnimatedText(getThingPos(cid), 'AOL Ownz', getCreatureSkullType(cid) == 4 and 180 or 215)
	end
	return true
end
 
cant you just use on login.lua

Lua:
if getCreatureSkullType(cid) < 5 then
		doSetCreatureDropLoot(cid, false)

then you never have to use any amulet.... saves time :p



and for yancarlos

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).uid) then


	doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 2)
	return true
end

im not to sure if that will work 100% give it a test
 
Last edited:
Back
Top