Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Configuration;
- using System.IO;
- using System.Threading;
- using ff14bot;
- using ff14bot.Helpers;
- using ff14bot.Interfaces;
- using ff14bot.Managers;
- using Newtonsoft.Json;
- namespace FateAutoLeveler
- {
- public class FateAutoLeveler : IBotPlugin
- {
- public string Author { get { return "Zamphire"; } }
- public Version Version { get { return new Version(1, 1); } }
- public string Name { get { return "Fate Auto Leveler"; } }
- public string Description { get { return "Moves your character to appropriate level range."; } }
- public bool WantButton { get { return false; } }
- public string ButtonText { get { return "FateAutoLeveler"; } }
- public bool Equals(IBotPlugin other) { throw new NotImplementedException(); }
- public void OnInitialize() {}
- public void OnShutdown() {}
- public void OnEnabled() {}
- public void OnDisabled() {}
- public void OnButtonPress() {}
- public void OnPulse()
- {
- if (BotManager.Current.Name == "Fate Bot")
- {
- ChangeZone();
- }
- }
- public void ChangeZone()
- {
- uint currentLocation = WorldManager.GetZoneForAetheryteId(GetLocation());
- if (currentLocation == 0 || WorldManager.ZoneId == currentLocation)
- {
- return;
- }
- //TreeRoot.Stop();
- if (Core.Player.IsMounted)
- {
- Actionmanager.Dismount();
- Thread.Sleep(1000);
- }
- WorldManager.TeleportById(GetLocation());
- Thread.Sleep(15000);
- //TreeRoot.Start();
- }
- public uint GetLocation()
- {
- var currentLevel = (int)Core.Player.ClassLevel;
- if (currentLevel < 10) {
- return 52; //Summerford Farms
- } else if (currentLevel >= 10 && currentLevel < 20) {
- return 14; //Aleport
- } else if (currentLevel >= 20 && currentLevel < 28) {
- return 5; //Quarrymill
- } else if (currentLevel >= 28 && currentLevel < 34) {
- return 11; //Costa Del Sol
- } else if (currentLevel >= 34 && currentLevel < 49) {
- return 23; //Camp Dragonhead
- } else if (currentLevel >= 49 && currentLevel < 60) {
- return 22; //Ceruleum Processing Plant
- }
- Logging.Write("Invalid level thats werid");
- return 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement