Issue information

Issue ID
#7386
Status
Working as Intended
Severity
None
Started
Samuel
Jun 16, 2013 19:55
Last Post
Ind
Jun 19, 2013 13:39
Confirmation
N/A

Samuel - Jun 16, 2013 19:55

[quote]
*getmapflag("<map name>",<flag>)

This command checks the status of a given mapflag and returns the
mapflag's state.
0 means OFF, and 1 means ON. See 'setmapflag' for a list of mapflags.[/quote]

Hello everyone, so I'm having a problem with this script command,

I have tried using a dummy npc to test how this really work
[quote]
prontera,157,174,4 script testing 909,{
mes ""+getmapflag(""+strcharinfo(3)+"",pvp)+"";
close;
}

pvp_y_1-1,160,258,4 duplicate(testing) testing#1 909[/quote]

That NPC will show a number which indicates if the mapflag is on/off.

I have tried using it in prontera, it gives me 0 which means off, but when I used the command @pvpon it still gives me 0 which is off.

I have tried using it in a pvp may, it gives me 1 which means on but when I used the command @pvpoff it still gives me 1 which is on.

I have tried looking the mapflags that currently set in the map by using the @mapflag command and when I used the @pvpon command, it shows that pvp mapflag is currently on but it gives me a 0 which is off in prontera while using @pvpoff in a pvpmap and @mapflag shows that pvp is not already on in the map but gives me a 1 for the getmapflag command.

Is this really how it works? Or I'm the one mistaken? Thank you.

Ind - Jun 19, 2013 13:39

you're using the wrong flag, its mf_pvp not pvp, I checked and it works with the new flag