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

[Request] Aol

tyngaste

New Member
Joined
Dec 2, 2008
Messages
223
Reaction score
0
Location
Sweden
Hi as the topic says i need a updated script for aol for 0.3.2 crying damson thanks in advance
 
There is no script for AOL...

Explain more what you need !

i'm kinda newbie could someone update this for me so it works for 0.3.2 crying damson

local cost = 50000 -- How much does it cost?
local item = 2173 -- What item do you get?
local quantity = 1 -- How many do you get?

function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, cost) == 1 then
doPlayerAddItem(cid, item, quantity)
else
doPlayerSendCancel(cid, "You have not enough gold.")
end
return 1
end

thanks in advance
 
It is pvp-enforced?

Or post here your items.xml just the part from amulet of loss...

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

there you go
 
in file data/creaturescripts/playerdeath.lua
under
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

add
PHP:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end

give me rep if i helped you :)!
 
Last edited:
Back
Top