Jump to content
  • 0

Custom card (4 slot) and item_noequip check


FireFace93

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

Hello everyone, can you help me?

1) I add custom card, which player can insert in 4th slot of headgear.

2) I add this custom card in item_noequip.txt (format: <item id>,<mode>) for example 4 - WoE

But this don't work, and player can equip item with this custom card on WoE.

I think, that there are no checks about card in 4th slot in SRC, can anyone can help me ?

I'm not asking from you ready-made solutions, but rather point more of where to do the fix!

Thx!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

i find this

 

pc.c

in static int pc_isAllowedCardOn(struct map_session_data *sd,int s,int eqindex,int flag)

        ///* scan for enchant armor gems */
    if( item->card[MAX_SLOTS - 1] && s < MAX_SLOTS - 1 )
        s = MAX_SLOTS - 1;

 

but simple enhant rune in my armor i can equip (item_noeqip allready setted)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...