ellandson 2 Posted November 27, 2017 I would block the use of any item when a npc box is open, this is possible if anyone can help me with this task? Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted November 27, 2017 In pc.c, find pc_isUseitem In this function find: if( !item->script ) //if it has no script, you can't really consume it! return 0; Add below it: // No work when talking to NPC if (sd->npc_id > 0) return 0; Hopefully meko don't see this. He will rage at source edits Quote Share this post Link to post Share on other sites
1 4144 364 Posted November 27, 2017 Try set in conf/map/battle/items.conf item_enabled_npc: false 3 Tsuuu, IndieRO and ellandson reacted to this Quote Share this post Link to post Share on other sites
0 ellandson 2 Posted November 28, 2017 @4144 > it worked out, just as I predicted, thank you! Miríade > My problem was solved without an issue in the source, I did not think it was possible to search for hours on end, I feel more comfortable without changing anything on the source for this problem, but I thank you for the help. Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted November 28, 2017 sorry my bad yes thats better Quote Share this post Link to post Share on other sites
I would block the use of any item when a npc box is open, this is possible if anyone can help me with this task?
Share this post
Link to post
Share on other sites