Jump to content

  •  

simplexjay2

Member Since 07 Jun 2013
Offline Last Active Jun 01 2017 09:51 AM
-----

Posts I've Made

In Topic: How to stack or limit 2 cards only

17 November 2014 - 07:32 PM

is this correct ? 

int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip, int csc)


In Topic: How to stack or limit 2 cards only

25 September 2014 - 04:44 AM

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

In Topic: [Support] The Castle City of Invek

19 November 2013 - 11:45 AM

+10 good work and thank u