Jump to content

Lami666

Member
  • Posts

    16
  • Joined

  • Last visited

  • Feedback

    0%

About Lami666

  • Birthday 06/15/1984

Informations

  • Gender
    Male

Social Networks

Recent Profile Visitors

890 profile views

Lami666's Achievements

Apprentice

Apprentice (3/16)

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

Recent Badges

3

Reputation

  1. check this ACMD(do_goto) { char arg1[256], arg2[256]; int x = 0, y = 0, z = 0; two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2)); if (!*arg1 && !*arg2) { ch->ChatPacket(CHAT_TYPE_INFO, "Usage: goto <x meter> <y meter>"); return; } if (isnhdigit(*arg1) && isnhdigit(*arg2)) { str_to_number(x, arg1); str_to_number(y, arg2); PIXEL_POSITION p; if (SECTREE_MANAGER::instance().GetMapBasePosition(ch->GetX(), ch->GetY(), p)) { x += p.x / 100; y += p.y / 100; } ch->ChatPacket(CHAT_TYPE_INFO, "You goto ( %d, %d )", x, y); } else { int mapIndex = 0; BYTE empire = 0; if (*arg1 == '#') str_to_number(mapIndex, (arg1 + 1)); if (*arg2 && isnhdigit(*arg2)) { str_to_number(empire, arg2); empire = MINMAX(1, empire, 3); } else empire = ch->GetEmpire(); if (CHARACTER_GoToName(ch, empire, mapIndex, arg1)) { ch->ChatPacket(CHAT_TYPE_INFO, "Cannot find map command syntax: /goto <mapname> [empire]"); return; } return; /* int iMapIndex = 0; for (int i = 0; aWarpInfo.c_pszName != NULL; ++i) { if (iMapIndex != 0) { if (iMapIndex != aWarpInfo.iMapIndex) continue; } else if (!FindInString(arg1, aWarpInfo.c_pszName)) continue; if (aWarpInfo.bEmpire == 0 || aWarpInfo.bEmpire == bEmpire) { x = aWarpInfo.x * 100; y = aWarpInfo.y * 100; ch->ChatPacket(CHAT_TYPE_INFO, "You warp to ( %d, %d )", x, y); ch->WarpSet(x, y); ch->Stop(); return; } } */ } x *= 100; y *= 100; ch->Show(ch->GetMapIndex(), x, y, z); ch->Stop(); }
  2. After Sash come new update Costume Bonus the make the crash he need make a new version.
  3. use the ring slot only set in item proto ITEM_RING1 to the exp ring
  4. 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 my error
×
×
  • 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.