Jump to content
  • 0

Restricting Pots in a PvP Map


Syouji

Question


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Hello everyone. I've been having this weird issue where if I restrict a set of items in the db/item_noequip.txt file and add the mapflag mapname[tab]restricted[tab]8 in the conf/mapflag/restricted.txt file, it won't take effect in the actual map itself. The map is PvP Enabled and here is what I have configured:

Note: If I dont use the setmapflag command in oninit and instead use the mapflag function after the script the mapflag function won't work. Setmapflag seems to work for everything else BUT the restricted 8.

item_noequip.txt


601,8 //Fly Wing - not really needed here but ...
602,8 //Butterfly Wing - also not needed
12212,8 //Giant Fly Wing
17284,3 // Refined Fly Wing
17285,3 // Refined Butterfly Wing
14582,8
14583,8
14584,8
14585,8
501,8 // Red Potion
502,8 // Orange Potion
503,8 // Yellow Potion
504,8 // White Potion
507,8 // Red Herb
508,8 // Yellow Herb
509,8 // White Herb
512,8 // Apple
513,8 // Banana
515,8 // Carrot
516,8 // Sweet Potato
517,8 // Meat
518,8 // Honey
519,8 // Milk
520,8 // Hinalle Leaflet
521,8 // Aloe Leaflet
522,8 // Mastela Fruit
526,8 // Royal Jelly
528,8 // Monster Food
529,8 // Candy
530,8 // Candy Cane
531,8 // Apple Juice
532,8 // Banana Juice
534,8 // Carrot Juice
535,8 // Pumpkin
536,8 // Ice Cream
537,8 // Pet Food
538,8 // Well Baked Cookie
539,8 // Piece of Cake
540,8 // Falcon Food
541,8 // Peco Peco Food
544,8 // Fish Slice
545,8 // Red Slim Potion
546,8 // Yellowe Slim Potion
547,8 // White Slim Potion
549,8 // Yam
550,8 // Rice Cake
551,8 // Sushi
552,8 // Ketupat
553,8 // Bao
554,8 // Mochi
555,8 // Traditional Rice Cake
556,8 // Rice Cake Stick
557,8 // Neatly Sliced Rice Cake
558,8 // Chocolate
559,8 // Hand-Made Chocolate
560,8 // Hand-made White Chocolate
561,8 // White Chocolate
562,8 // Doublecrust Swiss Fondue
563,8 // Doublecrust Swiss Fondue
564,8 // Rice Ball
565,8 // Vita 500
566,8 // Tom Yum Goong
567,8 // Shrimp
569,8 // Novice Potion
570,8 // Lucky Candy
571,8 // Lucky Candy Cane
572,8 // Lucky Cookie
573,8 // Chocolate Drink
574,8 // Egg
575,8 // 2nd Anniversary Cake
576,8 // Prickly Fruit
577,8 // Bag of Grain
579,8 // Fresh Fish
580,8 // Bread
581,8 // Edible Mushroom
582,8 // Orange
583,8 // Ketupat
584,8 // Fish Ball Soup
585,8 // Brusti
586,8 // Mother's Cake
587,8 // Red Thorn Fruit
588,8 // Spaghetti
589,8 // Pizza
590,8 // Brezel
591,8 // Caviar Pancake
592,8 // Strawberry Jam Pancake
593,8 // Honey Pancake
594,8 // Sour Cream Pancake
595,8 // Mushroom Pancake
597,8 // Lovely Choco Tart
598,8 // Light Red Potion
599,8 // Light Orange Potion
11500,8 // Light Yellow Potion
11501,8 // Light White Potion
11503,8 // Siege White Potion
11701,8 // Girl Bunch of Flowers
11703,8 // Mystery Blood
11704,8 // Ketupat
12021,8 // Pork
12022,8 // Galbi
// -> percentheal x,x
607,8 // Yggdrasil Berry
608,8 // Yggdrasil Seed
663,8 // Korean Rice Cake
685,8 // Ramadan
12027,8 // Giggling Box
12135,8 // Green Ale
12188,8 // Fantastic Moon Snack
12192,8 // Pumpkin Pie
12196,8 // Hearty Rice Cake
12197,8 // Salty Rice Cake
12233,8 // Kvass
12234,8 // Fierce Cacao 99%
12236,8 // Chocolate Tart
12237,8 // Dollop of Chocolate
12245,8 // Green Ale
12257,8 // Cold Medicine
12271,8 // Military Rations
12274,8 // Gold Pill 1
12704,8 // Elixir of Life
12709,8 // Guyak Candy
14522,8 // Big Bun
14524,8 // Superb Fish Slice
[/codeBOX]

