Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 partial class Form1 : Form
- {
- }
- public class DefaultClass : Core
- {
- public static string GetPluginAuthor()
- {
- return "Derp Programmer";
- }
- public static string GetPluginVersion()
- {
- return "1.0.0.0";
- }
- public static string GetPluginDescription()
- {
- return "Place trade packs anywhere!";
- }
- private System.Windows.Forms.Form Form1;
- private System.Windows.Forms.Button DropItButton;
- private System.Windows.Forms.LinkLabel AboutMelinkLabel;
- //Call on plugin start
- public void PluginRun()
- {
- ClearLogs();
- DropTradePack();
- }
- private void DropTradePack()
- {
- try
- {
- this.DropItButton = new System.Windows.Forms.Button();
- this.AboutMelinkLabel = new System.Windows.Forms.LinkLabel();
- //
- // AboutMelinkLabel
- //
- this.AboutMelinkLabel.AutoSize = true;
- this.AboutMelinkLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.AboutMelinkLabel.Location = new System.Drawing.Point(5, 85);
- this.AboutMelinkLabel.Name = "AboutMelinkLabel";
- this.AboutMelinkLabel.Size = new System.Drawing.Size(225, 30);
- this.AboutMelinkLabel.MaximumSize = new Size(225, 30);
- this.AboutMelinkLabel.AutoSize = true;
- this.AboutMelinkLabel.TabIndex = 9;
- this.AboutMelinkLabel.TabStop = true;
- this.AboutMelinkLabel.Text = "https://www.thebuddyforum.com/members/335286-derpprogrammer.html";
- //
- // DropItButton
- //
- this.DropItButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.DropItButton.Location = new System.Drawing.Point(52, 12);
- this.DropItButton.Name = "DropItButton";
- this.DropItButton.Size = new System.Drawing.Size(124, 73);
- this.DropItButton.TabIndex = 0;
- this.DropItButton.Text = "Drop Trade Pack";
- this.DropItButton.UseVisualStyleBackColor = true;
- this.DropItButton.Click += new System.EventHandler(this.DropItButton_Click);
- //
- // Form1
- //
- Form1 = new Form{};
- Form1.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- Form1.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- Form1.BackColor = System.Drawing.SystemColors.ActiveCaption;
- Form1.AutoSize = true;
- Form1.ClientSize = new System.Drawing.Size(231, 111);
- Form1.Controls.Add(this.DropItButton);
- Form1.Controls.Add(this.AboutMelinkLabel);
- Form1.Name = "Form1";
- Form1.Text = "Drop it like it's hot!";
- Form1.TopMost = true;
- Form1.ShowDialog();
- }
- catch (Exception e)
- {
- Log("Something went wrong!!!: "+e.Message);
- }
- }// End of method
- public bool HasTradePack()
- {
- List<Buff> BuffList = me.getBuffs();
- foreach (Buff debuff in BuffList){
- if (debuff.id==(1454)){
- return true;
- }
- }
- Log("You don't have a Trade Pack equipped!");
- return false;
- }
- private void DropItButton_Click(object sender, EventArgs e)
- {
- if (HasTradePack())
- {
- Log("Dropping Trade Pack...");
- UseSkill("Drop Trade Pack");
- }
- }
- //Call on plugin stop
- public void PluginStop()
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment