viewing paste Unknown #6145 | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
Index: src/map/clif.c
===================================================================
--- src/map/clif.c  (revision 17356)
+++ src/map/clif.c  (working copy)
@@ -14471,9 +14471,12 @@
 /// 0288 <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W }.4B*count (PACKETVER >= 20100803)
 void clif_parse_cashshop_buy(int fd, struct map_session_data *sd){
    int fail = 0;
+   struct s_packet_db* info;
+
    nullpo_retv(sd);
 
-   struct s_packet_db* info = &packet_db[sd->packet_ver][RFIFOW(fd,0)];
+   info = &packet_db[sd->packet_ver][RFIFOW(fd,0)];
+
    if( sd->state.trading || !sd->npc_shopid )
        fail = 1;
    else {
Index: src/map/atcommand.c
===================================================================
--- src/map/atcommand.c (revision 17356)
+++ src/map/atcommand.c (working copy)
@@ -7618,6 +7618,7 @@
    if (!message || !*message || (sscanf(message, "%99s %hd", flag_name, &flag) < 1)) {
        clif_displaymessage(sd->fd,msg_txt(sd,1311)); // Enabled Mapflags in this map:
        clif_displaymessage(sd->fd,"----------------------------------");
+       checkflag(town);
        checkflag(autotrade);           checkflag(allowks);             checkflag(nomemo);      checkflag(noteleport);
        checkflag(noreturn);            checkflag(monster_noteleport);  checkflag(nosave);      checkflag(nobranch);
        checkflag(noexppenalty);        checkflag(pvp);                 checkflag(pvp_noparty); checkflag(pvp_noguild);
@@ -7637,6 +7638,7 @@
    }
    for (i = 0; flag_name[i]; i++) flag_name[i] = (char)tolower(flag_name[i]); //lowercase
 
+   setflag(town);
    setflag(autotrade);         setflag(allowks);           setflag(nomemo);            setflag(noteleport);
    setflag(noreturn);          setflag(monster_noteleport);setflag(nosave);            setflag(nobranch);
    setflag(noexppenalty);      setflag(pvp);               setflag(pvp_noparty);       setflag(pvp_noguild);
Index: db/packet_db.txt
===================================================================
--- db/packet_db.txt    (revision 17356)
+++ db/packet_db.txt    (working copy)
@@ -1612,7 +1612,7 @@
 
 //2010-11-24aRagexeRE
 packet_ver: 26
-0x0288,-1,cashshopbuy,4:8
+0x0288,-1,cashshopbuy,2:4:8:10
 0x0436,19,wanttoconnection,2:6:10:14:18
 0x035f,5,walktoxy,2
 0x0360,6,ticksend,2
@@ -1707,7 +1707,7 @@
 0x089C,26,friendslistadd,2
 0x0885,5,hommenu,2:4
 0x0961,36,storagepassword,0
-0x0288,-1,cashshopbuy,4:8
+0x0288,-1,cashshopbuy,2:4:8:10
 0x091C,26,partyinvite2,2
 0x094B,19,wanttoconnection,2:6:10:14:18
 0x0369,7,actionrequest,2:6
@@ -1816,7 +1816,7 @@
 0x0447,2,booking_playcancel,0
 0x044A,6,clientversion,2
 0x0844,2,cashshopopen,0
-0x0848,-1,cashshopbuy,0
+0x0848,-1,cashshopbuy,2:4:6:10
 0x084a,2,cashshopclose,0
 0x084b,19 //fallitem4
 0x085a,90,useskilltoposinfo,2:4:6:8:10
 
Viewed 1152 times, submitted by lighta.