Jump to content

Panda88

Member
  • Posts

    16
  • Joined

  • Last visited

  • Feedback

    0%

About Panda88

Recent Profile Visitors

1097 profile views

Panda88's Achievements

Apprentice

Apprentice (3/16)

  • Conversation Starter
  • First Post
  • Collaborator
  • Week One Done
  • One Month Later

Recent Badges

9

Reputation

  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. HEADER_GC_TARGET_DELETE = 124, you work on the Target fucntion?
  3. 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.
  4. U See my bug i see Not right items? I use never client and game src posible bug from this?
  5. i addet in game / client not work in game,py def BINARY_M2DEV_Test(self, M2int): import dbg dbg.LogBox(str(M2int)) no error
  6. i add all in game, client src and game.py def BINARY_M2DEV_Test(self, M2int): import dbg dbg.TraceError(str(M2int)) def BINARY_GuildWar_OnRecvPoint(self, gainGuildID, opponentGuildID, point): self.interface.OnRecvGuildWarPoint(gainGuildID, opponentGuildID, point) and he write not in syserr
  7. This New Game Function This System only for MT2Portugalia / Bestvip. kind regards Panda
  8. And I want add teleport ring quest to this file.. 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
×
×
  • 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.