ScripterQQ 89 Posted March 21, 2017 Share Posted March 21, 2017 As title says, I don't know much about C language (or what is supposed to be), what string should I modify to include Alterac Valley to blacklisted bg? I get massreported everytime because the bot keep ressing in front of the zerg zone, giving free points to the opposite faction (with multiboxer, premades..), so yea I don't want this battleground anymore, just like SoTa and IoC. Here is where to modifiy, I think: if (cId == (int) ContinentId.NorthrendBG || cId == (int) ContinentId.IsleofConquest) // NorthrendBG = StrandoftheAncients { Lua.LuaDoString("LeaveBattlefield()"); Thread.Sleep(150); } Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/ Share on other sites More sharing options...
ScripterQQ 89 Posted March 21, 2017 Author Share Posted March 21, 2017 Fixed if (cId == (int) ContinentId.NorthrendBG || cId == (int) ContinentId.IsleofConquest || cId == (int) ContinentId.PVPZone01) // NorthrendBG = StrandoftheAncients Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/#findComment-25038 Share on other sites More sharing options...
ScripterQQ 89 Posted March 22, 2017 Author Share Posted March 22, 2017 Ok now I really need your help, is it possible to add a timer? I mean: "if time (clock) is past 10 am and before 1 am > then> leave alterac valley" Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/#findComment-25059 Share on other sites More sharing options...
iMod 99 Posted March 22, 2017 Share Posted March 22, 2017 2 hours ago, scripterx said: Ok now I really need your help, is it possible to add a timer? I mean: "if time (clock) is past 10 am and before 1 am > then> leave alterac valley" Not tested: if (DateTime.Now.Hour > 10 || DateTime.Now.Hour < 13) { // Leave } Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/#findComment-25063 Share on other sites More sharing options...
ScripterQQ 89 Posted March 22, 2017 Author Share Posted March 22, 2017 I will test it asap, thanks, appreciated!By the way I asked for 1 am, isn't "13" = 1 PM? Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/#findComment-25065 Share on other sites More sharing options...
ScripterQQ 89 Posted April 29, 2017 Author Share Posted April 29, 2017 I just had a better idea: is it possible to create (or implement in leave sota-ioc.cs) a function that automatically leaves alterac valley when our resources are 200 less than other team? (means they already killed the mini boss+they are farming us, multiboxer, premades..and so on) Link to comment https://wrobot.eu/forums/topic/5449-adding-alterac-valley-to-ignored-battleground-leavebgcs/#findComment-26351 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now