Jump to content
  • 0
AinsLord

item bonus that only works on GVG/WOE

Question

so i have this script works with GVG/WOE

function	script	UpperWoe1	{
if ( getmapflag( strcharinfo(3), mf_gvg || getmapflag( strcharinfo(3), mf_gvg_castle || getmapflag( strcharinfo(3), mf_gvg_dungeon ) ) ) )
{ bonus bMaxHPrate,15; bonus2 bMagicAddRace,RC_Player,5; bonus2 bAddRace,RC_Player,10; bonus2 bSubRace,RC_Player,7;  } 
}

but it also works on PVP map or turbo room

anyone can help me with this?

thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1
Posted (edited)

The code syntax that you provided is wrong

getmapflag("<map name>",<flag>) || getmapflag("<map name>",<flag>) || getmapflag("<map name>",<flag>)

not

getmapflag("<map name>",<flag> || getmapflag("<map name>",<flag> || getmapflag("<map name>",<flag>)))

 

Edited by sader1992
  • Upvote 1
Link to comment
Share on other sites

  • 0
9 hours ago, nasagnilac said:

try to reproduce a new mapflag if you only want to enable it specific maps.

i just wanted like gvg/woe/koe maps

as you can see the mapflags are gvg/gvgdungeon/gvgcastle

but it works on PVP

kindly elaborate what you mean reproduce new MF is it custom mapflag or what?

thanks for replying

Link to comment
Share on other sites

  • 0
1 hour ago, AinsLord said:

i just wanted like gvg/woe/koe maps

as you can see the mapflags are gvg/gvgdungeon/gvgcastle

but it works on PVP

kindly elaborate what you mean reproduce new MF is it custom mapflag or what?

thanks for replying

isn't it you can just follow the example you give above, if you want it to work on gvg use mf_gvg, as for woe can use mf_gvg_castle for specific, or compare map name with g_cas like in woe controller script and for koe you need custom mapflag like mf_koe as condition and same other too, I can said this is strange question.

  • Like 1
Link to comment
Share on other sites

  • 0
20 hours ago, sader1992 said:

The code syntax that you provided is wrong

getmapflag("<map name>",<flag>) || getmapflag("<map name>",<flag>) || getmapflag("<map name>",<flag>)

not

getmapflag("<map name>",<flag> || getmapflag("<map name>",<flag> || getmapflag("<map name>",<flag>)))

 

thanks a lot ❤️❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.