[size=5][b]restricted.txt[/b][/size] [b](There is a tab b/w restricted and 8)[/b]

[code]
lum_pvp1 mapflag restricted 8
[/code]

[size=5][b]PvP Script[/b][/size] [b](Only the mapflag parts)[/b]

[codeBOX]
OnInit:
setcell "guild_vs2", 46, 46, 46, 46, cell_walkable, 0;
setcell "guild_vs2", 46, 46, 46, 46, cell_shootable, 0;

setmapflag "lum_pvp1",mf_restricted, 8;
setmapflag "coliseum4",mf_restricted, 8;
setmapflag "guild_vs2",mf_nobranch;
setmapflag "lum_pvp1",mf_nobranch;
setmapflag "coliseum4",mf_nobranch;

setmapflag "coliseum4",mf_pvp_noguild;
setmapflag "guild_vs2",mf_pvp_noguild;
setmapflag "lum_pvp1",mf_pvp_noguild;

setmapflag "coliseum4",mf_nomemo;
setmapflag "guild_vs2",mf_nomemo;
setmapflag "lum_pvp1",mf_nomemo;

setmapflag "coliseum4",mf_noteleport;
setmapflag "guild_vs2",mf_noteleport;
setmapflag "lum_pvp1",mf_noteleport;

setmapflag "coliseum4",mf_nosave;
setmapflag "guild_vs2",mf_nosave;
setmapflag "lum_pvp1",mf_nosave;

setmapflag "coliseum4",mf_nowarp;
setmapflag "guild_vs2",mf_nowarp;
setmapflag "lum_pvp1",mf_nowarp;

setmapflag "coliseum4",mf_noreturn;
setmapflag "guild_vs2",mf_noreturn;
setmapflag "lum_pvp1",mf_noreturn;

setmapflag "coliseum4",mf_nowarpto;
setmapflag "guild_vs2",mf_nowarpto;
setmapflag "lum_pvp1",mf_nowarpto;
setmapflag "coliseum4",mf_nopenalty;
setmapflag "guild_vs2",mf_nopenalty;
setmapflag "lum_pvp1",mf_nopenalty;

setmapflag "coliseum4",mf_nocommand;
setmapflag "guild_vs2",mf_nocommand;
setmapflag "lum_pvp1",mf_nocommand;
end;
} //End of the entire PvP Script
[/codeBOX]

- Bump -

Anyone have an idea of what could be wrong? If you require additional info please let me know and I'll provide it for you.

- bump -

Edited by Arcenciel
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Instead of setting it in a script why not just set it via the mapflag folder?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Thanks for the response Arcenciel. I have set the mapflags in the mapflag folder as you can see above under the 'restricted.txt' file however it doesnt work.

Edited by Syouji
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

lum_pvp1 mapflag restricted 8

???

// The equipment/items/cards restriction file
// here you define which items may not be used at PvP / GvG
// format: <item id>,<mode>
// mode
// 1- restricted in PVP
// 2- restricted in GVG
// 3- restricted in both PvP and GvG
// Restricted zones - they're configured by 'restricted <number>' mapflag
// 4   - restricted in zone 1
// 8   - restricted in zone 2
// 16  - restricted in zone 3
// 32  - restricted in zone 4
// 64 -  restricted in zone 5
// 128 - restricted in zone 6
// 256 - restricted in zone 7
//Examples:
//1201,1 you can't use KNIFE(ID 1201) on PvP and GvG
//608,3 you can't use Yggdrasil Seed(ID 608) on both PvP & GvG & WoE Castles
//4174,3 Forbid Deviling Card in every PVP or GVG map, and during woes.
//501,4 you can't use Red Potion on map marked as 'restricted zone 1'
//502,8 you can't use Orange Potion on map marked as 'restricted zone 2'
//503,16 you can't use Yellow Potion on map marked as 'restricted zone 3'
// you can even mix modes
//519,41 (32+8+1) you can't use Milk on PVP, and maps marked as 'restricted zone 2' and 'restricted zone 4'

lum_pvp1 mapflag restricted 2

<-- I THINK THIS SHOULD WORK

coz ur item is restricted at zone 2, so base on my assumption, set this at ur mapflag should working.

Edited by GenGen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

I assigned my own restricted number to each item as '8'. So I'm confused to why it would be 2?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

base on my assumption on the db and restriction,

you assign your item ---> "8"

8   - restricted in zone 2

so thats mean in your map,

lum_pvp1 mapflag restricted 2 // 2 represent ZONE

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Oh! I'll try that out then later on tonight.Currently at work haha. =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

yeah. my assumption was right. I tested it already /no1

have fun.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Oh sweet. Thanks for confirmation. Thank you!!!!!! /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

you're welcome /no1

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