diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-15 09:10:56 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-15 09:10:56 +0000 |
commit | 54a5692881cda4d8479efd89f5e91b66b422e485 (patch) | |
tree | cb345d1589435dc2b63fa36dd903ea1190e53e7d /src/map/pc.c | |
parent | d4abb0c1814bc34503717c6b96a2a3a734f74969 (diff) | |
download | hercules-54a5692881cda4d8479efd89f5e91b66b422e485.tar.gz hercules-54a5692881cda4d8479efd89f5e91b66b422e485.tar.bz2 hercules-54a5692881cda4d8479efd89f5e91b66b422e485.tar.xz hercules-54a5692881cda4d8479efd89f5e91b66b422e485.zip |
* Supplied fake NPC ID in sd->npc_id for item scripts.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6590 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index ad3d758c3..42baf4f8e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2704,6 +2704,7 @@ int pc_useitem(struct map_session_data *sd,int n) }
sd->canuseitem_tick= tick + battle_config.item_use_interval; //Update item use time.
+ sd->npc_id = fake_npc_id;
run_script(script,0,sd->bl.id,fake_npc_id);
potion_flag = 0;
return 1;
|