Jump to content

Who i add items and materials for crafting (cube ) system ?


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Didn`t work .. 

 

Spoiler

0102_222728.jpg

 

my cube.txt

Spoiler

#È«dws¿Á°è¿­        
section        
npc    20091    
item    15439    1
item    30600    1
item    30602    1
item    30611    5
reward    15440    1
gold    1000000000    
percent    90    
end        
        
#È«casdw¿Á°è¿        
section        
npc    20091    
item    15379    1
item    30600    1
item    30603    1
item    30611    5
reward    15450    1
gold    1000000000    
percent    70    
end
 

 

After i search this problem, i find i don`t have a cube.lua so ,i add:

Spoiler

function cube_open(vnum)
    cube_results = {}
    cube_needs = {}

    -- Generator URL: 
    -- PASTE GENERATED DATA BELOW THIS --
        
        cube_results[20091] = "15440,1/15450,1"
        cube_needs[20091] = "15439,1&30600,1&30602,1&30611,5@15379,1&30600,1&30603,1&30611,5"
    
    -- GENERATED DATA END --
    
    
    
    cmdchat("cube_npc_id "..vnum.."")
    cmdchat("cs_result "..cube_results[vnum].."")
    cmdchat("cs_need "..cube_needs[vnum].."")
    command("cube open")
    return
end

 

But didn`t work ...

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

you need add more than 2 items

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      ImperiaWorld2 - SpeedServer - Opening 03/05/2024 - NewSchool - New Graphics M2 1.0.4b Terrain depth - International

    2. 2

      Very strange bug, when creating new char

    3. 6

      Voooxy aka m2core.tech scammer

    4. 117

      Ulthar SF V2 (TMP4 Base)

    5. 0

      UI types and attributes

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.