Skip to content

npc/custom/card_remover.txt is bugged. #2469

@Mojacko

Description

@Mojacko

Describe the bug
If you manage to get to the part of code

if(.@failchance < 10) {
	next;
	failedremovecards .@part,3;
	mes "[Card Remover]";
	mes "I have failed to remove the cards. Luckily, however, both the item and the cards are still okay.";
	close;
}

While it won't break any item or card. it would read the current equipment as "no card" while there is still a card inside it. so you won't be able to remove the card permanently. what's worse is that you CAN ADD 1 MORE CARD. making it 2 Slot ...

Screenshots
img

To Reproduce
Steps to reproduce the behavior:

  1. Enable the npc
  2. just remove item until you get that message it fail but no item were destroy
  3. try adding cards or even try again talking to the npc and she will say that it doesnt have any card in it.
  4. See error

Expected behavior
It should leave the failed attempt as normal items with compounded card.

System specs (please complete the following information):

  • OS: centos 6
  • Hercules Version [Release v2019.05.05+3]
  • Mode: [pre-renewal?]
  • Packet version: 2018-04-18bRagexeRE
  • Client type: RE

Plugins used or source modifications
If you are using any plugins besides the ones that come bundled with Hercules,
please enumerate them here.

Additional context
There is no warning/error message when this happens

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:core:scriptengineAffecting the script engine or the script commandscomponent:scriptsAffecting the scripts and NPCsseverity:5-criticalCrashes, security issues and exploitsstatus:confirmedIssue is valid and can be reproducedtype:bugIssue is a bug or describes an incorrect behavior that should be fixed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions