Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Adding a new item slot

Newbie Spellweaver
Joined
Mar 6, 2017
Messages
75
Reaction score
4
I added new item slot (custom3), but when I switch to it in game, no ammo/empty.

Thoughts?
 
Newbie Spellweaver
Joined
Mar 6, 2017
Messages
75
Reaction score
4
Screenshots, Code, More info? You can't ask for help on something you don't even display.
I found all instances of custom2 and added custom3 every instance.

Here are all instances of custom3:
PHP:
  CSCommon\Source\MMatchServer_Char.cpp(353):        CorrectEquipmentByLevel(pObj, MMCIP_CUSTOM3);  


  
  CSCommon\Source\MMatchItem.cpp(1656):        if ((nParts == MMCIP_CUSTOM1) || (nParts == MMCIP_CUSTOM2) || (nParts == MMCIP_CUSTOM3) || (nParts == MMCIP_CUSTOM4) || (nParts == MMCIP_CUSTOM5)) return true;  


  
  CSCommon\Source\MMatchItem.cpp(1767):    case MMCIP_CUSTOM3:  


  
  CSCommon\Source\MMatchItem.cpp(1800):        || (nParts == MMCIP_CUSTOM3) || (nParts == MMCIP_CUSTOM4)


  
  CSCommon\Source\MMatchItem.cpp(1842):                                                        "¾ÆÀÌÅÛ3",                // MMCIP_CUSTOM3  


  
  CSCommon\Include\MMatchItem.h(80):    MMCIP_CUSTOM3 = 13,  


  
  CSCommon\Source\MMatchObject.cpp(800):    if (NULL != GetCharInfo()->m_EquipedItem.GetItem(MMCIP_CUSTOM3)) return true;  


  
  CSCommon\Include\MMatchObject.h(1080):    unsigned int nCustom3ItemID;  


  
  Gunz\ZCharacter.cpp(2999):        ELSE_IF_SITEM_ENUM(MMCIP_CUSTOM3)  


  
  Gunz\ZCharacter.cpp(3575):        else if (!m_Items.GetItem(MMCIP_CUSTOM3)->IsEmpty())    ChangeWeapon(MMCIP_CUSTOM3);  


  
  Gunz\ZCharacter.cpp(3585):        else if (!m_Items.GetItem(MMCIP_CUSTOM3)->IsEmpty()) ChangeWeapon(MMCIP_CUSTOM3);  


  
  Gunz\ZCharacterItem.cpp(123):    case MMCIP_CUSTOM3:  


  
  Gunz\ZCharacterItem.cpp(135):                ZPostRequestTakeoffItem(ZGetGameClient()->GetPlayerUID(), MMCIP_CUSTOM3);  


  
  Gunz\ZCharacterItem.cpp(224):        (parts == MMCIP_CUSTOM3) ||  


  
  Gunz\ZCharacterItem.cpp(264):        MMCIP_CUSTOM3_V0 = 12,  


  
  Gunz\ZCharacterItem.cpp(288):            case MMCIP_CUSTOM3_V0:        return MMCIP_CUSTOM3;  


  
  Gunz\ZMyCharacter.cpp(2578):            else if ( (nParts==MMCIP_CUSTOM1) || (nParts==MMCIP_CUSTOM2) || (nParts == MMCIP_CUSTOM3) || (nParts == MMCIP_CUSTOM4) || (nParts == MMCIP_CUSTOM5))  


  
  Gunz\ZMyCharacter.h(20):    ZCWT_CUSTOM3,  


  
  Gunz\ZRuleDuelTournament.cpp(652):    MMatchCharItemParts partsToShow[] = { MMCIP_MELEE, MMCIP_PRIMARY, MMCIP_SECONDARY, MMCIP_CUSTOM1, MMCIP_CUSTOM2, MMCIP_CUSTOM3, MMCIP_CUSTOM4, MMCIP_CUSTOM5, MMCIP_LONGBUFF1, MMCIP_LONGBUFF2, MMCIP_END };  


  
  Gunz\ZGame.cpp(2876):    if( sel_type != MMCIP_PRIMARY && sel_type != MMCIP_SECONDARY && sel_type != MMCIP_CUSTOM1 && sel_type != MMCIP_CUSTOM2 && sel_type != MMCIP_CUSTOM3 && sel_type != MMCIP_CUSTOM4 && sel_type != MMCIP_CUSTOM5)  


  
  Gunz\ZGameInterface.cpp(2127):        case MMCIP_CUSTOM3:    strcat(szTemp, "_EquipmentSlot_Custom3");        break;  


  
  Gunz\ZGameInterface.cpp(2237):            case MMCIP_CUSTOM3:        itemSlot->SetText("Custom3");                break;  


  
  Gunz\ZGameInterface.cpp(2272):            case MMCIP_CUSTOM3:        itemSlot->SetText("Custom3");                break;  


  
  Gunz\ZGameInterface.cpp(3894):                if ( (nPart == MMCIP_CUSTOM1) || (nPart == MMCIP_CUSTOM2) || (nPart == MMCIP_CUSTOM3) || (nPart == MMCIP_CUSTOM4) || (nPart == MMCIP_CUSTOM5)) {  


  
  Gunz\ZGameInterface.cpp(3918):                if ( (nPart == MMCIP_CUSTOM1) || (nPart == MMCIP_CUSTOM2) || (nPart == MMCIP_CUSTOM3) || (nPart == MMCIP_CUSTOM4) || (nPart == MMCIP_CUSTOM5)) {  


  
  Gunz\ZGameInterface.cpp(3940):        case ZCWT_CUSTOM3:    nParts = (int)(MMCIP_CUSTOM3);    break;  


  
  Gunz\ZGameInterface.cpp(3947):        if ( (nParts == MMCIP_CUSTOM1) || (nParts == MMCIP_CUSTOM2) || (nParts == MMCIP_CUSTOM3) || (nParts == MMCIP_CUSTOM4) || (nParts == MMCIP_CUSTOM5))  


  
  Gunz\ZShopEquipInterface.cpp(146):        else if (ZGetMyInfo()->GetItemList()->GetEquipedItemID(MMCIP_CUSTOM3) == 0)


  
  Gunz\ZShopEquipInterface.cpp(148):            parts = MMCIP_CUSTOM3;


  
  Gunz\ZShopEquipInterface.cpp(311):        if ( (nParts == MMCIP_CUSTOM1) || (nParts == MMCIP_CUSTOM2) || (nParts == MMCIP_CUSTOM3) || (nParts == MMCIP_CUSTOM4) || (nParts == MMCIP_CUSTOM5))  


  
  Gunz\ZCharacterSelectView.cpp(435):                    m_CharInfo[nSelectIndex].m_CharInfo.nEquipedItemDesc[MMCIP_CUSTOM3],  


  
  Gunz\ZCharacterSelectView.cpp(508):    nItemID[MMCIP_CUSTOM3] = g_InitialCostume[index][sex].nCustom3ItemID;  


  
  Gunz\ZCharacterSelectView.cpp(551):        MMatchItemDesc* pDesc = MGetMatchItemDescMgr()->GetItemDesc(nItemID[MMCIP_CUSTOM3]);


  
  Gunz\ZCharacterView.cpp(33):                                    unsigned long int nCustom2ItemID, unsigned long int nCustom3ItemID, unsigned long int nCustom4ItemID, unsigned long int nCustom5ItemID)  


  
  Gunz\ZCharacterView.cpp(319):        , nEquipItemIDs[MMCIP_SECONDARY], nEquipItemIDs[MMCIP_CUSTOM1], nEquipItemIDs[MMCIP_CUSTOM2], nEquipItemIDs[MMCIP_CUSTOM3], nEquipItemIDs[MMCIP_CUSTOM4], nEquipItemIDs[MMCIP_CUSTOM5]);  


  
  Gunz\ZCharacterView.cpp(386):            itemids[MMCIP_CUSTOM3], itemids[MMCIP_CUSTOM4], 


  
  Gunz\ZCharacterView.cpp(412):    pil->GetEquipedItemID(MMCIP_CUSTOM3), pil->GetEquipedItemID(MMCIP_CUSTOM4),


  
  Gunz\ZCharacterView.h(87):                                    unsigned long int nCustom2ItemID, unsigned long int nCustom3ItemID, unsigned long int nCustom4ItemID, unsigned long int nCustom5ItemID);  


  
  Gunz\ZCharacterViewList.cpp(322):        pil->GetEquipedItemID(MMCIP_CUSTOM3), pil->GetEquipedItemID(MMCIP_CUSTOM4),


  
  Gunz\ZIDLResource.cpp(182):    else if (!stricmp(szParts, "custom3"))        pWidget->SetParts(MMCIP_CUSTOM3);  


  
  Gunz\ZItemSlotView.cpp(55):    case MMCIP_CUSTOM3:            SetText("< Item 3 >");             break;  


  
  Gunz\ZItemSlotView.cpp(176):        case MMCIP_CUSTOM3:

Screen shot of the problem:

Cj9EGv1 - Adding a new item slot - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Aug 31, 2020
Messages
36
Reaction score
3
[h=2]Adding a new item slot[/h]i need someone to help me this new item slow 3 complete code share me it?
 
Upvote 0
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
That's simple, you just have to follow the same CUSTOM slot example in the code, then go to xml to move towards the database.
 
Upvote 0
Back
Top