AinsLord Posted May 18, 2021 Posted May 18, 2021 im trying to disable all healing items on certain may specially for LMS here is the mapflag used on script so i add the restricted "2" for pvp on this particular map - script Event_LMS -1,{ OnInit: // Mapflags setarray .@mapflag, mf_nowarp, mf_nowarpto, mf_noskill, mf_noteleport, mf_nomemo, mf_nosave, mf_pvp_noguild, mf_pvp_noparty, mf_noicewall, mf_nobranch, mf_restricted, 2, //- added mf_noreturn; this is may item_noequip.txt 501,64 // Red Potion 502,64 // Orange Potion 503,64 // Yellow Potion 504,64 // White Potion 507,64 // Red Herb 508,64 // Yellow Herb 509,64 // White Herb i made it 64 so it only reads the zone 2 so with this mf_restricted, 2, on script above it wont work but if i put the map here restricted.txt //Jail sec_pri mapflag restricted 2 06guild_01 mapflag restricted 2 the restricted mapflag works why is that isnt the "mf_restricted, 2," works the same or they dont? or i did wrong on mf_restricted, 2, thanks in advance Quote
0 Emistry Posted August 31, 2021 Posted August 31, 2021 On 5/18/2021 at 9:49 PM, AinsLord said: so with this mf_restricted, 2, on script above it wont work your Event_LMS script only assign mapflag, doesn't support assigning extra parameter for mapflag. Hence it wont work with the way you doing it. setmapflag "sec_pri", MF_RESTRICTED, 2; setmapflag "06guild_01", MF_RESTRICTED, 2; or sec_pri mapflag restricted 2 06guild_01 mapflag restricted 2 these would work. Quote
0 Chaos92 Posted May 18, 2021 Posted May 18, 2021 2 hours ago, AinsLord said: im trying to disable all healing items on certain may specially for LMS here is the mapflag used on script so i add the restricted "2" for pvp on this particular map - script Event_LMS -1,{ OnInit: // Mapflags setarray .@mapflag, mf_nowarp, mf_nowarpto, mf_noskill, mf_noteleport, mf_nomemo, mf_nosave, mf_pvp_noguild, mf_pvp_noparty, mf_noicewall, mf_nobranch, mf_restricted, 2, //- added mf_noreturn; this is may item_noequip.txt 501,64 // Red Potion 502,64 // Orange Potion 503,64 // Yellow Potion 504,64 // White Potion 507,64 // Red Herb 508,64 // Yellow Herb 509,64 // White Herb i made it 64 so it only reads the zone 2 so with this mf_restricted, 2, on script above it wont work but if i put the map here restricted.txt //Jail sec_pri mapflag restricted 2 06guild_01 mapflag restricted 2 the restricted mapflag works why is that isnt the "mf_restricted, 2," works the same or they dont? or i did wrong on mf_restricted, 2, thanks in advance Have u tried remove your mapflag restricted in your script ? its already added in restricted.txt right ? Quote
0 AinsLord Posted May 18, 2021 Author Posted May 18, 2021 2 hours ago, Chaos92 said: Have u tried remove your mapflag restricted in your script ? its already added in restricted.txt right ? yes i removed the mf_restricted on the script it works and put it on restricted.txt but when i tried to commend the one on the restricted.txt and try the one on the script doesnt work Quote
0 Chaos92 Posted May 19, 2021 Posted May 19, 2021 13 hours ago, AinsLord said: yes i removed the mf_restricted on the script it works and put it on restricted.txt but when i tried to commend the one on the restricted.txt and try the one on the script doesnt work because of that setarray in your script. its reading between coma ',' for each mapflag. For sure it cant read your mf_restricted, 2, Quote
0 LearningRO Posted May 20, 2021 Posted May 20, 2021 why not use this script command setpcblock PCBLOCK_USEITEM, true; and the end event setpcblock PCBLOCK_USEITEM, false; Quote
Question
AinsLord
im trying to disable all healing items on certain may specially for LMS
here is the mapflag used on script so i add the restricted "2" for pvp on this particular map
this is may item_noequip.txt
i made it 64 so it only reads the zone 2
so with this mf_restricted, 2, on script above it wont work
but if i put the map here
restricted.txt
the restricted mapflag works
why is that isnt the "mf_restricted, 2," works the same or they dont?
or i did wrong on mf_restricted, 2,
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.