Onix Tibia
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.


Ayudamos Sobre Tibia
 
ÍndiceÚltimas imágenesBuscarRegistrarseConectarse
temas
 TEMAS
Buscar
 
 

Resultados por:
 
Rechercher Búsqueda avanzada
Últimos temas
» Tibia Bot NG 9.71 / Tibia MC 9.71 / Ibot 9.71 / Bbot 9.71 / TibiaAuto 9.71 / RedBot 9.71 / KeraBot 9.71
comando !spells I_icon_minitimeSáb Nov 10, 2012 8:36 pm por Borek

» Waypoints+Script 100% Full Afk 100-350 Level Ibot TibiaAuto RedBot Bbot
comando !spells I_icon_minitimeSáb Nov 10, 2012 8:36 pm por Borek

» REDBOT TIBIA 9.71 script + waypoints UPDATE
comando !spells I_icon_minitimeSáb Nov 10, 2012 8:35 pm por Borek

» Tibia MC 9.71 By BlackD UPDATE
comando !spells I_icon_minitimeSáb Nov 10, 2012 8:35 pm por Borek

» BBOT Tibia 9.71 + SCRIPTS
comando !spells I_icon_minitimeSáb Nov 10, 2012 8:35 pm por Borek

» TIBIA MAGE BOT 9.63 DOWNLOAD
comando !spells I_icon_minitimeMar Oct 09, 2012 9:32 pm por Admin Arni

» Tibia IP Changer 8.6 download
comando !spells I_icon_minitimeMar Oct 09, 2012 9:30 pm por Admin Arni

» Tibia RED BOT PRO 9.61 Download
comando !spells I_icon_minitimeJue Ago 23, 2012 10:01 pm por cohete25

» Servidor TIBIA OT en español y con sonido
comando !spells I_icon_minitimeJue Ago 09, 2012 4:08 pm por latibia

Mejores posteadores
Admin Arni
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
[Admin]
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
Borek
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
latibia
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
Gm G3org3
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
[GOD] Darko0
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
god troll
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
cohete25
comando !spells Vote_lcapcomando !spells Voting_barcomando !spells Vote_rcap 
Compañeros
Crear foro

 

 comando !spells

Ir abajo 
AutorMensaje
Admin Arni
moderador
moderador
Admin Arni


Mensajes : 19
Puntos : 45
Reputación : 4
Fecha de inscripción : 29/05/2011
Edad : 33

comando !spells Empty
MensajeTema: comando !spells   comando !spells I_icon_minitimeDom Mayo 29, 2011 12:46 am

Bueno se tienen q ir a al archivo del ot /data/talkactions/scripts y creas un archivo llamado spells.lua y pegas esto

Código:


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



despues te vas al archivo del ot/data/talkactions/talkactions.xml y copias esto

Código:

<talkaction words="!spells" script="spells.lua" />



si te ayude dame REP+
Volver arriba Ir abajo
 
comando !spells
Volver arriba 
Página 1 de 1.

Permisos de este foro:No puedes responder a temas en este foro.
Onix Tibia :: Sprites-
Cambiar a: