diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-16 14:44:27 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-16 14:44:27 +0000 |
commit | d4e1028f77e7b03023901c16f6329414a8a3c24c (patch) | |
tree | 3774fe0e35508141be8b8c1cf5d2bee5940c1d9b /src/map/clif.c | |
parent | 8ff8d0f9ee285452ba7820c3fb333eddb042272b (diff) | |
download | hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.gz hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.bz2 hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.xz hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.zip |
- Implemented Intravision as it should be. Thanks to HelloKitty2 for the captured packets.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9659 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 077bc4139..a7988b0f1 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -278,59 +278,6 @@ int clif_send_sub(struct block_list *bl, va_list ap) } else { if (packet_db[sd->packet_ver][RBUFW(buf,0)].len) { // packet must exist for the client version memcpy(WFIFOP(fd,0), buf, len); - //Check if hidden, better to modify the char's buffer than the - //given buffer to prevent intravision affecting the packet as - //it's being received by everyone. [Skotlex] - /* New implementation... not quite correct yet as the client no longer - * displays correctly the SI_INTRAVISION effect. - if ((sd->special_state.intravision || sd->sc.data[SC_INTRAVISION].timer != -1 ) - && bl != src_bl && WFIFOW(fd,0) == 0x0196) - { //New intravision method, just modify the status change/start packet. [Skotlex] - switch (WFIFOW(fd,2)) { - case SI_HIDING: - case SI_CLOAKING: - case SI_CHASEWALK: - WFIFOW(fd,2) = SI_INTRAVISION; - } - } - */ - - // Previous implementation. - if ((sd->special_state.intravision || sd->sc.data[SC_INTRAVISION].timer != -1 ) && bl != src_bl) { - - struct status_change *sc = status_get_sc(src_bl); - if(sc && (sc->option&(OPTION_HIDE|OPTION_CLOAK))) - { //option‚ÌC³ - switch(((unsigned short*)buf)[0]) - { -#if PACKETVER > 6 - case 0x229: - WFIFOL(fd,10) &= ~(OPTION_HIDE|OPTION_CLOAK); - break; - case 0x22a: - case 0x22b: - case 0x22c: - WFIFOL(fd,12) &=~(OPTION_HIDE|OPTION_CLOAK); - break; -#endif -#if PACKETVER > 3 - case 0x119: - WFIFOW(fd,10) &= ~(OPTION_HIDE|OPTION_CLOAK); - break; - case 0x1d8: - case 0x1d9: - case 0x1da: -#endif - case 0x78: - case 0x79: - case 0x7a: - case 0x7b: - case 0x7c: - WFIFOW(fd,12) &=~(OPTION_HIDE|OPTION_CLOAK); - break; - } - } - } WFIFOSET(fd,len); } } |