Fakis 3 Posted November 17, 2021 Share Posted November 17, 2021 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 More sharing options...
Active Member Draveniou1 721 Posted November 17, 2021 Active Member Share Posted November 17, 2021 Don't have #define ENABLE_FIX_QUICK_SLOT in service.h? you can see? First: check service.h for #define ENABLE_FIX_QUICK_SLOT Link to comment Share on other sites More sharing options...
Fakis 3 Posted November 19, 2021 Author Share Posted November 19, 2021 On 11/17/2021 at 3:41 PM, Draveniou1 said: Don't have #define ENABLE_FIX_QUICK_SLOT in service.h? you can see? First: check service.h for #define ENABLE_FIX_QUICK_SLOT i have Link to comment Share on other sites More sharing options...
Sobolanescu 6 Posted November 19, 2021 Share Posted November 19, 2021 #include "../common/service.h" Link to comment Share on other sites More sharing options...
Active Member Draveniou1 721 Posted November 20, 2021 Active Member Share Posted November 20, 2021 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now