From adda8d74c3280ae1e3745591caafd9ce6e81ded7 Mon Sep 17 00:00:00 2001 From: malufett Date: Sun, 24 Feb 2013 06:25:33 +0800 Subject: 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 --- src/map/pc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/pc.c') 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; -- cgit v1.2.3-70-g09d2