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

Polat Alemdar

Mapper, Basic Scripter
Joined
Feb 20, 2011
Messages
941
Reaction score
29
Location
Stockholm, Sweden
Can anyone help me make this amulet id: 2131 to Aol Forever but i want it so i dont loose items in black skull and red skull

Very much Thank You from me to the Person who help me!

!!!!Rep++
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Red Skull Amulet" version="1.0" author="--" contact="--" enabled="yes">
        <description><![CDATA[
                This will protect your belongings even when you have a black skull!
        ]]></description>

        <item id="2196" article="a" name="Enchanted Amulet of Loss" override="yes"/>

        <event type="login" name="RedSkullAmulet_Login" event="buffer"><![CDATA[
                registerCreatureEvent(cid, "RedSkullAmulet_Login")
        ]]></event>

        <event type="death" name="RedSkullAmulet_Login" event="script"><![CDATA[
                function onDeath(cid, corpse, deathList)
                        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                                if (getCreatureSkullType(cid) == SKULL_RED) or (getCreatureSkullType(cid) == SKULL_BLACK) then
                                        doCreatureSetDropLoot(cid, false)
                                end
                        end
                        return true
                end
        ]]></event>
</mod>
Put it in the mods folder.
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Red Skull Amulet" version="1.0" author="--" contact="--" enabled="yes">
        <description><=!=[=C=D=A=T=A=[
                This will protect your belongings even when you have a black skull!
        ]=]=></description>

        <item id="2196" article="a" name="Enchanted Amulet of Loss" override="yes"/>

        <event type="login" name="RedSkullAmulet_Login" event="buffer"><=!=[=C=D=A=T=A=[
                registerCreatureEvent(cid, "RedSkullAmulet_Login")
        ]=]=></event>

        <event type="death" name="RedSkullAmulet_Login" event="script"><=!=[=C=D=A=T=A=[
                function onDeath(cid, corpse, deathList)
                        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                                if (getCreatureSkullType(cid) == SKULL_RED) or (getCreatureSkullType(cid) == SKULL_BLACK) then
                                        doCreatureSetDropLoot(cid, false)
                                end
                        end
                        return true
                end
        ]=]=></event>
</mod>
Put it in the mods folder.

Copied so hard, you couldn't even correct the item ID that he would like to use. Give the author some credit, shall we?

Thank you.
 
Copied so hard, you couldn't even correct the item ID that he would like to use. Give the author some credit, shall we?

Thank you.

What the bloody hell are you talking about, I copied this straight from my mods folder, it's a ForgottenL data pack.
How the hell would I know who the author is if the script itself says '--'?
Are you dumb?
Also, he might as well just edit the Item ID himself.
If it is your script, good for you. Now I know. Stop throwing shit around randomly.
 
ok can you help me make the aol forever work i can use this 2196 its not problem but i want a aol forever work i have naxedot 7.5

Define 7.5, is it client version or server version, also wtf is NaxedOT?
Just make a creaturescript, so that J Dre doesn't rage on stealing.
I'll make one once MyR vs TSM match is done. Gogo TSM!
 
I WANT MY AOL FOREVER WORK HOW???????

look the aol is there and not removes but im loosing my backpack and items but not loosing aol forever!

Can't be done, sorry.

Lua:
function onDeath(cid)
	local amulet = 0 -- Change to amulet ID
		if isPlayer(cid) == true then
			if getPlayerSlotItem(cid, 2) == amulet then
					doCreatureSetDropLoot(cid, false)
				return true
			end
		else
			return false
		end
	return true
end
Probably won't work, but try it, I think it's a creature script. I just made it and haven't even bothered trying it.
 
create file called forever aol.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
    if isPlayer(cid) == true then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == [COLOR="#FF0000"]2196[/COLOR]) then -- AMULET ID
                doCreatureSetDropLoot(cid, false)       
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) 
        return true
        end
    end
    return true
end
creaturescripts.xml
Code:
<event type="preparedeath" name="onPrepareDeath" event="script" value="forever aol.lua"/>
login.lua
Code:
registerCreatureEvent(cid, "onPrepareDeath")
 
creaturescripts.xml
Code:
<event type="preparedeath" name="Skull Amulet" event="script" value="[COLOR="#FF0000"]script[/COLOR].lua"/>

login.lua
Lua:
registerCreatureEvent(cid, "Skull Amulet")

script.lua
Lua:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) then
			doSetCreatureDropLoot(cid, false)
		end
	end
 
	return true
end
 
Last edited:
creaturescripts.xml
Code:
<event type="preparedeath" name="Skull Amulet" event="script" value="[COLOR="#FF0000"]script[/COLOR].lua"/>

login.lua
Lua:
registerCreatureEvent(cid, "Skull Amulet")

script.lua
Lua:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if getCreatureSkullType(cid) < 5 then
			doSetCreatureDropLoot(cid, false)
		end
	end

	return true
end

Wouldn't that happen from the beginning? I mean it doesn't need to specify a skull type to work or am I mistaken?
 
Back
Top