• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Working !aol Script! , For 0.3.6pl1/0.4

I have edited it a bit and added exh:

Code:
function onSay(cid, words, param)
local exhaustiontime = 60 <-- edit here exhaustion time 
local storage = 1000   <-- edit to unused storage
local cost = 10000 <-- edit how much it cost
local itemid = 2173


local exh = exhaustion.get(cid, storage)
if not exh then
   exh = 0
end

if exh > 0 then
   doPlayerSendCancel(cid, "You need wait "..exhaustion.get(cid, storage).." seconds, to use this command again.")
	return true
	end
        if doPlayerRemoveMoney(cid, cost) == TRUE then
doPlayerAddItem(cid, itemid, 1)
doCreatureSay(cid, OH YEA IM PROTECTED BITCHES!", TALKTYPE_SAY)
doSendMagicEffect(getPlayerPosition(cid), 31)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'There You Go!') 
else
            doPlayerSendCancel(cid, "You need 1 crystal coin to buy a Amulet Of Loss!")
                end
                if exhaustion.get(cid, storage) and exhaustion.get(cid, storage) > 3 then return true end
                	exhaustion.set(cid, storage, exhaustiontime)
	end

	exhaustion.set(cid, storage, 3)
return TRUE
                end
 
Back
Top