Jump to content

Denis

Banned
  • Posts

    1031
  • Joined

  • Last visited

  • Days Won

    53
  • Feedback

    0%

Posts posted by Denis

  1. It should work

    #include "../UserInterface/PythonSkill.h"
    /*
    stuff...
    */

    const char * CItemData::GetName() const
    {
        CPythonSkill::SSkillData * c_pSkillData;
        bool Skills = CPythonSkill::Instance().GetSkillData(GetSocket(0), &c_pSkillData)

        char szText[1024];
        
        switch (GetType())
        {
            case ITEM_TYPE_POLYMORPH:
                return m_ItemTable.szLocaleName;
                break;
            case ITEM_TYPE_SKILLBOOK:
            case ITEM_TYPE_SKILLFORGET:
                if(Skills)
                {
                    sprintf(szText, "%s - %s", m_ItemTable.szLocaleName, c_pSkillData->strName.c_str());
                    return szText;
                }
                else
                    return m_ItemTable.szLocaleName;
                break;
            default:
                return m_ItemTable.szLocaleName;
                break;
        }

    }

  2. At uiinventory.InventoryWindow().RefreshBagSlotWindow() add

     

            if constInfo.My_Systems["wj_trade_icon"]:
                if shop.IsOpen() and not shop.IsPrivateShop():
                    if item.IsAntiFlag(item.ITEM_ANTIFLAG_SELL):
                        self.wndItem.SetUnusableSlot(True,i)
                else:
                    self.wndItem.SetUsableSlot(False,i)

                if safebox.IsOpen():
                    if item.IsAntiFlag(item.ITEM_ANTIFLAG_SAFEBOX):
                        self.wndItem.SetUnusableSlot(True,i)
                else:
                    self.wndItem.SetUsableSlot(False,i)

                if exchange.isTrading():
                    if item.IsAntiFlag(item.ITEM_ANTIFLAG_GIVE):
                        self.wndItem.SetUnusableSlot(True,i)
                else:
                    self.wndItem.SetUsableSlot(False,i)

                if uiPrivateShopBuilder.IsBuildingPrivateShop(True):
                    if item.IsAntiFlag(item.ITEM_ANTIFLAG_MYSHOP):
                        self.wndItem.SetUnusableSlot(True,i)
                    else:
                        self.wndItem.SetUsableSlot(False,i)
                else:
                    self.wndItem.SetUsableSlot(False,i)

     

     

    Remove the constinfo though.

  3. 2 hours ago, Krawbber said:

    Shame on him?Why? It's not his fault that the source got leaked.It is true that when you use a leaked source you assume some responsabilities, but it's not a bad thing if you ask for help.

    Best regards.

    You said it yourself responsibilities, meaning if you're using a leaked source why would someone help you?

    Anyway I'm not gonna continue this conversation because it seems that you have different morals from me.

  4. On 10/6/2016 at 2:25 AM, Masrawy220 said:

    Hi, Devs

    Thx always to respond to my problems
    I encountered a strange problem in the game
    When you move the server to host another
    The problem is when I use anything in inventory see
    Message comes at the chat
    (affect are not loaded!)
    My serverfile depends on the source Marty
    But the source not with me  to know the cause of the problem
    But I was able to locate a problem in
    mysql
    i change completely and after change the mysql fixed
    anyone  can solution please,
    thx

    sorry iam bad in english

     

    If you bought the source directly from marty you can ask him what's going on, but I don't think that's the case because you are probably using the leaked version of his source.

    Shame on you!

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