summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-02-24 06:25:33 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-02-24 06:25:33 +0800
commitadda8d74c3280ae1e3745591caafd9ce6e81ded7 (patch)
tree92bed0c62e31f392098c529184f78848dc9d6d05 /src/map/pc.c
parent6c6fbf026f039eeeaab4d1e6dd14155067b8075e (diff)
downloadhercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.gz
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.bz2
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.xz
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.zip
Fixed Bug #7091
-Updated SN_SIGHT to its RE behavior. -Updated RE behavior that deals with NPC dialogs and using items/skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6078283e7..7eae16193 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4232,6 +4232,14 @@ int pc_useitem(struct map_session_data *sd,int n)
nullpo_ret(sd);
+ //This flag enables you to use items while in an NPC. [Skotlex]
+ if( sd->npc_id && sd->npc_id != sd->npc_item_flag ){
+#ifdef RENEWAL
+ clif_msg(sd, 0x783); // TODO look for the client date that has this message.
+#endif
+ return 0;
+ }
+
if( sd->status.inventory[n].nameid <= 0 || sd->status.inventory[n].amount <= 0 )
return 0;