• 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

Zerak

http://otstatus.com/
Joined
Oct 4, 2009
Messages
1,126
Reaction score
48
Location
Sweden
**/data/talkactions/talkactions.xml
Code:
 <talkaction words="!aol" event="script" value="aol.lua" />
**/data/talkactions/scripts/aol.lua
Code:
function onSay(cid, words, param)
        if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
                        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
return TRUE
                end

Rep++ ?
 
Last edited:
Awesome tabbing I will do it with my scripts too.

-> doPlayerSendTextMessage(cid,'There You Go!')
Won't work..
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'There You Go!')
 
so what? he try to help people..

Omg Noob post -.-"

@Up Thread.. Keep sharing scripts that might help people :)

The thing is that if when you post these script you should atleast tab them.

And you shouldn't run a server if you aren't able to make these kind of scripts.
 
Last edited:
LUA:
function onSay(cid, words, param)
        if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
                        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	
return TRUE
                end
return TRUE bestt :p
 
yes, i did forgot to update on the forum but i updated ingame :O
 
LUA:
local cfg = {
	amulet = 2173,
	cost = 10000
	}

function onSay(cid, words, param, channel)
if doPlayerRemoveMoney(cid, cfg.cost) == TRUE then
	doPlayerAddItem(cid, cfg.amulet, 1)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You bought " .. getItemArticleById(cfg.amulet) .. " " .. getItemNameById(cfg.amulet) .. "!")
else
	doPlayerSendCancel(cid, "You do not have enough money.")
end
return true
end
 
Back
Top