What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Songcraft Songs and Buffs

cherlot

New Member
Joined
Oct 9, 2014
Messages
73
Reaction score
0
Hey i looked in forum couldnt find any plugin for running songcraft songs on a minimized client. Is it possible to make one and maybe something that can check missing buffs like health lift or so and buff people in party.

Thank you
 
Hey i looked in forum couldnt find any plugin for running songcraft songs on a minimized client. Is it possible to make one and maybe something that can check missing buffs like health lift or so and buff people in party.

Thank you

I can make this. Could you give a more detailed description of what you want? (pm me). I don't play songcraft so I don't really know much about it.
 
In songcraft tree there are 4 skills that is perform action, you cant do anything while playing songs otherwise it interrupts the song action. So basicly we need a that have option to run songs and refresh them every 25 seconds.
 
just a guy that followes you around and plays perfomrance songs, and toss in a heal here and there when things get hairy?


I noticed trying to juggle all 4 songs myself, i was able to toss in a heal and an attack skill, and not loose each song.
 
4 songs are more then enough, 1 of the songs is heal already.
 
Yeah guys, this isn't detailed. I need your skill rotations, "skill x for x seconds, then skill y, then z" etc.

Give me a more detailed description; Help me in helping you.

So far what I understand you want:
The songcraft bot must follow someone.
Check for missing buffs like health lift, and if they're missing, apply them to party members.
 
This is quick and dirty till i figure out how to start and handle new threads without the thing crashing on me.

hit scroll lock to follow your current target, once that target gets in a fight, you will start playing songs, and will refresh them every 15 seconds, till your follow target is out of combat.

in combat it will follow at whatever you define in the variable combat range, and outside of combat it will follow at what you define in followrange

for now it just casts the performance songs, no buffing, no extra healings.



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 DefaultNameSpace{
   public class DefaultClass : Core
   {
       public static string GetPluginAuthor(){return "Remark";}
       public static string GetPluginVersion(){return "0.0.0.1";}
       public static string GetPluginDescription(){return "Performer";}

       private Double followrange= 2.0;
       private Double combatrange= 15.0;
       private Creature leader= null;
       private bool following = false;
       
       
       void keypressed(Keys key, bool isCtrlPressed, bool isShiftPressed, bool isAltPressed)
       { 
           // look here to see what other keys you can use https://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx
           if(key == Keys.Scroll) // change only the scroll part for changing to another key.
           {
              if(me.target != null && following == false)
                {
                    leader    = me.target;
                    Log("Following: " +leader.name);
                    following = true;
                } 
               else
                    {   
                   Log("Stop following: " +  leader.name);
                    leader    = null;
                    following = false;
                    CancelMoveTo();
                    CancelSkill();
                }
            }
       }
        
       //Call on plugin start
       public void PluginRun()
       {       
          ClearLogs();
          onKeyDown +=keypressed; 
          int c=0;
          while (true)
          {
              if (following)
                 if(leader.inFight)
                 {
                     c++;
                     if(c == 1)
                        Cast("[Perform] Quickstep",false); 
                     if(c == 21)
                        Cast("[Perform] Ode To Recovery",false);
                     if(c == 41)
                        Cast("[Perform] Bulwark Ballad",false);
                     if(c == 61)
                        Cast("[Perform] Bloody Chantey",false);
                     if(c ==149)
                        c=0;
                     ComeTo(leader, combatrange); 
                 }
                else
                {
                    c=0;
                    ComeTo(leader, followrange);
                }
                
           Thread.Sleep(100);
          }
       }
 

       public void PluginStop()
       {
           CancelMoveTo();
            CancelSkill();
       }
        public void Cast(string skillName, bool selfTarget = false)
        {

            while (me.isCasting || me.isGlobalCooldown)
            {
                Thread.Sleep(40);
            }   

            if (!UseSkill(skillName, false, selfTarget))
            {
                while (me.isCasting || me.isGlobalCooldown)
                {
                    Thread.Sleep(40);
                }
            }
           // else
                 //Log(": Used -> " +skillName);

        }         
        
   }
}
 
Last edited:
can't compile it
AA Bot\Plugins\Buffs\Buffs.cs(102,9) : error CS1525: Invalid expression term '}'
AA Bot\Plugins\Buffs\Buffs.cs(102,10) : error CS1002: ; expected
 
try now, forgot to remove an else option i had in for testing
 
Back
Top