Cys9211
Sencor!
Hello, are you able to rewrite this script to buy "AOL" for Tibia Coins?
TFS 1.3
Tibia Coins taken from the Account table from "Coins"
TFS 1.3
Tibia Coins taken from the Account table from "Coins"
Lua:
local aol= TalkAction("!aol")
local price_aol = 50000
function aol.onSay(player, words, param)
if player:removeMoneyNpc(price_aol) then
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:addItem(2173, 1)
else
player:getPosition():sendMagicEffect(CONST_ME_POFF)
player:sendCancelMessage("You dont have enought money.")
end
logCommand(player, words, param)
end
aol:separator(" ")
aol:register()