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

Need script or npc that gives aol (sells)

healer007

New Member
Joined
Nov 11, 2008
Messages
174
Reaction score
0
Location
doesnt matter
I want a script that works like this
on the table with the aol on it and the holes or watever on top
u click the hole u get aol for 10k (if u understand wat i mean)

or just npc that sells aol
thnx
 
Code:
function onUse(item, cid, fromPosition, toPosition)

local AOLID = 

    if doPlayerRemoveMoney(cid,10000) == TRUE then
        doPlayerAddItem(cid,AOLID,1)
    else
        doPlayerSendCancel(cid,"You do not have enough money.")
    end
end

Since I'm not at my own computer atm. I don't have the itemID of the AOL, so just write the ID after "local AOLID =" like "local AOLID = 1337"

Just put an actionID on the holes you described and write it in actions.xml.
 
Back
Top