Yes like that.i think he wants the effect to stack up to 2x only. Adding 1 more stormy after 2 cards has been added will not add any effect on the item
for(i=0;i<sd->inventory_data[idx_equip]->slot;i++){ if(nameid == sd->status.inventory[idx_equip].card[i]) csc++; } if(csc>=2) return 0
i got errorI think your request require a source mod.
try this
pc.c
inside the pc_insert_card() function
int csc;//add this declaration
find
// remember the card id to insert nameid = sd->status.inventory[idx_card].nameid;
add after
for(i=0;i<sd->inventory_data[idx_equip]->slot;i++){ if(nameid == sd->status.inventory[idx_equip].card) csc++; } if(csc>=2) return 0
Error 1 error C2065: 'csc' : undeclared identifier c:usersadmindesktoprathenasrcmappc.c 3737 1 map-server_sql
you forgot to declare that variablei got errorI think your request require a source mod.
try this
pc.c
inside the pc_insert_card() function
int csc;//add this declaration
find
// remember the card id to insert nameid = sd->status.inventory[idx_card].nameid;
add after
for(i=0;i<sd->inventory_data[idx_equip]->slot;i++){ if(nameid == sd->status.inventory[idx_equip].card) csc++; } if(csc>=2) return 0
Error 1 error C2065: 'csc' : undeclared identifier c:usersadmindesktoprathenasrcmappc.c 3737 1 map-server_sql
it is already mentioned in Angelmelody 1st post.is this correct ?
int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc)
pc.c
inside the pc_insert_card() function
Code:int csc;//add this declaration
We use essential cookies to make this site work, and optional cookies to enhance your experience.