Показать сообщение отдельно
Старый 11.07.2015, 16:22  
Ferum
Подпольщик WoT
Аватар для Ferum
OFFLINE
Регистрация: 04.04.2009
Сообщений: 374
Благодарностей:
1,330 всего
Мнения: + 1087
Репутация: 3991

Цитата:
Сообщение от cosonic9999 Посмотреть сообщение
а можеш поиск мобов прописать ?

под евро скилы, но думаю труда не составит под руоф прописать! тут перевод скилов

и мне постов накинут?

PHP код:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
 
namespace 
Follower
{
    public class 
LazyRaider Core
    
{
        public static 
string GetPluginAuthor()
        {
            return 
"Ferum";
        }
 
        public static 
string GetPluginVersion()
        {
            return 
"0.1.0";
        }
 
        public static 
string GetPluginDescription()
        {
            return 
"LazyRaider for the DarkRunner Class";
        }
        public 
void UseSkillAndWait(string skillNamebool selfTarget false)
        {
            
//wait for cooldowns to finish first, before we try to cast skill
            
while (me.isCasting || me.isGlobalCooldown)
                
Thread.Sleep(50);
            if (!
UseSkill(skillNametrueselfTarget))
            {
                if (
me.target != null && GetLastError() == LastError.NoLineOfSight)
                {
                    
//No line of sight, try come to target.
                    
if (dist(me.target) <= 5)
                        
ComeTo(me.target2);
                    else if (
dist(me.target) <= 10)
                        
ComeTo(me.target3);
                    else if (
dist(me.target) < 20)
                        
ComeTo(me.target8);
                    else
                        
ComeTo(me.target8);
                }
            }
            
//wait for cooldown again, after we start cast skill
            
while (me.isCasting || me.isGlobalCooldown)
                
Thread.Sleep(50);
        }
 
        public 
void PluginRun()
        {
            while (
true)
            {
                while (
me.target == null)
                
// while we have no target, this loop will make the bot do nothing, and he will check back every 50ms, to see if we have a target
                
{
                    
Thread.Sleep(50);
                }
 
                while (
me.target != null && isAttackable(me.target))
                
// once we have a target, and this target is attackable (so its no NPC) the bot will jump into this loop.
                // this loops contains the "combat routine"
                
{
                    if (
angle(me.targetme) > 45 && angle(me.targetme) < 315)
                    
// making sure we are faceing the target. If not, we will turn towards it
                    
{
                        
TurnDirectly(me.target);
                    }
 
                    
//  if(mpp(me) <=25)
                    //   {
                    // UseSkill("Play Instrument", true, true);
                    //  Thread.Sleep(5000);
                    //}
 
                    
if (dist(me.target) >= 12 || skillCooldown("Toxic Shot") != 0)
                    {
                        
ComeTo(me.target12);
                    }
                    if (
skillCooldown("Conversion Shield") == 0)
                    {
                        
UseSkillAndWait("Conversion Shield");
                        
Log("Used: Conversion Shield");
                    }
                    if (
skillCooldown("Toxic Shot") == 0)
                    {
                        
UseSkillAndWait("Toxic Shot");
                        
Log("Used: Toxic Shot");
                        if (
skillCooldown("Stalker's Mark") == 0)
                        {
                            
UseSkillAndWait("Stalker's Mark");
                            
Log("Used: Stalker's Mark");
                            if (
skillCooldown("Overwhelm") != 0)
                            {
                                
UseSkillAndWait("Overwhelm");
                                
Log("Used: Overwhelm");
                            }
                        }
                    }
                    if (
skillCooldown("Charge") == 0)
                    {
                        
UseSkillAndWait("Charge");
                        
Log("Used: Charge");
                    }
                    if (
skillCooldown("Stalker's Mark") == 0)
                    {
                        
UseSkillAndWait("Stalker's Mark");
                        
Log("Used: Stalker's Mark");
                        if (
skillCooldown("Overwhelm") != 0)
                        {
                            
UseSkillAndWait("Overwhelm");
                            
Log("Used: Overwhelm");
                        }
                    }
                    if (
skillCooldown("Thwart") == 0)
                    {
                        if (
dist(me.target) >= 5)
                        {
                            
ComeTo(me.target5);
                            
UseSkillAndWait("Thwart");
                            
Log("Used: Thwart");
                            if (
skillCooldown("Whirlwind Slash") == && dist(me.target) <= 5)
                            {
                                
UseSkillAndWait("Whirlwind Slash");
                                
Log("Used: Whirlwind Slash");
                            }
                        }
                        
UseSkillAndWait("Thwart");
                        
Log("Used: Thwart");
                        if (
skillCooldown("Whirlwind Slash") == && dist(me.target) <= 5)
                        {
                            
UseSkillAndWait("Whirlwind Slash");
                            
Log("Used: Whirlwind Slash");
                        }
                    }
                    if (
skillCooldown("Wallop") == 0)
                    {
                        
UseSkillAndWait("Wallop");
                        
Log("Used: Wallop");
                    }
                    if (
skillCooldown("Triple Slash") == 0)
                    {
                        for (
int i 02i++)
                            
UseSkillAndWait("Triple Slash");
                        
Log("Used: Triple Slash");
                    }
                    while (
me.target != null && !isAlive(me.target) && me.target.dropAvailable && isAlive())
                    
// we check if we have a target, then check if this target is NOT alive. Then we look if its lootable  and finaly whether we are alive or not.
                    // if all this is true, we will move towards the target and get our loot.
                    
{
                        if (
me.dist(me.target) > 3)
                            
ComeTo(me.target1);
                        
PickupAllDrop(me.target);
                    }
 
                    
// once we looted the target, and made sure its dead we will clear our target.
                    
if (me.target != null && !isAlive(me.target) && !me.target.dropAvailable)
                    {
                        
CancelTarget();
                    }
                }
            }
        }
    }


Последний раз редактировалось Ferum; 11.07.2015 в 16:43.

Помог? Жми СПАСИБО. Тебе не сложно, мне приятно!
 
Ответить с цитированием