Jump to content

DasKuchen

Inactive Member
  • Posts

    25
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by DasKuchen

  1. i want to define a new refine scroll i added in char_item.cpp "NEW_REFINE_SCROLL = 7," in "enum_RefineScrolls" i also added it in "bool CHARACTER::DoRefineWithScroll" but if i want to upgrade with a scroll value0 = 7 it wont work the refine window wont popup
  2. Hello guy´s we have a problem sometimes the Metin2 Client closes with the error Unknown Packet header, the problem is the Packet header dont exists in packet.h what can we do ? (we think the packet header is dynamic or something) if some can help us we are willing to pay some money Skype: epvpdaskuchen
  3. Metin2 already defined a function for this i think in prototype.py or something.
  4. struct FDungeonPIDCollector { std::vector <DWORD> vecPIDs; FDungeonPIDCollector() { } void operator () (LPCHARACTER ch) { vecPIDs.push_back(ch->GetPlayerID()); } }; int dungeon_get_member_pids(lua_State *L) { CQuestManager & q = CQuestManager::instance(); LPCHARACTER ch = q.GetCurrentCharacterPtr(); LPDUNGEON pDungeon = q.GetCurrentDungeon(); if (NULL == pDungeon) { return 0; } FDungeonPIDCollector f; pDungeon->ForEachMember(f); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { lua_pushnumber(L, *it); } return f.vecPIDs.size(); } I just changed the party.get_member_pids function to get all members of a dungeon but dont know if it works. Would be nice if somebody can check this. Try to put this in: questlua_dungeon.cpp
  5. Is there an easy way to seach and replace? (Freebsd) For example change config options
  6. I seached for a function but than i saw this entry in party.h and cant believe that its so easy
  7. open party.h search for: PARTY_MAX_MEMBER you will find this: enum // unit : minute { PARTY_ENOUGH_MINUTE_FOR_EXP_BONUS = 60, // ÆÄƼ °á¼º ÈÄ 60ºÐ ÈÄ ºÎÅÍ Ãß°¡ °æÇèÄ¡ º¸³Ê½º PARTY_HEAL_COOLTIME_LONG = 60, PARTY_HEAL_COOLTIME_SHORT = 30, PARTY_MAX_MEMBER = 8, PARTY_DEFAULT_RANGE = 5000, }; Just change PARTY_MAX_MEMBER = 8, 8 to whatever do you want
  8. How can i fix these slots: I cant use a mount but there are 4 slots to use.
  9. /usr/bin/ld: cannot find -lmysqlclient nothing more to say. Install mysql client. Is already installed thats the problem.
  10. linking ../game_r123456_32.... linking ../test /usr/bin/ld: cannot find -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient gmake: *** [../game_r123456_32] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [../test] Error 1 He is compiling everything and then he cant link the gamefile
  11. Hey my question ist how can i update the Granny version of Metin2 to 2.9. I need this version to use new animations.
  12. I allready installed mysql55 client so i cant install mysql51 and i think mysql55 is more secure. I installed devil but i get the same error.
  13. Error: Starte DB-Server... Shared object "libmysqlclient.so.15" not found, required by "dbcache" Starte Auth-Server... Shared object "libIL.so.2" not found, required by "game_actual" Starte Channel 1 ... Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Shared object "libIL.so.2" not found, required by "game_actual" Starte Channel 99... Shared object "libIL.so.2" not found, required by "game_actual" Informations: DB: 40146 Gamecore: 40250 Freebsd 9.2 64bit
  14. @Sanchez can i send locale_de.epk and eix to you ? And you convert it? (because i think the pack files where protected)
  15. Instead of this: // if (IsPolymorphed()) // { // DWORD dwMobVnum = GetPolymorphVnum(); // const CMob * pMob = CMobManager::instance().Get(dwMobVnum); // int iAtt = 0; // int iDef = 0; // if (pMob) // { // iAtt = GetLevel() * 2 + GetPolymorphPoint(POINT_ST) * 2; // // lev + con // iDef = GetLevel() + GetPolymorphPoint(POINT_HT) + pMob->m_table.wDef; // } // SetPoint(POINT_ATT_GRADE, iAtt); // SetPoint(POINT_DEF_GRADE, iDef); // SetPoint(POINT_MAGIC_ATT_GRADE, GetPoint(POINT_ATT_GRADE)); // SetPoint(POINT_MAGIC_DEF_GRADE, GetPoint(POINT_DEF_GRADE)); // } // else if (IsPC())You can write this: /* if (IsPolymorphed()) { DWORD dwMobVnum = GetPolymorphVnum(); const CMob * pMob = CMobManager::instance().Get(dwMobVnum); int iAtt = 0; int iDef = 0; if (pMob) { iAtt = GetLevel() * 2 + GetPolymorphPoint(POINT_ST) * 2; // lev + con iDef = GetLevel() + GetPolymorphPoint(POINT_HT) + pMob->m_table.wDef; } SetPoint(POINT_ATT_GRADE, iAtt); SetPoint(POINT_DEF_GRADE, iDef); SetPoint(POINT_MAGIC_ATT_GRADE, GetPoint(POINT_ATT_GRADE)); SetPoint(POINT_MAGIC_DEF_GRADE, GetPoint(POINT_DEF_GRADE)); } else if (IsPC()) */But thanks for sharing.
  16. I think you have to write: cd /mod_antiloris-0.4 Instead of cd mod_antiloris-0.4/
  17. Here is my function to get the image of an item: function MakeItemImage($vnum) { $ItemType = mysql_result(mysql_query("SELECT type FROM player.item_proto WHERE vnum='".mysql_real_escape_string($vnum)."' LIMIT 1"),0); if ($vnum >= 11971 && $vnum <= 11974){return $vnum;} // Kingarmour fix if ($ItemType == 1 || $ItemType == 2){ $vnum = substr($vnum,0,strlen($vnum)-1); $vnum .= "0"; if (strlen($vnum) < 5){ $Differenz = (5-strlen($vnum)); $Nullen = ""; for ($i = 1; $i <= $Differenz; $i++) { $Nullen .= "0"; } $vnum = $Nullen.$vnum; } } return $vnum; } How to use: $vnum = 149; if (file_exists("is_img/".MakeItemImage($vnum).".png"){ echo '<img src="is_img/'.MakeItemImage($vnum).'.png"/>'; } else{ echo '<img src="is_img/fail.png/>"'; }
×
×
  • 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.