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

Inf AOL

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
Ok so I made (10140) An aol And I'm trying to make it inf.. Well I tried editing the charges to 99999 But it still just disappears. Any help? Idk what else I would need to edit. thx
 
Create death.lua
LUA:
function onDeath(cid, corpse, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 10140 then
		doCreatureSetStorage(cid, 1, 1)
	end
	return true
end
Modify login.lua
LUA:
	if getCreatureStorage(cid, 1) == 1 then
		doPlayerAddItem(cid, 10140, 1)
		doCreatureSetStorage(cid, 1)
	end

	registerCreatureEvent(cid, 'death')
Modify creaturescripts.xml
XML:
	<event type="death" name="death" event="script" value="death.lua"/>
 
Back
Top