Показать сообщение отдельно
Старый 28.12.2015, 04:02   #1
Dudinha
Постоялец
Аватар для Dudinha
OFFLINE
Регистрация: 17.11.2015
Сообщений: 100
Благодарностей:
2 всего
Репутация: 7

Сценарий падения


Функционал archebuddy

Кредиты веб-сайт DERP программиста мне было легко найти, потому что из ниже язык является eScript.
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 
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"9FSystem.Drawing.FontStyle.RegularSystem.Drawing.GraphicsUnit.Point, ((byte)(0)));
                
this.AboutMelinkLabel.Location    = new System.Drawing.Point(585);
                
this.AboutMelinkLabel.Name        "AboutMelinkLabel";
                
this.AboutMelinkLabel.Size        = new System.Drawing.Size(22530);
                
this.AboutMelinkLabel.MaximumSize = new Size(22530);
                
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"14FSystem.Drawing.FontStyle.RegularSystem.Drawing.GraphicsUnit.Point, ((byte)(0)));
                
this.DropItButton.Location = new System.Drawing.Point(5212);
                
this.DropItButton.Name "DropItButton";
                
this.DropItButton.Size = new System.Drawing.Size(12473);
                
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(6F13F);
                
Form1.AutoScaleMode       System.Windows.Forms.AutoScaleMode.Font;
                
Form1.BackColor           System.Drawing.SystemColors.ActiveCaption;
                
Form1.AutoSize            true;
                
Form1.ClientSize          = new System.Drawing.Size(231111);
                
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<
BuffBuffList 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 senderEventArgs e)
        {
           if (
HasTradePack())
           {
               
Log("Dropping Trade Pack...");
               
UseSkill("Drop Trade Pack");
           }
        }
       
//Call on plugin stop
       
public void PluginStop()
       {
       }
   }

: 01_64:
 
Ответить с цитированием
Сказали спасибо:
Chev Chelios (21.03.2018)