Jump to content
  • 0

item bonus that only works on GVG/WOE


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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...