Skip to content

Warning when using setmapflag for zone #2347

@SombraRO

Description

@SombraRO

Describe the bug

When using the setmapflag command for zone that has the mapflag adjust_skill_damage, Warning occurs when using the reloadscript command

Script:

setmapflag("pvp_n_1-1", mf_zone, "MyZone");

Zone:

{
	name: "MyZone"
	
	mapflags: ("adjust_skill_damage	MG_FIREBOLT	200")
}

The effect is applied correctly, however when using reloadscript this problem occurs.

Expected behavior

The correct one would not occur Warning when using reloadscript because setmapflag was run without errors

Screenshots
Error using @reloadscript
test

System specs (please complete the following information):

  • OS: [windows 10]
  • Hercules Version [v2018.12.16 ]
  • Mode: [renewal and pre-renewal]
  • Packet version: [20181017]
  • Client type: [main]

Plugins used or source modifications
None

Additional context
None

Metadata

Metadata

Labels

component:coreAffecting the Hercules core (i.e. not the game mechanics directly)component:core:scriptengineAffecting the script engine or the script commandsstatus:confirmedIssue is valid and can be reproduced

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions