Nameleszx 0 Posted August 9, 2013 How to stack or limit 2 cards only? For example the Stormy Knight card, i want to limit it for 2 cards only. Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted August 10, 2013 (edited) I think your request require a source mod. try this pc.cinside the pc_insert_card() function int csc;//add this declarationfind // 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[i]) csc++; } if(csc>=2) return 0 Edited January 6, 2014 by Angelmelody 1 Nameleszx reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted August 9, 2013 I don't get this. You mean 2 cards on the entire server, on a singue equipment piece, ...? Quote Share this post Link to post Share on other sites
0 xienne15 5 Posted August 9, 2013 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 Quote Share this post Link to post Share on other sites
0 Lil Troll 2 Posted August 10, 2013 (edited) Hmmm idk if this will do the trick.. Someone correct me if im mistaking. { bonus3 bAutoSpell,"WZ_STORMGUST",(2,20/ isequipped(4318)); bonus2 bAddEff,Eff_Freeze,(2000/isequipped( 4318)); },{},{} Edited August 10, 2013 by coldfire2k Quote Share this post Link to post Share on other sites
0 Nameleszx 0 Posted August 10, 2013 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 Yes like that. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted August 10, 2013 Or manually change every MvP card script to some weird code that involves variable usage and the use of checkequipcardid. I'd honestly prefer Angelmelody answer even if it involves recompilation. Quote Share this post Link to post Share on other sites
0 ryuseikai 0 Posted May 19, 2014 How do I disable stack of multiple other item then? for example thanatos card or raydric card? let say I wan limit only 1 card for raydric because my server got 4 slot robe. Quote Share this post Link to post Share on other sites
0 simplexjay2 2 Posted September 25, 2014 I 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[i]) csc++; } if(csc>=2) return 0 i got error Error 1 error C2065: 'csc' : undeclared identifier c:usersadmindesktoprathenasrcmappc.c 3737 1 map-server_sql Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted September 25, 2014 I 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[i]) csc++; } if(csc>=2) return 0 i got error Error 1 error C2065: 'csc' : undeclared identifier c:usersadmindesktoprathenasrcmappc.c 3737 1 map-server_sql you forgot to declare that variable Quote Share this post Link to post Share on other sites
0 simplexjay2 2 Posted November 17, 2014 (edited) is this correct ? int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc) Edited November 17, 2014 by simplexjay2 Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 18, 2014 is this correct ? int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc) it is already mentioned in Angelmelody 1st post. pc.c inside the pc_insert_card() function int csc;//add this declaration Quote Share this post Link to post Share on other sites
0 butasro 1 Posted January 10, 2016 got error in this // remember the card id to insert nameid = sd->status.inventory[idx_card].nameid; int csc;//add this declaration for(i=0;i<sd->inventory_data[idx_equip]->slot;i++){ if(nameid == sd->status.inventory[idx_equip].card) csc++; } if(csc>=4) return 0; Quote Share this post Link to post Share on other sites
How to stack or limit 2 cards only? For example the Stormy Knight card, i want to limit it for 2 cards only.
Share this post
Link to post
Share on other sites