• 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 aol with rs/bs Full bless in 1 script

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey i need a script with forever aol with rs/bs protection and full bless any one can make this kind of script?
rs/bs protection is if you have this you can lose items when you die having rs/bs
using 0.4 dev forgot to write that...
 
Last edited:
So you want the amulet to be an aol that never ends and protects against loss even if you have a red skull?
 
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == idofyouramulet) then
		doPlayerAddBlessing(cid, 1)
		doPlayerAddBlessing(cid, 2)
		doPlayerAddBlessing(cid, 3)
		doPlayerAddBlessing(cid, 4)
		doPlayerAddBlessing(cid, 5)
		doCreatureSetDropLoot(cid, FALSE)      
	end
return true
end

Not tested but all should work with the exception of the blessings~ let me know if the blessing part works though :)
 
slaktaren, then try helping him out with lua

many tried to help me and it didn't work

tko, stfu.

Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == xxxx) then
for i = 1, 5 do
doPlayerAddBlessing(cid, i)
end
doCreatureSetDropLoot(cid, false)
end
return true
end

i just made this, the classic code. It doesn't work, only the blessings in this script works ;s but if u add this:

Code:
if (getCreatureSkullType(cid) >= 4) then

it works, players with rs won't lose anything but THEY WILL LOSE if they have lower than skull id 4 ;s

then modified my source and it works perfectly :)

Edit: Well, it didn't work for me so I don't know about u.. many people tried to help me with that code and it doesn't work :d.

btw, I had 0.3.4, 3.5, 3.6 - didn't work - now I have 0.4 - that script still doesn't work..
 
Last edited:
The script I posted does work with 0.4 :P the only part I said I didn't test was the blessing part. No need for source edits zzz.
 
@TKO
Did you try the script I gave you? If its not working you need to give us some input because the script I posted not only is the script I use but is also just about the same as many other scripts that were made to prevent item loss on death with red skull.
 
Back
Top