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

AutoPotion Plugin (Request)

pruemporal

New Member
Joined
Oct 28, 2014
Messages
1
Reaction score
0
AutoPotion Plugin Suggestions

Hello all im new here , used many scripts and created some and now i need some AutoPotion script.
Someone made a AutoPotion script? or some one can help me make one and i can share with all? I dont find properly methods to do it.
Thx for help and sorry for me english ^^


Edit1: After some fight with ArcheBuddy API i did a very basic AutoPotion, some suggestions for make it better? thx.

Code:
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 "Pruemporal";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "A basic autoPotion";
       }

       //Call on plugin start
       public void PluginRun()
       {       
           while(true){  
               
               if(mpp() < 50){        // '50' > the % u want to use mp potion.
               
                   UseItem(8515,0,0,0,true);     // 8515  the id  of potion/food u can find archeage database
    
           
           }   
               if(hpp() < 80){          // '50' > the % u want to use hp potion.
                    
                   UseItem(8515,0,0,0,true);      //Same for hp
               
               }
       }  
   } 
   
       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
 
Last edited:
The mana and hp potion have the same id? How AB can differentitate the hp and mp if they have the same ID?
 
Back
Top