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

Forever Amulet of Loss

Joined
Jun 19, 2009
Messages
1,852
Reaction score
5
Common guys... you don't know how many times I have requested this :/

I'd be really pleased if someone told me how to change in sources to make broken amulet, id 2196, infinite.

Thank you..
 
whats the point of making more than one thread on this subject, If your not gonna get an answer any ways.
 
Simple function lua

data\creaturescripts\scripts\amulet inf.lua
HTML:
Amulet_id = 2196

function onDeath(cid, corpse, deathList)
	if(isPlayer(cid)  == true) then
		if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == Amulet_id) then
			doPlayerSetStorageValue(cid, 25000, 1)
		end
	end
	return true
end

function onLogin(cid)
	if(getPlayerStorageValue(cid, 25000) == 1) then
		if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid <= 0) then
			doPlayerAddItem(cid, Amulet_id, 1)
			doPlayerSetStorageValue(cid, 25000, -1)
		end
	end
	
	registerCreatureEvent(cid, "Amulet Inf login")
	registerCreatureEvent(cid, "Amulet Inf death")
	return true
end


data\creaturescripts\creaturescripts.xml
HTML:
<event type="login" name="Amulet Inf login" event="script" value="amulet inf.lua"/>
<event type="death" name="Amulet Inf death" event="script" value="amulet inf.lua"/>

:peace:
 
Original:
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="1" />
		<attribute key="preventDrop" value="1" />
AOL forever:
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="preventDrop" value="1" />
 
Original:
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="1" />
		<attribute key="preventDrop" value="1" />
AOL forever:
Code:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="preventDrop" value="1" />

This never has, and never will work properly.
 
goto items...
find this..
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="1" />
<attribute key="preventDrop" value="1" />

make it

<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="999999999999999999999999" />
<attribute key="preventDrop" value="1" />

:D it will never run out! << you lose if you die D: with red skull

Rep++ >=)
 
Last edited:
Simple function lua

data\creaturescripts\scripts\amulet inf.lua
HTML:
Amulet_id = 2196

function onDeath(cid, corpse, deathList)
	if(isPlayer(cid)  == true) then
		if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == Amulet_id) then
			doPlayerSetStorageValue(cid, 25000, 1)
		end
	end
	return true
end

function onLogin(cid)
	if(getPlayerStorageValue(cid, 25000) == 1) then
		if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid <= 0) then
			doPlayerAddItem(cid, Amulet_id, 1)
			doPlayerSetStorageValue(cid, 25000, -1)
		end
	end
	
	registerCreatureEvent(cid, "Amulet Inf login")
	registerCreatureEvent(cid, "Amulet Inf death")
	return true
end


data\creaturescripts\creaturescripts.xml
HTML:
<event type="login" name="Amulet Inf login" event="script" value="amulet inf.lua"/>
<event type="death" name="Amulet Inf death" event="script" value="amulet inf.lua"/>

:peace:

Im pretty sure this works. I tested it and it works.
 
Back
Top