Jump to content
  • 0

Enchant Card 3/4 º Slot


fckng

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

 

 

I tried to apply this change and i have the errors, would anyone know how to fix them?

 

pc.cpp: In function bool pc_authok(map_session_data*, uint32, time_t, int, mmo_charstatus*, bool)’:
pc.cpp:1403:18: error: inventory was not declared in this scope
  sd->inventory = inventory.
                  ^~~~~~~~~
pc.cpp: In function int pc_insert_card(map_session_data*, int, int)’:
pc.cpp:4523:20: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_equip].nameid <= 0 || sd->status.inventory[idx_equip].amount < 1 )
                    ^~~~~~~~~
pc.cpp:4523:67: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_equip].nameid <= 0 || sd->status.inventory[idx_equip].amount < 1 )
                                                                   ^~~~~~~~~
pc.cpp:4525:20: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_card].nameid <= 0 || sd->status.inventory[idx_card].amount < 1 )
                    ^~~~~~~~~
pc.cpp:4525:66: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_card].nameid <= 0 || sd->status.inventory[idx_card].amount < 1 )
                                                                  ^~~~~~~~~
pc.cpp:4531:20: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_equip].identify == 0 )
                    ^~~~~~~~~
In file included from pc.hpp:16:0,
                 from pc.cpp:4:
pc.cpp:4533:37: error: struct mmo_charstatus has no member named inventory
     if( itemdb_isspecial(sd->status.inventory[idx_equip].card[0]) )
                                     ^
itemdb.hpp:31:30: note: in definition of macro itemdb_isspecial
 #define itemdb_isspecial(i) (i == CARD0_FORGE || i == CARD0_CREATE || i == CARD0_PET)
                              ^
pc.cpp:4533:37: error: struct mmo_charstatus has no member named inventory
     if( itemdb_isspecial(sd->status.inventory[idx_equip].card[0]) )
                                     ^
itemdb.hpp:31:50: note: in definition of macro itemdb_isspecial
 #define itemdb_isspecial(i) (i == CARD0_FORGE || i == CARD0_CREATE || i == CARD0_PET)
                                                  ^
pc.cpp:4533:37: error: struct mmo_charstatus has no member named inventory
     if( itemdb_isspecial(sd->status.inventory[idx_equip].card[0]) )
                                     ^
itemdb.hpp:31:71: note: in definition of macro itemdb_isspecial
 efine itemdb_isspecial(i) (i == CARD0_FORGE || i == CARD0_CREATE || i == CARD0_PET)
                                                                     ^
pc.cpp:4539:34: error: struct mmo_charstatus has no member named inventory
     if( itemdb_isrune(sd->status.inventory[idx_card].nameid) && sd->inventory_data[idx_equip]->slot > 3 )
                                  ^
itemdb.hpp:32:27: note: in definition of macro itemdb_isrune
 #define itemdb_isrune(i) (i >= 4700 && i <= 4999) // Cambiar si Gravity agrega items que no sean del Sistema de Hidden Enchant en las ID's que estan disponibles (O si usas cartas custom en esas ID's) (by S0M4_B3LM0NT & Celsius)
                           ^
pc.cpp:4539:34: error: struct mmo_charstatus has no member named inventory
     if( itemdb_isrune(sd->status.inventory[idx_card].nameid) && sd->inventory_data[idx_equip]->slot > 3 )
                                  ^
itemdb.hpp:32:40: note: in definition of macro itemdb_isrune
 #define itemdb_isrune(i) (i >= 4700 && i <= 4999) // Cambiar si Gravity agrega items que no sean del Sistema de Hidden Enchant en las ID's que estan disponibles (O si usas cartas custom en esas ID's) (by S0M4_B3LM0NT & Celsius)
                                        ^
pc.cpp:4544:20: error: struct mmo_charstatus has no member named inventory
     if( sd->status.inventory[idx_equip].equip != 0 )
                    ^~~~~~~~~
pc.cpp:4548:25: error: struct mmo_charstatus has no member named inventory
     nameid = sd->status.inventory[idx_card].nameid;
                         ^~~~~~~~~
In file included from ../common/mmo.hpp:12:0,
                 from pc.hpp:9,
                 from pc.cpp:4:
pc.cpp:4550:69: error: struct mmo_charstatus has no member named inventory
     ARR_FIND( 0, sd->inventory_data[idx_equip]->slot, i, sd->status.inventory[idx_equip].card[i] == 0 );
                                                                     ^
../common/db.hpp:947:8: note: in definition of macro ARR_FIND
    if( __cmp ) \
        ^~~~~
pc.cpp:4564:57: error: struct mmo_charstatus has no member named inventory
         log_pick_pc(sd, LOG_TYPE_OTHER, -1, &sd->status.inventory[idx_equip]);
                                                         ^~~~~~~~~
pc.cpp:4565:20: error: struct mmo_charstatus has no member named inventory
         sd->status.inventory[idx_equip].card[i] = nameid;
                    ^~~~~~~~~
pc.cpp:4566:56: error: struct mmo_charstatus has no member named inventory
         log_pick_pc(sd, LOG_TYPE_OTHER, 1, &sd->status.inventory[idx_equip]);

I want to click on the enchantment 2 times and have it equip in the third or fourth slot of any equipment

 

4700,S_Strength1,Fighter STR+1,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,1; },{},{}

Imagem

Edited by fckng
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...