function onSay(cid, words, param) if(getPlayerItemCount(cid, 2173) >= 1) then doPlayerSendCancel(cid, 'Você já tem um aol.') else doPlayerAddItem(cid, 2173, 1) end return TRUE end
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

Editado Setembro 3 por Vodkart
info
Grupo: Infante
Registrado: 27/07/09
Posts: 1.5k
Reputação: +405
Char no Tibia: Gean Riot

ou se prefirir -
function onSay(cid, words, param)local premium = "yes" -- Apenas players premium accounts "yes" or "no"!?
if premium == "yes" and not isPremium(cid) then
return doPlayerSendTextMessage(cid, 23, "Sorry, only premium players can buy Items On talkactions.")
end
if doPlayerRemoveItem(cid,2160,1) then
doPlayerAddItem(cid,2173,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "comprei aol", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You do not have 1 crystal coin.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
end
end
info
Grupo: Campones
Registrado: 29/06/10
Posts: 28
Reputação: 0
Char no Tibia: Legendary math

tipo eu coloco isso na fuction.lua ??
ensina coloca o !aol ae
Resolvido agora me ensina coloca comando
!spell
info
Grupo: Conde
Registrado: 30/01/10
Posts: 706
Reputação: +125
Gênero: Masculino
Char no Tibia: Bakwin

!Aol
Vá em Data>Talkactions>Script crie uma pasta.lua chamada aol e coloque isto:
function onSay(cid, words, param) if(getPlayerItemCount(cid, 2173) >= 1) then doPlayerSendCancel(cid, 'Você já tem um aol.') else doPlayerAddItem(cid, 2173, 1) end return TRUE end
Agora vá em data>Talkactions.xml Abra e adicione esta tag la:
<talkaction words="!aol" event="script" value="aol.lua"/>
!Spells
Vá em data>Talkactions>Scripts crie uma pasta.lua chamada spells e coloque isto:
function onSay(cid, words, param)
local count = getPlayerInstantSpellCount(cid)
local text = ""
local t = {}
for i = 0, count - 1 do
local spell = getPlayerInstantSpellInfo(cid, i)
if spell.level ~= 0 then
if spell.manapercent > 0 then
spell.mana = spell.manapercent .. "%"
end
table.insert(t, spell)
end
end
table.sort(t, function(a, b) return a.level < b.level end)
local prevLevel = -1
for i, spell in ipairs(t) do
local line = ""
if prevLevel ~= spell.level then
if i ~= 1 then
line = "\n"
end
line = line .. "Spells for Level " .. spell.level .. "\n"
prevLevel = spell.level
end
text = text .. line .. " " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
end
doShowTextDialog(cid,2175,text)
return TRUE
end
Agora vá em data>Talkactions.xml Abra e adicione esta tag:
<talkaction words="!spells" event="script" value="spells.lua"/>
Bem Explicadinho Néh?
Abraços..
Editado Setembro 3 por DevilMoon
info
Grupo: Campones
Registrado: 29/06/10
Posts: 28
Reputação: 0
Char no Tibia: Legendary math

DevilMoon vc e o cara thanks
ae se der para vc me add no msn teteus_guitarra@hotmail.com
[Moderaçao Podem fechar]
info
Grupo: Conde
Registrado: 30/01/10
Posts: 706
Reputação: +125
Gênero: Masculino
Char no Tibia: Bakwin

Ok add eu la leonardo.teixeira18@hotmail.com
Topico Reportado Para Fecharem
Abraços..
info
Grupo: Conde
Registrado: 31/10/08
Posts: 871
Reputação: +199
Char no Tibia: Luis Felipe Knight

Tópico movido para a subseção referente a esta área.
Caso o usuário necessite de ajuda avançada, deverá utilizar o mesmo tópico.
Abraços.
info
Grupo: Infante
Registrado: 27/07/09
Posts: 1.5k
Reputação: +405
Char no Tibia: Gean Riot

!Aol
Vá em Data>Talkactions>Script crie uma pasta.lua chamada aol e coloque isto:
function onSay(cid, words, param) if(getPlayerItemCount(cid, 2173) >= 1) then doPlayerSendCancel(cid, 'Você já tem um aol.') else doPlayerAddItem(cid, 2173, 1) end return TRUE end
Agora vá em data>Talkactions.xml Abra e adicione esta tag la:
<talkaction words="!aol" event="script" value="aol.lua"/>
!Spells
Vá em data>Talkactions>Scripts crie uma pasta.lua chamada spells e coloque isto:
function onSay(cid, words, param) local count = getPlayerInstantSpellCount(cid) local text = "" local t = {} for i = 0, count - 1 do local spell = getPlayerInstantSpellInfo(cid, i) if spell.level ~= 0 then if spell.manapercent > 0 then spell.mana = spell.manapercent .. "%" end table.insert(t, spell) end end table.sort(t, function(a, b) return a.level < b.level end) local prevLevel = -1 for i, spell in ipairs(t) do local line = "" if prevLevel ~= spell.level then if i ~= 1 then line = "\n" end line = line .. "Spells for Level " .. spell.level .. "\n" prevLevel = spell.level end text = text .. line .. " " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n" end doShowTextDialog(cid,2175,text) return TRUE end
Agora vá em data>Talkactions.xml Abra e adicione esta tag:
<talkaction words="!spells" event="script" value="spells.lua"/>
Bem Explicadinho Néh?
Abraços..
esse comando de aol pode ser usado para obter grana fácil em um servidor Como por exemplo o do alissow OTS QUE no caso pode-se vender AOL por 5k.





info
Grupo: Campones
Registrado: 29/06/10
Posts: 28
Reputação: 0
Char no Tibia: Legendary math
Preciso de um script que tenha o comando !aol (que seja gratis)
(aol e amulet of loss que evita a perda de itens)
Aguardo!