Jump to content

daredevil09

Inactive Member
  • Posts

    78
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by daredevil09

  1. If the language is tr the server will read text from translate_tr.lua, if the language is de the server will read text from translate_de.lua..

    Can someone make something like this?

     

    Or like this:

    On 04.07.2016 at 11:44 PM, panher said:

    Translate.lua

    /usr/game/share/locale/turkey/translate.lua

    Gamesrc/game/src/questlua.cpp

    "%s/translate.lua"

    %s/ <-- Turkey, Germany, Mexico, English, Romania

    Gameforce quest list

    text editing works instantly

    4e9cb915f7294a3db385f9cbc0df1f9a.png

     

    player table 'lang'

    Turkey, Germany, Mexico, English, Romania

    yea

     

     

  2.  

    On 06.01.2016 at 11:34 PM, daredevil09 said:

    Compile error:

      Reveal hidden contents

     

    char.cpp: At global scope:
    char.cpp:7399: error: no 'std::string CHARACTER::LongToString(long int)' member function declared in class 'CHARACTER'
    char.cpp: In member function 'std::string CHARACTER::LongToString(long int)':
    char.cpp:7401: error: aggregate 'std::ostringstream convert' has incomplete type and cannot be defined
    char.cpp: At global scope:
    char.cpp:7406: error: no 'bool CHARACTER::AllowMapIndex()' member function declared in class 'CHARACTER'
     


    cmd_general.cpp: In function 'void do_pvp(CHARACTER*, const char*, int, int)':
    cmd_general.cpp:785: error: 'class CHARACTER' has no member named 'AllowMapIndex'

     


     

    where add this? in what file cpp?

    And these events:

    
    std::string CHARACTER::LongToString(long data)
    {
    	std::ostringstream convert;
    	convert << data;
    	return convert.str();
    }
    
    bool CHARACTER::AllowMapIndex()
    {
    	for (int i = 0; i < ExcludeIndex.size(); i++)
    	{
    		if (!strcmp(LongToString(GetMapIndex()).c_str(), ExcludeIndex[i].c_str()))
    		{
    			return false;
    		}
    	}
    
    	return true;
    }

     

  3. On 06.01.2016 at 11:34 PM, daredevil09 said:

    Compile error:

      Hide contents

     

    char.cpp: At global scope:
    char.cpp:7399: error: no 'std::string CHARACTER::LongToString(long int)' member function declared in class 'CHARACTER'
    char.cpp: In member function 'std::string CHARACTER::LongToString(long int)':
    char.cpp:7401: error: aggregate 'std::ostringstream convert' has incomplete type and cannot be defined
    char.cpp: At global scope:
    char.cpp:7406: error: no 'bool CHARACTER::AllowMapIndex()' member function declared in class 'CHARACTER'
     


    cmd_general.cpp: In function 'void do_pvp(CHARACTER*, const char*, int, int)':
    cmd_general.cpp:785: error: 'class CHARACTER' has no member named 'AllowMapIndex'

     


     

    where add this? in what file cpp?

    And these events:

    
    std::string CHARACTER::LongToString(long data)
    {
    	std::ostringstream convert;
    	convert << data;
    	return convert.str();
    }
    
    bool CHARACTER::AllowMapIndex()
    {
    	for (int i = 0; i < ExcludeIndex.size(); i++)
    	{
    		if (!strcmp(LongToString(GetMapIndex()).c_str(), ExcludeIndex[i].c_str()))
    		{
    			return false;
    		}
    	}
    
    	return true;
    }

    up

  4.  

    Hello, I implemented in client system group PM. It works well, but the button is placed in the whisper window and I want to move button to appear in the chat below . I added some functions in uichat.py ( I inspired from the chat button sendwhisper ) but in vain, the button appears below the window does not open system pm group . Can someone help me ? Or at least some ideas how I can do ...

    https://metin2.download/picture/uSQE9TIfdZSTbNfE6ifu8y1RxVbHcn77/.jpg

     

    Link with system and files from my client:

    This is the hidden content, please

  5. Compile error:

    Spoiler

     

    char.cpp: At global scope:
    char.cpp:7399: error: no 'std::string CHARACTER::LongToString(long int)' member function declared in class 'CHARACTER'
    char.cpp: In member function 'std::string CHARACTER::LongToString(long int)':
    char.cpp:7401: error: aggregate 'std::ostringstream convert' has incomplete type and cannot be defined
    char.cpp: At global scope:
    char.cpp:7406: error: no 'bool CHARACTER::AllowMapIndex()' member function declared in class 'CHARACTER'
     


    cmd_general.cpp: In function 'void do_pvp(CHARACTER*, const char*, int, int)':
    cmd_general.cpp:785: error: 'class CHARACTER' has no member named 'AllowMapIndex'

     


     

    where add this? in what file cpp?

    And these events:

    std::string CHARACTER::LongToString(long data)
    {
    	std::ostringstream convert;
    	convert << data;
    	return convert.str();
    }
    
    bool CHARACTER::AllowMapIndex()
    {
    	for (int i = 0; i < ExcludeIndex.size(); i++)
    	{
    		if (!strcmp(LongToString(GetMapIndex()).c_str(), ExcludeIndex[i].c_str()))
    		{
    			return false;
    		}
    	}
    
    	return true;
    }
  6. Hi, I have a problem ... I have implemented this system , When I press the button, window Appear Every time I hit the button. So the window appears each time you press the button and this is not good .

     

    M1FrFr6

    https://metin2.download/picture/VzTU42UClHo2BQl35M23xabIbMRow47t/.jpg

    This is tut for system with this bug:

    uiinventory.py from root and replace all function def ClickMallButton with :

    def ClickMallButton(self):
          self.choix = ui.BoardWithTitleBar()
          self.choix.SetSize(210, 80)
          self.choix.SetCenterPosition()
          self.choix.AddFlag('float')
          self.choix.AddFlag('movable')
          self.choix.SetTitleName("Ouverture entrepôt")
          self.choix.Show()
          
          self.EntrepotIs = ui.Button()
          self.EntrepotIs.SetEvent(self.OpenIs)
          self.EntrepotIs.SetParent(self.choix)
          self.EntrepotIs.SetPosition(35, 40)
          self.EntrepotIs.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
          self.EntrepotIs.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
          self.EntrepotIs.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
          self.EntrepotIs.SetText("ItemShop")
          self.EntrepotIs.SetToolTipText("Ouvrir l'entrepot ItemShop")
          self.EntrepotIs.Show()
          
          self.Magasinier = ui.Button()
          self.Magasinier.SetEvent(self._normal_mall)
          self.Magasinier.SetParent(self.choix)
          self.Magasinier.SetPosition(105, 40)
          self.Magasinier.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
          self.Magasinier.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
          self.Magasinier.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
          self.Magasinier.SetText("Magasinier")
          self.Magasinier.SetToolTipText("Ouvrir le magasinier")
          self.Magasinier.Show()
    ------------------  
    under add this: :
        def OpenIs(self):
            self.EntrepotIs.Hide()
            self.choix.Hide()
            self.Magasinier.Hide()
            net.SendChatPacket("/click_mall")
       
        def _normal_mall(self):
            self.EntrepotIs.Hide()
            self.Magasinier.Hide()
            self.choix.Hide()
            net.SendChatPacket("/click_safebox")
    --------------------------------------------------------------------------------------------
    open cmd_general.cpp from game/src and search:
    ACMD(do_click_mall)
    {
       ch->ChatPacket(CHAT_TYPE_COMMAND, "ShowMeMallPassword");
    }
    ----------------------------------------------
    under add:
    ACMD(do_click_safebox)
    {
       ch->ChatPacket(CHAT_TYPE_COMMAND, "ShowMeSafeboxPassword");
    }
    ----------------------------------------------
    open cmd.cpp from game/src and search:
    ACMD(do_click_mall);
    ----------------------------------------------
    under add:
    ACMD(do_click_safebox);
    ----------------------------------------------

    in cmd_general.cpp from game/src search:
    { "click_mall",    do_click_mall,    0,    POS_DEAD,    GM_PLAYER    },
    ----------------------------------------------
    under add:
    { "click_safebox",         do_click_safebox,         0,   POS_DEAD,   GM_PLAYER      },
    ----------------------------------------------
    open char.cpp from game/src and search:
    else if (GetDistanceFromSafeboxOpen() > 1000)
       {

          ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> °Å¸®°¡ ¸Ö¾î¼­ â°í¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù."));
          return;
       }
    ----------------------------------------------
    and replace with:
    /*else if (GetDistanceFromSafeboxOpen() > 1000)
       {

          ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> °Å¸®°¡ ¸Ö¾î¼­ â°í¸¦ ¿­ ¼ö ¾ø½À´Ï´Ù."));
          return;
       }*/
    ================================================================================================

    Help?

  7. Error    4    error C2374: 'pkInstMain' : redefinition; multiple initialization    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonNetworkStreamPhaseGame.cpp    1129    1    UserInterface
    Error    6    error C2374: 'pkInstMain' : redefinition; multiple initialization    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonNetworkStreamPhaseGame.cpp    1139    1    UserInterface
    Error    3    error C2374: 'rkChrMgr' : redefinition; multiple initialization    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonNetworkStreamPhaseGame.cpp    1128    1    UserInterface
    Error    5    error C2374: 'rkChrMgr' : redefinition; multiple initialization    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonNetworkStreamPhaseGame.cpp    1138    1    UserInterface
    Warning    8    warning C4101: 'iSlotPos' : unreferenced local variable    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonPlayerModule.cpp    978    1    UserInterface
    Warning    7    warning C4101: 'iSourceSlotIndex' : unreferenced local variable    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\PythonPlayerModule.cpp    763    1    UserInterface
    Warning    1    warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\NetworkActorManager.cpp    367    1    UserInterface
    Warning    2    warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)    C:\Users\Stefan\Desktop\Folder de lucru\client_reboot_dev\source\UserInterface\NetworkActorManager.cpp    417    1    UserInterface

    Probably anti wall hack...

    Help?

  8. @flygun i have this error

    0822 00:11:39668 ::   File "networkModule.py", line 239, in SetGamePhase
    
    0822 00:11:39668 ::   File "game.py", line 111, in __init__
    
    0822 00:11:39668 ::   File "interfaceModule.py", line 294, in MakeInterface
    
    0822 00:11:39668 ::   File "interfaceModule.py", line 229, in __MakeDialogs
    
    0822 00:11:39668 ::   File "uiSystem.py", line 33, in LoadDialog
    
    0822 00:11:39669 ::   File "uiSystem.py", line 48, in __LoadSystemMenu_Default
    
    0822 00:11:39669 ::   File "ui.py", line 2742, in GetChild
    
    0822 00:11:39669 :: KeyError
    0822 00:11:39669 :: : 
    0822 00:11:39669 :: 'Change_Channel'
    0822 00:11:39669 :: 

     

    help?

  9. Error	53	error C1083: Cannot open include file: 'hshield-5.5.19.1/AntiCpXSvr.h': No such file or directory	c:\users\stefan\desktop\client_reboot_dev\source\userinterface\Packet.h	5	1	UserInterface
    Error	4	error C1083: Cannot open include file: 'hshield-5.5.19.1/hsupchk.h': No such file or directory	C:\Users\Stefan\Desktop\client_reboot_dev\source\UserInterface\HackShield.cpp	11	1	UserInterface
    

    UP

  10. Error	53	error C1083: Cannot open include file: 'hshield-5.5.19.1/AntiCpXSvr.h': No such file or directory	c:\users\stefan\desktop\client_reboot_dev\source\userinterface\Packet.h	5	1	UserInterface
    Error	4	error C1083: Cannot open include file: 'hshield-5.5.19.1/hsupchk.h': No such file or directory	C:\Users\Stefan\Desktop\client_reboot_dev\source\UserInterface\HackShield.cpp	11	1	UserInterface
    

    UP

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