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]
Question
Syouji
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
[size=5][b]restricted.txt[/b][/size] [b](There is a tab b/w restricted and 8)[/b]
lum_pvp1 mapflag restricted 8
[/code]
[size=5][b]PvP Script[/b][/size] [b](Only the mapflag parts)[/b]
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 ArcencielLink to comment
Share on other sites
9 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.