Ir para conteúdo
  • 0

Como Abri Um Novo Comando


isac313

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

usa do meu ot

data\talkactions\scripts\spellsinfo.lua

local config = {
rateExp = getConfigInfo('rateExp'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel')
}
function onSay(cid, words, param)
local str = "#The New Spells by notle#\n\n[Para Todos]\n Utani Mega Hur (LvL 130, Mana 100)\n Crew (LvL 8, Mana 20)\n Exana Vis, Exana Flam, Exana San, Exana Pox, Exana Frigo (LvL 10, Mana 30)\n\n[Para Sorcerers e Druids]\n Exevo Frozen Hur (LvL 130, Mana 750)\n Exevo Gran Mas Mort (LvL 100, Mana 1600)\n\n[Para Paladins]\n Exevo San Condition (LvL 200, Mana 2000)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas San (LvL 100, Mana 750)\n\n[Para Knights]\n Exori Mas Gran (LvL 130, Mana 340)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas Gran (LvL 100, Mana 500)\n\n\n#The New Runes by GOD Slayer#\n\n Mage SD Rune (Vende no Npc de Rune por 100k, LvL 150, ML 100)\n Creat Bomb Rune (Vende no Npc de Rune por 100k, LvL 200, ML 7, Mana 1500)\n\n[Npc Mage Seller]\n Vende Bps de Runes (Diga por Exemplo Buy BP Sudden Death ou Buy X BP Sudden Death e Etc)\n\n--------------------------------------------------------------------\n-Protection level: " .. config.protectionLevel
doPlayerPopupFYI(cid, str)
return FALSE
end

data\talkactions\talkactions.xml

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

 

edita oq deixei em red

 

local str = "#The New Spells by notle#\n\n[Para Todos]\n Utani Mega Hur (LvL 130, Mana 100)\n Crew (LvL 8, Mana 20)\n Exana Vis, Exana Flam, Exana San, Exana Pox, Exana Frigo (LvL 10, Mana 30)\n\n[Para Sorcerers e Druids]\n Exevo Frozen Hur (LvL 130, Mana 750)\n Exevo Gran Mas Mort (LvL 100, Mana 1600)\n\n[Para Paladins]\n Exevo San Condition (LvL 200, Mana 2000)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas San (LvL 100, Mana 750)\n\n[Para Knights]\n Exori Mas Gran (LvL 130, Mana 340)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas Gran (LvL 100, Mana 500)\n\n\n#The New Runes by GOD Slayer#\n\n Mage SD Rune (Vende no Npc de Rune por 100k, LvL 150, ML 100)\n Creat Bomb Rune (Vende no Npc de Rune por 100k, LvL 200, ML 7, Mana 1500)\n\n[Npc Mage Seller]\n Vende Bps de Runes (Diga por Exemplo Buy BP Sudden Death ou Buy X BP Sudden Death e Etc)\n\n--------------------------------------------------------------------\n-Protection level: " .. config.protectionLevel

 

ou se quiser fazer do zero troca linha por essa

local str = "nome1 \n nome2 \n nome3 \n nome4 " .. config.protectionLevel

Editado por notle2012
Link para o comentário
Compartilhar em outros sites

  • 0

usa do meu ot

data\talkactions\scripts\spellsinfo.lua

local config = {
rateExp = getConfigInfo('rateExp'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel')
}
function onSay(cid, words, param)
local str = "#The New Spells by notle#\n\n[Para Todos]\n Utani Mega Hur (LvL 130, Mana 100)\n Crew (LvL 8, Mana 20)\n Exana Vis, Exana Flam, Exana San, Exana Pox, Exana Frigo (LvL 10, Mana 30)\n\n[Para Sorcerers e Druids]\n Exevo Frozen Hur (LvL 130, Mana 750)\n Exevo Gran Mas Mort (LvL 100, Mana 1600)\n\n[Para Paladins]\n Exevo San Condition (LvL 200, Mana 2000)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas San (LvL 100, Mana 750)\n\n[Para Knights]\n Exori Mas Gran (LvL 130, Mana 340)\n Utito Mas Sio (LvL 50, Mana 250)\n Utito Mas Gran (LvL 100, Mana 500)\n\n\n#The New Runes by GOD Slayer#\n\n Mage SD Rune (Vende no Npc de Rune por 100k, LvL 150, ML 100)\n Creat Bomb Rune (Vende no Npc de Rune por 100k, LvL 200, ML 7, Mana 1500)\n\n[Npc Mage Seller]\n Vende Bps de Runes (Diga por Exemplo Buy BP Sudden Death ou Buy X BP Sudden Death e Etc)\n\n--------------------------------------------------------------------\n-Protection level: " .. config.protectionLevel
doPlayerPopupFYI(cid, str)
return FALSE
end

data\talkactions\talkactions.xml

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

no meu ot só fazer o mesmo procedimento, mas no spellsinfo.lua voce poe

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

fica parecido com o spellbook do global

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...