Issue information

Issue ID
#7188
Status
Fixed
Severity
Critical
Started
Zopokx
Apr 25, 2013 7:57
Last Post
Ind
Apr 25, 2013 12:53
Confirmation
N/A

Zopokx - Apr 25, 2013 7:57

You can test it with:
[code=:0] prontera,76,328,4 script something 99,{ mes "Hi!"; delitem 512, countitem(512); mes "Did you read this 2nd mes?"; close; } [/code]



If you talk to a NPC that uses delitem script command, if you don't have the item he/she is requiring, everything goes OK.
But when you have it (in this example, an apple) the conversation will end at that point and nothing more in the NPC script will be executed.


[code=auto:0] [Error]: script:delitem: failed to delete 1 items (AID=2000000 item_id=512). [Debug]: Source (NPC): something at prontera (76,328) [/code]

Zopokx - Apr 25, 2013 8:26

News~~

Take a look at this: [url="http://www.diffchecker.com/ahh6j5ia"]http://www.diffchecker.com/ahh6j5ia[/url]

[size=4]If you change script.c to the column of the left, the delitem will work again, but you will receive '[Debug]' messages each time you interacts with an NPC that uses delitem.[/size]
If you just invert the changed values in '[color=rgb(0,0,0)][font=monospace][size=1]buildin_delitem_search'[/size][/font][/color], It will work again without any '[Debug]' annoying messages.

Ind - Apr 25, 2013 12:53

Thank you
[url="https://github.com/HerculesWS/Hercules/commit/47d5b323e868184cea1fdcff5d0c3f2717c83564"]https://github.com/HerculesWS/Hercules/commit/47d5b323e868184cea1fdcff5d0c3f2717c83564[/url]