Jump to content

djmester

Member
  • Posts

    16
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by djmester

  1. Hello guys, 

     

    Has anyone worked on increasing attack speed?
    Because I know that above 255 it doesn't really matter, since the value is stored in byte type in 2 packages as well. But apart from that, if I increase it a lot, when the warrior attack  with two-handed sword on horse, every 2nd hit only does damage....i try editing msa files client and server side too but I was unsuccessful, how to solve this error?

     

    Thanks for help.

  2. thanks for help its work :) but u have one more question.

    i fount why crash my server but i dont know why..

    so :

     

    itertype(m_map_pkDropItemGroup) it;
    	
    	for (std::map<DWORD, CDropItemGroup*>::iterator it = m_map_pkDropItemGroup.begin(); it != m_map_pkDropItemGroup.end(); it++)
    	{
    		
    		if (it != m_map_pkDropItemGroup.end())
    		{
    			
    			typeof(it->second->GetVector()) v = it->second->GetVector();
    			
    
    			for (DWORD i = 0; i < v.size(); ++i)
    			{
    				
    				TItemTable* Titem = ITEM_MANAGER::instance().GetTable(v[i].dwVnum);
    				bool nume = (name_item.length() ? strstr(Titem->szLocaleName, name_item.c_str()) != NULL : true);
    				const CMob* pMob = CMobManager::instance().Get(it->first);
    				std::string name_monster(pMob->m_table.szLocaleName);
    				//ch->ChatPacket(CHAT_TYPE_INFO, "DWORD %d", it->first);
    				

    when i try get parameters from pMob.m_table i got all time crash . .when i just try wrote out it->first (dword) i got crash.. but if i list all "v[i].dwVnum" i have items .. but i dont know what is problem on pMob and it-first value. .. 😕 

    have any ideas? 

  3. Hi!

    i try fix one system. so starting debugging :D

    so i have one func in cmd_general. client send one word to server. and i try check is correctly.

    	char arg1[4096];
    	one_argument(argument, arg1, sizeof(arg1));
    	
    	if (!*arg1)
    		return;
    
    	int size_array = sizeof(argument) / sizeof(char);
    
    
    	
    	std::string nume_item(arg1);
    
    	ch->ChatPacket(CHAT_TYPE_INFO, "argumentum: %s , nume_item : %s", argument, nume_item);

    spacer.png

    so argument or arg1 is correclty but when i pass it on to a string i got wrong characters.. 

    What do I do wrong??

    gcc8 

  4. if i change this line in cmd_general.ccp i got error when i build..

    In file included from /usr/local/lib/gcc8/include/c++/algorithm:62,
                     from stdafx.h:19,
                     from cmd_general.cpp:1:
    /usr/local/lib/gcc8/include/c++/bits/stl_algo.h: In instantiation of 'void std::replace(_FIter, _FIter, const _Tp&, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Tp = char [2]]':
    cmd_general.cpp:2756:59:   required from here
    /usr/local/lib/gcc8/include/c++/bits/stl_algo.h:4375:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
      if (*__first == __old_value)
          ~~~~~~~~~^~~~~~~~~~~~~~
    /usr/local/lib/gcc8/include/c++/bits/stl_algo.h:4376:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
        *__first = __new_value;
        ~~~~~~~~~^~~~~~~~~~~~~
    gmake[1]: *** [Makefile:183: .obj/cmd_general.o] Error 1
    gmake[1]: Leaving directory '/Srcs/Server/game/src'
    gmake: *** [Makefile:111: all] Error 2

     

  5. Hello!

    I try use the find drop by item system. But when i try search game is crashed..
    so i started debugging and i fount if i print the char[] arg1 in server this is my word what i wrote in client. But next step is std::string item_name(arg1) and if i print item_name i got interesting text.. look the screenshot.

    so i how can i solved this problem?
    i read that i need to add the boost to Makefile but i don't know what to enter..

    and when i commented some line and just add string to FindItemMonster(ch,"sword") now crash just after in the the FindItemMonster function and this is line what is problem
    std::string name_monster(pMob->m_table.szLocaleName);

    so maybe std::string there is something wrong with it 😕

    Anyone have any ideas? Thanks and sorry my bad English 

    spacer.png

    • Love 1
  6. Hi

    I took in 7-8 skills and they work perfectly but if I add skill points they dissappear And I get this error :

    0310 22:23:20450 ::   File "game.py", line 850, in RefreshSkill

    0310 22:23:20460 ::   File "interfaceModule.py", line 583, in RefreshSkill

    0310 22:23:20460 ::   File "uiCharacter.py", line 858, in RefreshSkill

    0310 22:23:20460 ::   File "uiCharacter.py", line 795, in __RefreshSkillPage

    0310 22:23:20460 ::   File "uiCharacter.py", line 1212, in __GetRealSkillSlot

    0310 22:23:20460 :: RuntimeError
    0310 22:23:20460 :: :
    0310 22:23:20460 :: skill.GetSkillType - Failed to find skill by 0
    0310 22:23:20460 ::

     

    thanks!

  7. Hi 

    Absorpiton rate 11% so!
    if use with a weapon, it gave the wrong bronus but it gaves the right armor...

    see SS:

    https://metin2.download/picture/HjW6q967EFCkUh1I3z5IaQWq58G7gxS5/.png

    https://metin2.download/picture/o6PZu9a0LkqKxx322rSs38r9kg71dsgJ/.png

    https://metin2.download/picture/pcV72lUvufzHK5AnPYq3vuT19sbydb2U/.png

     

    anybody?.. i dont found where this problem :/

     

    Thanks!

×
×
  • 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.