diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-18 11:40:36 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-18 11:40:36 +0000 |
commit | a899340d9059d43fd850d161136582998e8bc07e (patch) | |
tree | 16614b89f4e156153de58761e6bf0bcb0beaae15 /src/map/clif.c | |
parent | ff21eb94130750acfe899b97b06a1fbe9e6790ef (diff) | |
download | hercules-a899340d9059d43fd850d161136582998e8bc07e.tar.gz hercules-a899340d9059d43fd850d161136582998e8bc07e.tar.bz2 hercules-a899340d9059d43fd850d161136582998e8bc07e.tar.xz hercules-a899340d9059d43fd850d161136582998e8bc07e.zip |
* Shinomori's method (kinda) of remote script execution with interaction.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6151 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 506e31e76..c0f79c8e6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1705,9 +1705,6 @@ int clif_scriptclose(struct map_session_data *sd, int npcid) { WFIFOW(fd,0)=0xb6;
WFIFOL(fd,2)=npcid;
WFIFOSET(fd,packet_len_table[0xb6]);
-
- if(map_id2bl(npcid)->m < 0)
- clif_clearchar_id(npcid, 0, fd);
return 0;
}
@@ -1718,11 +1715,12 @@ int clif_scriptclose(struct map_session_data *sd, int npcid) { */
void clif_sendfakenpc(struct map_session_data *sd, int npcid) {
int fd = sd->fd;
+ sd->npc_id = npcid;
+ sd->state.using_fake_npc = 1;
memset(WFIFOP(fd,0), 0, packet_len_table[0x78]);
WFIFOW(fd,0)=0x78;
WFIFOL(fd,2)=npcid;
- WFIFOW(fd,12)=OPTION_HIDE;
- WFIFOW(fd,14)=123;
+ WFIFOW(fd,14)=111;
WFIFOPOS(fd,46,sd->bl.x,sd->bl.y);
WFIFOB(fd,49)=5;
WFIFOB(fd,50)=5;
@@ -1741,9 +1739,6 @@ int clif_scriptmenu(struct map_session_data *sd, int npcid, char *mes) { nullpo_retr(0, sd);
- if(map_id2bl(npcid)->m < 0)
- clif_sendfakenpc(sd, npcid);
-
fd=sd->fd;
WFIFOW(fd,0)=0xb7;
WFIFOW(fd,2)=slen;
@@ -1763,9 +1758,6 @@ int clif_scriptinput(struct map_session_data *sd, int npcid) { nullpo_retr(0, sd);
- if(map_id2bl(npcid)->m < 0)
- clif_sendfakenpc(sd, npcid);
-
fd=sd->fd;
WFIFOHEAD(fd, packet_len_table[0x142]);
WFIFOW(fd,0)=0x142;
@@ -1783,9 +1775,6 @@ int clif_scriptinputstr(struct map_session_data *sd, int npcid) { int fd;
nullpo_retr(0, sd);
-
- if(map_id2bl(npcid)->m < 0)
- clif_sendfakenpc(sd, npcid);
fd=sd->fd;
WFIFOHEAD(fd, packet_len_table[0x1d4]);
|