Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
!-->
  • 0

ENABLE_FIX_QUICK_SLOT


Fakis

Question

looking for working fix, rn i have sth like this and its not working

void CInputMain::QuickslotAdd(LPCHARACTER ch, const char * data)
{
    struct command_quickslot_add * pinfo = (struct command_quickslot_add *) data;
#ifdef ENABLE_FIX_QUICK_SLOT   
    if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
    {
        LPITEM item = NULL;
        
        TItemPos srcCell(INVENTORY, pinfo->slot.pos);
        
        if (!(item = ch->GetItem(srcCell)))
            return;
        
        if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
            return;
    }
#endif
    
    ch->SetQuickslot(pinfo->pos, pinfo->slot);
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

!-->
  • 0
  • Bronze
17 hours ago, Fakis said:

 i have

Remove #define ENABLE_FIX_QUICK_SLOT   from service.h

 

change 

#ifdef ENABLE_FIX_QUICK_SLOT   
    if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
    {
        LPITEM item = NULL;
        
        TItemPos srcCell(INVENTORY, pinfo->slot.pos);
        
        if (!(item = ch->GetItem(srcCell)))
            return;
        
        if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
            return;
    }
#endif

 

with:

 

#ifndef ENABLE_FIX_QUICK_SLOT   
    if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
    {
        LPITEM item = NULL;
        
        TItemPos srcCell(INVENTORY, pinfo->slot.pos);
        
        if (!(item = ch->GetItem(srcCell)))
            return;
        
        if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
            return;
    }
#endif

 

  • Not Good 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 0

      Need Help With Char_Item.cpp

    2. 0

      ULTERIUS2.COM

    3. 7

      Killua - Unholy God Set

    4. 2

      Visual studio 2022 compiling issue

    5. 991

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.