XTIBIANOS
Vamos lá, esse é meu segundo script
Vamos para de conversa e Vamos Lá.
Va na Pasta : \data\talkactions\scripts - Copie qualquer arquivo e o coloque o nome de aol
Dentro do arquivo bpaol, apague tudo que estiver dentro e coloque isto:
-- Script by: The Sleeperfunction onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
local bp = doPlayerAddItem(cid, 2173, 1)
doCreatureSay(cid, "You have now an Amulet of Loss", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You don't have enough money", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Red - Preço, No caso 10.000gps
Ver: Script desenvolvido por Tryller (Não testado por mim)
-- Script by: Tryller
local config = {
money = 10000,
idAmulet = 2173
}
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, config.money) == true then
doPlayerAddItem(cid, config.idAmulet, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
doplayerSendTextMessage(cid, MESSAGE_STATUS_CPNSOLE_ORANGE, "You have now an Amulet of Loss.")
else
doPlayerSendCancel(cid, "You don't have enough money.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Salve e va na pasta \data\talkactions
Abra o arquivo talkactions com Bloco de Notas,
Adicione o codigo abaixo:
<talkaction words="!aol" event="script" value="aol.lua"/>
PARA USAR É SIMPLES, BASTA COLOCAR !aol
Gostou? Simples, REP +.
Valeu Gente.