diff options
author | shennetsind <ind@henn.et> | 2013-05-31 02:04:24 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-31 02:04:24 -0300 |
commit | adc2e6ea9778e34945722f8f7d89e10cd9a4b972 (patch) | |
tree | 0178b50b3ef3bdcdd16d45a56d1c8d250c0eb2ea /src/map/clif.c | |
parent | 68ff83df2e3a161ebf67f9e8b1c64a0eab767f8b (diff) | |
download | hercules-adc2e6ea9778e34945722f8f7d89e10cd9a4b972.tar.gz hercules-adc2e6ea9778e34945722f8f7d89e10cd9a4b972.tar.bz2 hercules-adc2e6ea9778e34945722f8f7d89e10cd9a4b972.tar.xz hercules-adc2e6ea9778e34945722f8f7d89e10cd9a4b972.zip |
Fixed Bug #7272
Special Thanks to bgamez23
http://hercules.ws/board/tracker/issue-7272-secure-npctimeout-bug-for-those-npc-who-have-no-dialog-window/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a0cf7a0c3..375f4a1d0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17079,6 +17079,15 @@ void clif_bgqueue_battlebegins(struct map_session_data *sd, unsigned char arena_ clif->send(&p,sizeof(p), &sd->bl, target); } +void clif_scriptclear(struct map_session_data *sd, int npcid) { + struct packet_script_clear p; + + p.PacketType = script_clearType; + p.NpcID = npcid; + + clif->send(&p,sizeof(p), &sd->bl, SELF); +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -17410,6 +17419,7 @@ void clif_defaults(void) { clif->scriptinputstr = clif_scriptinputstr; clif->cutin = clif_cutin; clif->sendfakenpc = clif_sendfakenpc; + clif->scriptclear = clif_scriptclear; /* client-user-interface-related */ clif->viewpoint = clif_viewpoint; clif->damage = clif_damage; |