Jump to content

Panda88

Inactive Member
  • Posts

    16
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Panda88

  1. Hey i try Compile the Src with Gcc48, in Windows with VC120 Works.

    compile BattleArena.cpp
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:4: warnieng: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from ../../../../extern/include/boost/tuple/tuple.hpp:33:0,
                     from ../../../../extern/include/boost/unordered/detail/allocate.hpp:27,
                     from ../../../../extern/include/boost/unordered/detail/buckets.hpp:15,
                     from ../../../../extern/include/boost/unordered/detail/table.hpp:10,
                     from ../../../../extern/include/boost/unordered/detail/equivalent.hpp:14,
                     from ../../../../extern/include/boost/unordered/unordered_map.hpp:17,
                     from ../../../../extern/include/boost/unordered_map.hpp:16,
                     from char.h:4,
                     from BattleArena.cpp:6:
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)':
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
       typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                                 ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'bool SECTREE::for_each_entity_for_find_victim(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    typedef.h:105:41: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:144:11: error: 'it' was not declared in this scope
        while (it != m_set_entity.end())
               ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'void SECTREE::for_each_entity(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:189:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:190:12: error: 'it' was not declared in this scope
        for ( ; it != m_set_entity.end(); ++it) {
                ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In instantiation of 'void SECTREE::for_each_entity(_Func&) [with _Func = FCollectEntity]':
    sectree_manager.h:79:39:   required from 'void SECTREE_MAP::for_each(Func&) [with Func = FWarpToHome]'
    BattleArena.cpp:180:28:   required from here
    typedef.h:105:41: error: 'decltype' was not declared in this scope
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    Makefile:121: recipe for target 'OBJDIR/BattleArena.o' failed
    gmake: *** [OBJDIR/BattleArena.o] Error 1
    
    
  2. Hey i try add new slot for Costume Weapon i add function in game and bin but idk how i add the slot in python

     

    i make 

        {"index":COSTUME_START_INDEX + 0, "x":61, "y":45, "width":32, "height":64},
        {"index":COSTUME_START_INDEX + 1, "x":61, "y": 8, "width":32, "height":32},
      #{"index":COSTUME_START_INDEX + 2, "x":5, "y":145, "width":32, "height":32},
     
    to 
     {"index":COSTUME_START_INDEX + 0, "x":61, "y":45, "width":32, "height":64},
     {"index":COSTUME_START_INDEX + 1, "x":61, "y": 8, "width":32, "height":32},
     {"index":COSTUME_START_INDEX + 2, "x":5, "y":145, "width":32, "height":32},
     but ingame i have only slot for amore and hair.
     
  3. On 8/22/2014 at 10:03 AM, TheSLZ said:

    /usr/src/mainline/Srcs/Server/common/length.h

     

    PLAYER_EXP_TABLE_MAX = 120,
    PLAYER_MAX_LEVEL_CONST = 120,

     

    to

     

    PLAYER_EXP_TABLE_MAX = 300,
    PLAYER_MAX_LEVEL_CONST =300,

     

    And you may need to edit the exp table in this file (3x)

     

    /usr/src/mainline/Srcs/Server/game/src/constants.cpp

     

    Under this:

    const DWORD exp_table_euckr[PLAYER_EXP_TABLE_MAX + 1] =

    And this:

    const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1] =

    And this:

    const DWORD exp_table_newcibn[PLAYER_EXP_TABLE_MAX + 1 ] =

     

    But i think need to edit the navicat/player/player

    level tinyint-->int (for 255+level)

    (In Design table)

     

    .gif

     

    need edit more he need change Byte to unsigned long long  and packet.h Server/Cient

     

    • Metin2 Dev 2
    • Love 1
  4. Hi friends, I need combine 2 quest. I tryed 10x but all failed, or not see menu.. I hope one  friend can help me on this reason..

     

    The first quest : 

     

    quest user_pan begin
    	state start begin
    		when 40002.use begin
    			say("Welcome to the Userpannel")
    			local a = select ("Open Warehouse","Open Item Shop Storage", "Kingdom", "Close")
     
    			if a == 1 then
    				game.open_safebox()
    			elseif a ==2 then
    				game.open_mall()
    			elseif a == 3 then
    				say("Just pick ported in which kingdom")
    				say("you want to be. It's always Map1")
    				local c = select("Blue Kingdom", "Red Kingdom", "Yellows Kingdom", "Close")
    				if c == 4 then
    					return
    				elseif c == 1 then
    					pc.warp(969600, 278400)
    				elseif c == 2 then
    					pc.warp(469300, 964200)
    				elseif c == 3 then
    					pc.warp(55700, 157900)
    				end
    			end
    		end
    	end
    end

     

    And I want add teleport ring quest to this file..

     

    quest warpring begin 
        state start begin 
            when 40002.use with pc.get_level() >= 10 begin  
    		
                    say_title("Teleport Ring:") 
                    say("Teleporting with Wormhole") 
                    -- return 
                -- end 
    
                local map = pc.get_map_index() 
                local empire = pc.get_empire() 
                local level = pc.get_level() 
    
                -- say_title("Metin2Galactica") 
                -- say("-----------------------") 
    
                -- ?? ?? ???? ?? ?? (? ?? 1,2 ??) 
                if map == 1 or map == 3 or map == 21 or map == 23 or map == 41 or map == 43 then 
    
                    local guild_map_names = { 
                        "Guild Zone", 
                        "Guild Zone", 
                        "Guild Zone", 
                    } 
    
                    guild_map_name = guild_map_names[empire] 
                    local empire_castle={ 
                        "Castle Battle", 
                        "Castle Battle", 
                        "Castle Battle", 
                    } 
                    empire_castle =empire_castle[empire] 
                    local sub_set = 0 
                    if level < 60 then -- 60?? : ?????, ???, ????, ??? 
                        sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain", empire_castle,"Other Maps") 
                        if sub_set == 6 then -- ?? 
                            return 
                        end 
    
                    else -- 61?? : ????, ???, ????, ???? 
                        sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain",  empire_castle,"Other Maps") 
                        if sub_set == 6 then -- ?? 
                            say_title("Teleporter:") 
                            say("Where do you want to be teleported?") 
                            sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wild Forest", "Red Forest", "Land of the Giants", "Back", "Cancel") + 5 
                            if sub_set == 13 then -- ?? 
                                return 
                            end 
                            if sub_set == 12 then -- ?? 
                                say_title("Teleporter:") 
                                say("Where do you want to be teleported?") 
                                                     ---                                                   l 
                                sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain",  empire_castle,"Other Maps") 
                                if sub_set == 6 then -- ?? 
                                    say_title("Teleporter:") 
                                    say("Where do you want to be teleported?") 
                                    sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wilde Forest", "Red Forest", "Land of the Giants", "Cancel") + 5 
                                    if sub_set == 12 then -- ?? 
                                        return 
                                    end 
                                end 
                            end 
                        end 
                    end 
    
    
                    local warp = { 
                        -- guild_map 
                        { 
                            { 128500, 1000 }, 
                            { 179500, 1000 }, 
                            { 271800, 13000 }, 
                        }, 
                        -- 64 map_n_threeway 
                        { 
                            { 402100, 673900 }, 
                            { 270400, 739900 }, 
                            { 321300, 808000 }, 
                        }, 
                        -- 63 metin2_map_n_desert_01 
                        { 
                            { 217800, 627200 }, 
                            { 221900, 502700 }, 
                            { 344000, 502500 }, 
                        }, 
                        -- 61 map_n_snowm_01 
                        { 
                            { 434200, 290600 }, 
                            { 375200, 174900 }, 
                            { 491800, 173600 }, 
                        }, 
                        --empire_castle 
                        { 
                            {975200, 133000}, 
                            {977200, 185000}, 
                            {923900, 183600}, 
                         
                        } , 
                        -- 62 metin2_map_n_flame_01 
                        { 
                            { 599400, 756300 }, 
                            { 597800, 622200 }, 
                            { 730700, 689800 }, 
                        }, 
                        -- devil_tower 
                        { 
                            { 590500, 110500 }, 
                            { 590500, 110500 }, 
                            { 590500, 110500 }, 
                        }, 
                        -- 104 metin2_map_spiderdungeon 
                        { 
                            { 60000, 496000 }, 
                            { 60000, 496000 }, 
                            { 60000, 496000 }, 
                        }, 
                        -- 67 metin2_map_trent 
                        { 
                            { 288700, 5700 }, 
                            { 288700, 5700 }, 
                            { 288700, 5700 }, 
                        }, 
                        -- 68 metin2_map_trent02 
                        { 
                            { 1119900, 70800 }, 
                            { 1119900, 70800 }, 
                            { 1119900, 70800 }, 
                        }, 
                        -- 70 metin2_map_nusluck01 
                        { 
                            { 845100, 745900 }, 
                            { 845100, 745900 }, 
                            { 845100, 745900 }, 
                        }, 
                 
    
                    } 
                    test_chat(warp[sub_set][empire][1]..warp[sub_set][empire][2]) 
                    say_title("Ring:") 
                    say("I teleport now.") 
                    wait() 
                    pc.warp(warp[sub_set][empire][1], warp[sub_set][empire][2]) 
                 
    
                else -- ? ?? 1,2 ? ??? ?????? ? ?? 1,2 ? ??? ?? ??     
                    local sub_set2 = 3 
    
                    --sub_set2 = select(locale.vileage1_name[empire], locale.vileage2_name[empire], locale.cancel) 
                    if empire==1 then     
                        sub_set2 = select("Red Kingdom #1","Red Kingdom #2" , locale.cancel) 
                    elseif  empire ==2 then   
                        sub_set2 = select("Yellow Kingdom #1","Yellow Kingdom #2" , locale.cancel) 
                    elseif  empire ==3 then  
                        sub_set2 = select("Blue Kingdom #1","Blue Kingdom #2" , locale.cancel) 
                    end     
                    if sub_set2 != 3 then 
                        if sub_set2 == 1 then 
                            say_title("Ring:") 
                            say("Holly Wormhole!1one!1!!") 
                            wait() 
    
                            if empire == 1 then 
                                pc.warp(474300,954800) 
                            elseif empire == 2 then 
                                pc.warp(63800,166400) 
                            elseif empire == 3 then 
                                pc.warp(959900,269200) 
                            end     
                        elseif sub_set2 == 2 then 
                            say_title("Ring:") 
                            say("Holly Wormhole!1one!1!!") 
    
                            wait() 
                            if empire == 1 then 
                                pc.warp(353100,882900) 
                            elseif empire == 2 then 
                                pc.warp(145500,240000) 
                            elseif empire == 3 then 
                                pc.warp(863900,246000) 
                            end     
                        end -- end sub set check2 if 
                    end -- end sub set check1 if 
                end    -- end map check if 
            end -- end when use item 
        end -- end state start 
    end -- end quest warpring3  

     

    Sorry for my bad english.

    quest warpring begin
        state start begin
            when 40002.use with pc.get_level() >= 10 begin 
    			say("Welcome to the Userpannel")
                local a = select ("Open Warehouse","Open Item Shop Storage", "Kingdom", "Teleport", "Close")
      
                if a == 1 then
                    game.open_safebox()
                elseif a ==2 then
                    game.open_mall()
                elseif a == 3 then
                    say("Just pick ported in which kingdom")
                    say("you want to be. It's always Map1")
                    local c = select("Blue Kingdom", "Red Kingdom", "Yellows Kingdom", "Close")
                    if c == 4 then
                        return
                    elseif c == 1 then
                        pc.warp(969600, 278400)
                    elseif c == 2 then
                        pc.warp(469300, 964200)
                    elseif c == 3 then
                        pc.warp(55700, 157900)
                    end
    			elseif a ==4 then
                    say_title("Teleport Ring:") 
                    say("Teleporting with Wormhole") 
                    -- return 
    				-- end 
    	 
    				local map = pc.get_map_index() 
    				local empire = pc.get_empire() 
    				local level = pc.get_level() 
    	 
    				-- say_title("Metin2Galactica") 
    				-- say("-----------------------") 
    	 
    				-- ?? ?? ???? ?? ?? (? ?? 1,2 ??) 
    				if map == 1 or map == 3 or map == 21 or map == 23 or map == 41 or map == 43 then
    	 
    					local guild_map_names = { 
    						"Guild Zone", 
    						"Guild Zone", 
    						"Guild Zone", 
    					} 
    	 
    					guild_map_name = guild_map_names[empire] 
    					local empire_castle={ 
    						"Castle Battle", 
    						"Castle Battle", 
    						"Castle Battle", 
    					} 
    					empire_castle =empire_castle[empire] 
    					local sub_set = 0 
    					if level < 60 then -- 60?? : ?????, ???, ????, ??? 
    						sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain", empire_castle,"Other Maps") 
    						if sub_set == 6 then -- ?? 
    							return
    						end
    	 
    					else -- 61?? : ????, ???, ????, ???? 
    						sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain",  empire_castle,"Other Maps") 
    						if sub_set == 6 then -- ?? 
    							say_title("Teleporter:") 
    							say("Where do you want to be teleported?") 
    							sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wild Forest", "Red Forest", "Land of the Giants", "Back", "Cancel") + 5 
    							if sub_set == 13 then -- ?? 
    								return
    							end
    							if sub_set == 12 then -- ?? 
    								say_title("Teleporter:") 
    								say("Where do you want to be teleported?") 
    													 ---                                                   l 
    								sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain",  empire_castle,"Other Maps") 
    								if sub_set == 6 then -- ?? 
    									say_title("Teleporter:") 
    									say("Where do you want to be teleported?") 
    									sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wilde Forest", "Red Forest", "Land of the Giants", "Cancel") + 5 
    									if sub_set == 12 then -- ?? 
    										return
    									end
    								end
    							end
    						end
    					end
    	 
    	 
    					local warp = { 
    						-- guild_map 
    						{ 
    							{ 128500, 1000 }, 
    							{ 179500, 1000 }, 
    							{ 271800, 13000 }, 
    						}, 
    						-- 64 map_n_threeway 
    						{ 
    							{ 402100, 673900 }, 
    							{ 270400, 739900 }, 
    							{ 321300, 808000 }, 
    						}, 
    						-- 63 metin2_map_n_desert_01 
    						{ 
    							{ 217800, 627200 }, 
    							{ 221900, 502700 }, 
    							{ 344000, 502500 }, 
    						}, 
    						-- 61 map_n_snowm_01 
    						{ 
    							{ 434200, 290600 }, 
    							{ 375200, 174900 }, 
    							{ 491800, 173600 }, 
    						}, 
    						--empire_castle 
    						{ 
    							{975200, 133000}, 
    							{977200, 185000}, 
    							{923900, 183600}, 
    						  
    						} , 
    						-- 62 metin2_map_n_flame_01 
    						{ 
    							{ 599400, 756300 }, 
    							{ 597800, 622200 }, 
    							{ 730700, 689800 }, 
    						}, 
    						-- devil_tower 
    						{ 
    							{ 590500, 110500 }, 
    							{ 590500, 110500 }, 
    							{ 590500, 110500 }, 
    						}, 
    						-- 104 metin2_map_spiderdungeon 
    						{ 
    							{ 60000, 496000 }, 
    							{ 60000, 496000 }, 
    							{ 60000, 496000 }, 
    						}, 
    						-- 67 metin2_map_trent 
    						{ 
    							{ 288700, 5700 }, 
    							{ 288700, 5700 }, 
    							{ 288700, 5700 }, 
    						}, 
    						-- 68 metin2_map_trent02 
    						{ 
    							{ 1119900, 70800 }, 
    							{ 1119900, 70800 }, 
    							{ 1119900, 70800 }, 
    						}, 
    						-- 70 metin2_map_nusluck01 
    						{ 
    							{ 845100, 745900 }, 
    							{ 845100, 745900 }, 
    							{ 845100, 745900 }, 
    						}, 
    				  
    	 
    					} 
    					test_chat(warp[sub_set][empire][1]..warp[sub_set][empire][2]) 
    					say_title("Ring:") 
    					say("I teleport now.") 
    					wait() 
    					pc.warp(warp[sub_set][empire][1], warp[sub_set][empire][2]) 
    				  
    	 
    				else -- ? ?? 1,2 ? ??? ?????? ? ?? 1,2 ? ??? ?? ??     
    					local sub_set2 = 3 
    	 
    					--sub_set2 = select(locale.vileage1_name[empire], locale.vileage2_name[empire], locale.cancel) 
    					if empire==1 then    
    						sub_set2 = select("Red Kingdom #1","Red Kingdom #2" , locale.cancel) 
    					elseif  empire ==2 then  
    						sub_set2 = select("Yellow Kingdom #1","Yellow Kingdom #2" , locale.cancel) 
    					elseif  empire ==3 then 
    						sub_set2 = select("Blue Kingdom #1","Blue Kingdom #2" , locale.cancel) 
    					end    
    					if sub_set2 != 3 then
    						if sub_set2 == 1 then
    							say_title("Ring:") 
    							say("Holly Wormhole!1one!1!!") 
    							wait() 
    	 
    							if empire == 1 then
    								pc.warp(474300,954800) 
    							elseif empire == 2 then
    								pc.warp(63800,166400) 
    							elseif empire == 3 then
    								pc.warp(959900,269200) 
    							end    
    						elseif sub_set2 == 2 then
    							say_title("Ring:") 
    							say("Holly Wormhole!1one!1!!") 
    	 
    							wait() 
    							if empire == 1 then
    								pc.warp(353100,882900) 
    							elseif empire == 2 then
    								pc.warp(145500,240000) 
    							elseif empire == 3 then
    								pc.warp(863900,246000) 
    							end    
    						end -- end sub set check2 if 
    					end -- end sub set check1 if 
    				end    -- end map check if 
    			end -- new
            end -- end when use item 
        end -- end state start 
    end -- end quest warpring3
    • Love 1
×
×
  • 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.