Jump to content

Pisti95

Member
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Pisti95

  1. Hi metin2dev,

    Today, I find in my clients python scripts soulution, but I found it.

    EXP bug, or negative bug in 34k. I thought, that 34k game file is bug, but no. In the client side is bug.

    Unbugged tutorial:

    uicharacter.py

    Search for:

     

    class CharacterWindow(ui.ScriptWindow):

     

    Write above this:

     

    def unsigned32(n):
        return n & 0xFFFFFFFFL

     

    Search for these strings:

     

    self.GetChild("Exp_Value").SetText(str(player.GetEXP()))
    self.GetChild("RestExp_Value").SetText(str(player.GetStatus(player.NEXT_EXP) - player.GetStatus(player.EXP)))

     

     

    Change for these:

     

    self.GetChild("Exp_Value").SetText(str(unsigned32(player.GetEXP())))
    self.GetChild("RestExp_Value").SetText(str(unsigned32(player.GetStatus(player.NEXT_EXP)) - unsigned32(player.GetStatus(player.EXP))))

     

    ####################################################################################################

     

    uitaskbar.py

    Search for:

    def LoadMouseButtonSettings():

     

    Write under this:

    def unsigned32(n):
        return n & 0xFFFFFFFFL

     

    You can see this, in default/standard uitaskbar.py

    Quote

     

    def LoadMouseButtonSettings():
       global MOUSE_SETTINGS
       tokens = open("mouse.cfg", "r").read().split()

       if len(tokens) != 2:
          raise RuntimeError, "MOUSE_SETTINGS_FILE_ERROR"

       MOUSE_SETTINGS[0] = int(tokens[0])
       MOUSE_SETTINGS[1] = int(tokens[1])

    def unsigned32(n):
       return n & 0xFFFFFFFFL


    class EnergyBar(ui.ScriptWindow):
       class TextToolTip(ui.Window):

     

    Search for:

            curEXP = player.GetStatus(player.EXP)
            nextEXP = player.GetStatus(player.NEXT_EXP)

     

    Replace these strings:

            curEXP = unsigned32(player.GetStatus(player.EXP))
            nextEXP = unsigned32(player.GetStatus(player.NEXT_EXP))

    ##########################################################################################################

     

    uiguild.py

    Search for:

    class DeclareGuildWarDialog(ui.ScriptWindow):

     

    Write above this:

    def unsigned32(n):
        return n & 0xFFFFFFFFL

     

    Search for:

     

    def __OnClickOfferButton(self):

     

    Replace this string:

    curEXP = player.GetStatus(player.EXP)

     

    With this:

    curEXP = unsigned32(player.GetStatus(player.EXP))

     

     

    That's all! :D

    Best Regards,

    Pisti95

    • Love 1
  2. Bug fix for your bug.

     

    bool CActorInstance::__IsLeftHandWeapon(DWORD type)
    {
    if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::WEAPON_BOW == type)
    return true;
    
    


    #ifdef ENABLE_COSTUME_WEAPON
    else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::COSTUME_WEAPON_BOW == type)
    return true;
    #endif
    else
    return false;
    }
    
    


    bool CActorInstance::__IsRightHandWeapon(DWORD type)
    {
    if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::WEAPON_BOW == type)
    return false;
    #ifdef ENABLE_COSTUME_WEAPON
    else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::COSTUME_WEAPON_BOW == type )
    return false;
    #endif
    else 
    return true;
    }
    
    

     


    bool CActorInstance::__IsWeaponTrace(DWORD weaponType)
    {
    switch(weaponType)
    {
    case CItemData::WEAPON_BELL:
    case CItemData::WEAPON_FAN:
    case CItemData::WEAPON_BOW:
    #ifdef ENABLE_COSTUME_WEAPON
    case CItemData::COSTUME_WEAPON_BELL:
    case CItemData::COSTUME_WEAPON_FAN:
    case CItemData::COSTUME_WEAPON_BOW:
    #endif
    return false;
    default:
    return true;
    }
    }
    
    

     

    by Beklir A.

    • Love 1
  3. Bug fix:

    bool CActorInstance::__IsLeftHandWeapon(DWORD type)
    {
    if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::WEAPON_BOW == type)
    return true;
    
    
    #ifdef ENABLE_COSTUME_WEAPON
    else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::COSTUME_WEAPON_BOW == type)
    return true;
    #endif
    else
    return false;
    }
    
    
    bool CActorInstance::__IsRightHandWeapon(DWORD type)
    {
    if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::WEAPON_BOW == type)
    return false;
    #ifdef ENABLE_COSTUME_WEAPON
    else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
    return true;
    else if (CItemData::COSTUME_WEAPON_BOW == type )
    return false;
    #endif
    else 
    return true;
    }
    
    
    bool CActorInstance::__IsWeaponTrace(DWORD weaponType)
    {
    switch(weaponType)
    {
    case CItemData::WEAPON_BELL:
    case CItemData::WEAPON_FAN:
    case CItemData::WEAPON_BOW:
    #ifdef ENABLE_COSTUME_WEAPON
    case CItemData::COSTUME_WEAPON_BELL:
    case CItemData::COSTUME_WEAPON_FAN:
    case CItemData::COSTUME_WEAPON_BOW:
    #endif
    return false;
    default:
    return true;
    
    
    }
    }

     

     

    Source:  turkmmo from Beklir A.

    Costume Weapon.7z

    • Love 2
  4. 5 hours ago, Cortana said:

    Hi guys. I want to to the following thing, maybe someone can help me?

    When you start exchange&safebox, untratable items gonna be red.

    Like this:pPIfUej.png

     

    Help would be nice!

    I think, in uiexchange.py and exchangedialog.py is bug, effect.

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