antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
luismurias

Sistema Do Cubo

Question

Preciso de ajuda no sistema do cubo...

 

Não sei como fazer para abrir in game, vou lá ao npc 20018 (onde tá a quest a mandar, mas aquilo nao abre a janela do cubo)

 

Alguem me pode dar u cube.lua + o cube.quest?

 

Agradeçia e irei alterar ele para as minhas preferencias

Share this post


Link to post
Share on other sites

8 answers to this question

  • 0

Já tentas-te arrastar um item para o NPC?

 

 

Se te ajudei, dá +1.

 

 

Cumprimentos.

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/
  • 0

Já e tambem não funciona

Share this post


Link to post
Share on other sites
  • 0

tens aqui um cube.lua

-- Metin2 Cube parser library by Corigliano LucaCUBE_PATH = "/root/ClassicWorld/share/locale/germany/cube.txt"cube_recipes = {}cube_outputs = {} -- EXTERNAL FUNCTIONS for parsingstring.startswith = function(str, cmp)        return string.sub(str, 0, string.len(cmp)) == cmpend -- functionstring.split = function(str, c)        result = {}        tmp = ""        count = 1        for i = 1, string.len(str) do                ch = string.sub(str, i, i)                if "" .. ch != "" .. c then                                                                                                                                                                            tmp = tmp .. ( "" .. ch)                else                                result[count] = tmp                                count = count + 1                                tmp = ""                end --if                       end -- for        result[count] = tmp            return resultend -- function  cube_load = function(filename)        -- Clear up        local start_time = os.clock()        cube_recipes = {}        cube_outputs = {}        local current_npc, count = 0, 0        local recipe_buf, output_buf = "", ""        for line in io.lines(filename) do                -- npc                if string.startswith(line, "npc") then                        current_npc = tonumber(string.split(line, "t")[2])                        if cube_recipes[current_npc] == nil then                                cube_recipes[current_npc] = ""                        end -- if                        if cube_outputs[current_npc] == nil then                                cube_outputs[current_npc] = ""                        end -- if                -- item                elseif string.startswith(line, "item") then                        local split = string.split(line, "t")                        recipe_buf = recipe_buf .. string.format("%s,%s&", split[2], split[3])                -- reward                elseif string.startswith(line, "reward") then                        local split = string.split(line, "t")                        output_buf = output_buf .. string.format("%s,%s", split[2], split[3])                -- end                elseif string.startswith(line, "end") then                        count = count +1                        recipe_buf = string.sub(recipe_buf, 0, string.len(recipe_buf) - 1)                        cube_recipes[current_npc] = string.format("%s#%s", cube_recipes[current_npc], recipe_buf)                        cube_outputs[current_npc] = string.format("%s/%s", cube_outputs[current_npc], output_buf)                        recipe_buf = ""                        output_buf = ""                end -- if                       end -- for        for key, value in cube_recipes do                cube_outputs[key] = string.sub(cube_outputs[key], 2, string.len(cube_outputs[key]))                cube_outputs[key] = string.gsub(cube_outputs[key], " ", "")                cube_outputs[key] = string.gsub(cube_outputs[key], "t", "")                cube_recipes[key] = string.gsub(cube_recipes[key], " ", "")                cube_recipes[key] = string.gsub(cube_recipes[key], "t", "")                cube_recipes[key] = string.sub(cube_recipes[key], 2, string.len(cube_recipes[key]))        end -- for        if is_test_server() then                notice_all(string.format("cube.txt successfully parsed. (%d Recipes, %.5f Seconds)", count, os.clock() - start_time))        end -- ifend -- function              cube_open_new = function(vnum)        cmdchat("cube_npc "..vnum)        cmdchat("cube_output_list "..cube_outputs[vnum])        cmdchat("cube_recipe_list "..cube_recipes[vnum])        command("cube open")end -- function         cube_load(CUBE_PATH) 

Share this post


Link to post
Share on other sites
  • 0

~E não é preciso a quest do cubo? é que a minha diz dumped core algo do género

Share this post


Link to post
Share on other sites
  • 0

quest ae fera :

quest cube begin	state start begin		when 20018.chat."Tradiciones de hierbas" with pc.level >= 15 begin			say_title("Baek-go:")			say("")			say("Hola, ¿cómo estás? ¿Estás interesado en crear")			say("varias pociones que pueden fortalecerte o")			say("curarte? Yo, como médico, me encargo de la")			say("creación de pociones.")			say("He encontrado varias recetas distintas. ¿Quieres")			say("intentarlas?")			wait()			setskin(NOWINDOW)			command("cube open")			-- say("Come anytime when you need, I will make them for you")		end		when 20017.chat."Tradiciones de Hierbas" with pc.level >= 30 begin			say_title("Yu-Hwan:")			say("")			----"111111222222333333444444555555666666777777888888999999000000"			say("Últimamente, la herbología tiene bastante buena")			say("reputación. ¿Estás interesado en ella? Te puedo")			say("mostrar algunas de mis recetas nuevas, son muy")			say("útiles para producir variaciones más fuertes de")			say("las mejores pociones.")			wait()			setskin(NOWINDOW)			command("cube open")		end		when 20022.chat."La receta secreta"  with pc.level >=45 begin			say_title("Huahn-So:")			say("")			say("He encontrado una receta secreta familiar.")			----"111111222222333333444444555555666666777777888888999999000000"			say("Usándola, ¡casi te conviertes en invencible!")			say("Jajaja. Puede que sea el único en este reino que")			say("la conoce. Con estas pociones, no puede pasarte")			say("casi nada. ¿Quieres probarlas?")			say("")			wait()			setskin(NOWINDOW)			command("cube open")		end			endend 

Share this post


Link to post
Share on other sites
  • 0

Eu ja tive o mesmo problema. Mas o motivo foi não abrir o cubo no NPC que eu queria!

Não sei se tem algo a ver, mas no meu caso, só tive de adicionar ao cube.txt:

 

 

#XPTO1
section
npc xxxxxx
item 18 1
item 19 1
reward 29 1
percent 50
end
 
verifica se no teu caso tens o NPC 20018.

Share this post


Link to post
Share on other sites
  • 0

Vou testar, depois digo se funcionou, obrigado desde já pela ajuda <3

Share this post


Link to post
Share on other sites
  • 0

Não consegui editar...

 

Quando faço o ./qc cube.quest

 

Dá-me o seguinte erro:

 

must start with 'quest'

cube.quest:1:Abort (core dumped)

 

Como resolvo?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this