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

!aol <-- Command

data\talkactions\scripts make aol.lua
Code:
local config = {
	price = 10000,
	itemId = 2173
}

function onSay(cid, words, param)
	local count = 1
	if isNumber(param) == TRUE and param < 21 then
		count = param
	end
	
	if doPlayerRemoveMoney(cid, config.price * count) == TRUE then
		for i = 1, count do
			doPlayerAddItem(cid, config.itemId, 1)
		end
	else
		doPlayerSendCancel(cid, "You need "..count * config.price.." gold to buy "..count.." AoL(s).")
	end
	
	return TRUE
end

in data\talkactions edit talkactions.xml and add
Code:
	<talkaction words="!aol" event="script" value="aol.lua" />
 
Back
Top