What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

бард

cosonic9999

New Member
Joined
Jan 19, 2015
Messages
15
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;

namespace Bard
{
public class BardClass : Core
{
////////////////////////////////////////////////////////
//////// EDITABLES
////////////////////////////////////////////////////////
bool doBarding = true; // Rotate barding skills.
bool doLoot = false; // Run and loot corpses.
bool diceLoot = true; // Dice mode selection. It will roll if true and won't if false.
bool doLogs = true; // Logging for debug purposes.
bool followleader = true; // follow the party leader
private Double _followRange = 1.0; // follow range
////////////////////////////////////////////////////////
//////// DO NOT EDIT
////////////////////////////////////////////////////////
Random randomRollTime = new Random();
private Creature _leader = null;
private Creature _me = null;

////////////////////////////////////////////////////////
//////// BARD SKILL ROTATION
////////////////////////////////////////////////////////
public void BardSkillRotation()
{
if (hpp(_leader) <= 40)


{
SetTarget(_leader);
UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);
UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);UseSkillAndWait("Непрерывное исцеление");

Log("Used: Непрерывное исцеление");
Thread.Sleep(100);
}
if (me.hpp <=50)
{

UseSkillAndWait("Исцеляющий хор");
Log("Used: Исцеляющий хор");
Thread.Sleep(100);
}
if (doBarding == true)
{
if (skillCooldown("Имитация смерти") == 0 && me.hpp <= 25)
// Использует имитацию смерти, если ХП упало ниже 25%.
{

UseSkillAndWait("Имитация смерти");
Log("Used: Имитация смерти - That was close...");
CancelTarget();
Thread.Sleep(6000);
}
if (hpp(_me) <50)
{
UseSkillAndWait("Исцеляющий хор");
Log("Used: Исцеляющий хор");
Thread.Sleep(100);
}
CheckBuffCastBuff("Гимн земли II", "Гимн земли");
CheckBuffCastBuff("Рапсодия битвы I", "Рапсодия битвы");
CheckBuffCastBuff("Песнь исцеления III", "Песнь исцеления");
CheckBuffCastBuff("Походный марш V", "Походный марш");
}
}
////////////////////////////////////////////////////////
//////// MAINLOOP
////////////////////////////////////////////////////////
public void PluginRun()
{

ClearLogs();
DebugLog("Script started");
BlockClientDice(true);
_leader = getPartyLeaderObj();
if(_leader == null || _leader == me)
{
DebugLog("There is no party leader to setup.");
}
while(true)
{
if (me.isAlive())
{

BardSkillRotation();
LootAround();
RollDice();
moveToPlayer(_leader);
}
Thread.Sleep (500);
}
}
////////////////////////////////////////////////////////
//////// Debug
////////////////////////////////////////////////////////
public void DebugLog(string Logger_string)
{
if (doLogs == true)
{
Log(Time() + Logger_string);
}
}
////////////////////////////////////////////////////////
//////// GetTime
////////////////////////////////////////////////////////
public string Time() //- Get Time
{
string A = DateTime.Now.ToString("[hh:mm:ss] ");
return A;
}
////////////////////////////////////////////////////////
//////// Move to
////////////////////////////////////////////////////////
public void moveToPlayer(Creature obj)
{
if (followleader == true)
{
ComeTo(obj, _followRange);
}
}
////////////////////////////////////////////////////////
//////// CheckBuffCastBuff
////////////////////////////////////////////////////////
public void CheckBuffCastBuff(string Buffname, string Buffspell)
{

if (buffTime(Buffname) == 0)
{


UseSkillAndWait(Buffspell);
Thread.Sleep (500);
}
}
////////////////////////////////////////////////////////
//////// Loot
////////////////////////////////////////////////////////
public void LootAround()
{
if (doLoot == true)
{
foreach (var corps in getCreatures())
{
if (corps.dropAvailable && me.dist(corps) <= 20)
{
if (me.dist(corps) <= 2)
{
PickupAllDrop(corps);
}
else
{
ComeTo(corps, 2);
PickupAllDrop(corps);
}
}
Thread.Sleep(100);
}
}
}
////////////////////////////////////////////////////////
//////// RollDice
////////////////////////////////////////////////////////
public void RollDice()
{
if (diceLoot == true)
{
foreach (var item in me.getDiceItems())
{
item.Dice(true);
Thread.Sleep(randomRollTime.Next(1000, 2500));
DebugLog("Rolling on item: " + item.name);
}
}
else
{
foreach (var item in me.getDiceItems())
{
item.Dice(false);
Thread.Sleep(randomRollTime.Next(1000, 2500));
DebugLog("Decline on item: " + item.name);
}
}
}
////////////////////////////////////////////////////////
//////// UseSkill
////////////////////////////////////////////////////////
public void UseSkillAndWait(string skillName, bool selfTarget = false)
{
while (me.isCasting || me.isGlobalCooldown)
{
Thread.Sleep(50);
}
if (!UseSkill(skillName, false, selfTarget))
{
while (me.isCasting || me.isGlobalCooldown)
{
Thread.Sleep(50);
}
}
else
DebugLog(": Used ->" +skillName);
}
////////////////////////////////////////////////////////
//////// Info
////////////////////////////////////////////////////////
public void PluginStop()
{
DebugLog("Thank you for using Personal Bard.");
}
public static string GetPluginAuthor()
{
return "CAMOTbIK";
}
public static string GetPluginVersion()
{
return "0.0.0.2 Alpha";
}
public static string GetPluginDescription()
{
return "Personal Bard";
}
}
}

ПОЧЕМУ НЕ РАБОТАЮТ ИСЦЕЛЯЮЩИЙЦ ХОР И ИМИТАЦИЯ СМЕРТИ????
 
Back
Top