AinsLord Posted July 1, 2021 Posted July 1, 2021 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 Quote
1 sader1992 Posted July 9, 2021 Posted July 9, 2021 (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 July 9, 2021 by sader1992 1 Quote
0 nasagnilac Posted July 9, 2021 Posted July 9, 2021 try to reproduce a new mapflag if you only want to enable it specific maps. Quote
0 AinsLord Posted July 9, 2021 Author Posted July 9, 2021 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 Quote
0 Litro Endemic Posted July 9, 2021 Posted July 9, 2021 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. 1 Quote
0 AinsLord Posted July 10, 2021 Author Posted July 10, 2021 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 Quote
Question
AinsLord
so i have this script works with GVG/WOE
but it also works on PVP map or turbo room
anyone can help me with this?
thanks in advance
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.