Block use item

ellandson

New member
Messages
27
Points
0
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?

 
In pc.c, find pc_isUseitem
In this function find:

Code:
    if( !item->script ) //if it has no script, you can't really consume it!
        return 0;
Add below it:

Code:
    // 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 :D

 
@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.





 
Back
Top