minx123 2 Posted July 14, 2015 i have problem with disable buff in certain map.. how to fix it? For this Script i want disable item 607 , 608 , custom potion disable skill assumption // -----------------------------//// ------- Free For All --------//// -------- By : Butch ---------//// A simple Free for all script //// -----------------------------//guild_vs5,48,51,6 script FFA Master 999,{if(getmapusers("guild_vs5") != 1) { mes "[^FF0000FFA Master^000000]"; mes "Current players - ^FF0000"+ getmapusers("guild_vs5") +"^000000."; close; } else if(getmapusers("guild_vs5") == 1) { dispbottom "You are a winner of Event Free for all. Congratz!"; donpcevent "Free For All::OnStopEvent"; announce "Free for all winner : "+ strcharinfo(0) +"", bc_all, "0xFFCE00"; getitem 7227,5; // Reward getitem 670,2; // Reward getitem 7720,5; // Reward getitem 673,5; // Reward getitem 30225,5; // Reward warp "invek", 147,164; end; }}// ------ FFA Warper -------// invek,139,172,6 script Free For All 999,{ if (.start != 1) { mes "[^FF0000Agent Mil^000000]"; mes "Free for all is not available at the moment"; close; } mes "[^FF0000Agent Mil^000000]"; mes "What do you want?"; switch(select("Free for all")) { case 1: if( getcharid(1) ) { mes "Please leave your party."; close; } if( getcharid(2) ) { mes "Please leave your guild."; close; } else switch(rand(3)) { case 0: .@x = 18; .@y = 50; break; case 1: .@x = 50; .@y = 77; break; case 2: .@x = 81; .@y = 49; break; case 3: .@x = 49; .@y = 22; break; } warp "guild_vs5", .@x,.@y; break; } close; OnStartEvent: OnClock1245:OnClock1645:OnClock2045:OnClock0045:OnClock0445:OnClock0845: .start = 1; disablenpc "FFA Master"; announce "PVP Free for all will start in 5 minutes.", bc_all, "0x00b89d"; sleep 120000; announce "PVP Free for all will start in 3 minutes.", bc_all, "0x00b89d"; sleep 120000; announce "PVP Free for all will start in 1 minute.", bc_all, "0x00b89d"; sleep 60000; announce "PVP Free for all has started!", bc_all, "0x00b89d"; .start = 2; enablenpc "FFA Master"; sleep 2000; if ( !getmapusers("guild_vs5") ) goto OnStopEvent; mapannounce "guild_vs5", "PVP FFA starts in 5", bc_map; sleep 1000; mapannounce "guild_vs5", "PVP FFA starts in 4", bc_map; sleep 1000; mapannounce "guild_vs5", "PVP FFA starts in 3", bc_map; sleep 1000; mapannounce "guild_vs5", "PVP FFA starts in 2", bc_map; sleep 1000; mapannounce "guild_vs5", "PVP FFA starts in 1", bc_map; sleep 1000; mapannounce "guild_vs5", "GO! Kill all!", bc_map; setmapflag "guild_vs5", mf_gvg; removemapflag "guild_vs5", mf_noskill; end; OnStopEvent: .start = 0; disablenpc "FFA Master"; removemapflag "guild_vs5", mf_gvg; setmapflag "guild_vs5", mf_noskill; end; OnInit: waitingroom "[PVP Free For All]",0; end;}guild_vs5 mapflag partylockguild_vs5 mapflag guildlockguild_vs5 mapflag notradeguild_vs5 mapflag nodropguild_vs5 mapflag nomemoguild_vs5 mapflag nobranchguild_vs5 mapflag nosaveguild_vs5 mapflag noexppenaltyguild_vs5 mapflag pvp Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 18, 2015 (edited) @@minx123 here Path : trunk/db/pre/map_zone_db.conf FIND THIS : { name: "Towns" disabled_skills: { AM_CANNIBALIZE: "PLAYER" AM_SPHEREMINE: "PLAYER" CR_CULTIVATION: "PLAYER" BS_GREED: "PLAYER" SC_MANHOLE: "PLAYER" WM_POEMOFNETHERWORLD: "PLAYER" GN_WALLOFTHORN: "PLAYER" } disabled_items: { Greed_Scroll: true }} ADD THIS LINE BELOW : ,{ name: "Custom" disabled_skills: { HP_ASSUMPTIO: "PLAYER" CASH_ASSUMPTIO: "PLAYER" } disabled_items: { Yggdrasilberry: true Seed_Of_Yggdrasil: true }}) the comma is a separator for the next line, don't remove it Path : trunk/npc/mapflag/zone.txt PUT THIS LINE OF CODES IN THE BOTTOM // Custom Zoneama_test mapflag zone Custom then @warp ama_test then try to use those disabled items and skillsEDIT : by the way, you can use selected items that you disabled but NO EFFECT Edited July 18, 2015 by Zhao Chow 1 minx123 reacted to this Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 14, 2015 You need to configure it in the map_zone_db.conf. Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 15, 2015 (edited) You need to configure it in the map_zone_db.conf. yes i already try but its not work.. here my.. map_zone_db { name: "PVPZONE" disabled_skills: { HP_ASSUMPTIO: "PLAYER" CASH_ASSUMPTIO: "PLAYER" } disabled_items: { Seed_Of_Yggdrasil: true Yggdrasilberry: true Avillion_Potion: true }}, mapflag zone guild_vs5 mapflag zone Edited July 15, 2015 by minx123 Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 15, 2015 You didn't input zone name in mapflag, it should be guild_vs5 mapflag zone PVPZONE Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 15, 2015 You didn't input zone name in mapflag, it should be guild_vs5 mapflag zone PVPZONE same.. nothing happen.. Quote Share this post Link to post Share on other sites
0 xxky 0 Posted July 15, 2015 (edited) You didn't input zone name in mapflag, it should be guild_vs5 mapflag zone PVPZONE same.. nothing happen.. guild_vs5 mapflag PVPZONE try it. not quite sure =) Edited July 15, 2015 by xxky Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 16, 2015 You didn't input zone name in mapflag, it should be guild_vs5 mapflag zone PVPZONE same.. nothing happen.. guild_vs5 mapflag PVPZONE try it. not quite sure =) same not work Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted July 16, 2015 maybe guild_vs5 belong to gvgzone https://github.com/HerculesWS/Hercules/blob/master/npc/mapflag/gvg.txt#L22 Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 17, 2015 maybe guild_vs5 belong to gvgzone https://github.com/HerculesWS/Hercules/blob/master/npc/mapflag/gvg.txt#L22 already disable //guild_vs5 mapflag gvg Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 17, 2015 Do you get any errors in map? Like that it can't read map_zone_db? There's no such zone? Anything that can push us in the right direction? Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 17, 2015 Do you get any errors in map? Like that it can't read map_zone_db? There's no such zone? Anything that can push us in the right direction? unrecognized mapflag PVPZONE Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 17, 2015 It should be guild_vs5<tab>mapflag<tab>zone<tab>PVPZONE Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 18, 2015 It should be guild_vs5<tab>mapflag<tab>zone<tab>PVPZONE yup is <Tab> only have problem if make custom.. if i edit from script already have its work.. Quote Share this post Link to post Share on other sites
i have problem with disable buff in certain map..
how to fix it?
For this Script i want
disable item 607 , 608 , custom potion
disable skill assumption
Share this post
Link to post
Share on other sites