Issue information

Issue ID
#6218
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Jul 12, 2012 12:57
Last Post
Hercules Elf Bot
Jul 15, 2012 11:19
Confirmation
Yes (0)
No (1)

Hercules Elf Bot - Jul 12, 2012 12:57

Originally posted by [b]RCharles[/b]
I created a script which uses setbattleflag into something like this:

[CODE]
setbattleflag "pk_mode",1;
atcommand "@reloadbattleconf";
OnTimer900000:
setbattleflag "pk_mode",0;
atcommand "@reloadbattleconf";
[/CODE]

Mapserver has successfully changed the value from 0 to 1 and 1 to 1.

[quote][color=#282828][font=helvetica, arial, sans-serif][size=3][left][background=rgb(247, 247, 247)][Info]: buildin_setbattleflag: battle_config flag 'pk_mode' is now set to '1'.[/background][/left][/size][/font][/color][/quote]

But then the problem is, pk_mode isn't activated ingame. I wasn't able to kill anyone in fields nor in dungeon.

Hercules Elf Bot - Jul 12, 2012 14:47

Originally posted by [b]Ind[/b]
the pk_mode mapflag is applied on server boot, it needs a check somewhere when changed to loop through all maps and update the flag

Hercules Elf Bot - Jul 12, 2012 18:19

Originally posted by [b]Brynner[/b]
is this same on implementation of @pk commands?

Hercules Elf Bot - Jul 14, 2012 17:17

Originally posted by [b]RCharles[/b]
Brynner, where did you find @pk command?

Ind, i hope this will be fixed soon..

Thanks

Hercules Elf Bot - Jul 14, 2012 22:12

Originally posted by [b]Ind[/b]
the pk_mode config is applied on boot first thing before all the mapflags, the feature wasnt designed to be switched during runtime.

Hercules Elf Bot - Jul 15, 2012 1:22

Originally posted by [b]RCharles[/b]
Yeah i see that was the problem. but I hope there is a way to change pk_mode during runtime.. if not setbattleflag then maybe other would work.

Hercules Elf Bot - Jul 15, 2012 6:35

Originally posted by [b]Brynner[/b]
this is not a bug. this is a misconfiguration of your custom @pk commands. there is no problem regarding on setbattleflag
.

Hercules Elf Bot - Jul 15, 2012 11:19

Originally posted by [b]RCharles[/b]
[quote][color=#282828][font=helvetica, arial, sans-serif][size=3]misconfiguration of your custom @pk commands.[/size][/font][/color][/quote]

hello? are you in a right place?