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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Celebration Package,which Increases Experience and Reputation gains from kills by 8%

crustina

Member
Joined
Nov 8, 2012
Messages
122
Hey there,

I was wondering if anyone here could write a small plugin

just for the item "Celebration Package" ID=71134,10 sec cooldown!

It can be used to get a buff "WoW's 8th Anniversary" ID=100981,which Increases Experience and Reputation gains from kills by 8% for 1 hour,but gone when you die.

I'd really appreciate it if someone can make a plugin that'd use this item whenever the buff isn't your character.
 
yes i would also like this, i tried the 7th anniversary plugin but it didnt work.. :P couldnt even find the plugin
 
ok!
I modify a code from
I wrote this in 5 minutes, hope it works for you.

Let me know, thanks.

*updated it to check for buff, should no longer reuse itself every 15 minutes*
which in the thread
Crystal of Insanity PLUGIN - Increases all stats by 500 for 1 hour.

Fortunately,it works well for me now.:o

Here it is,if some guys want it too.

Code:
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using System.Windows.Media;
using System;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using System.IO;
using System.Xml.Linq;
using Styx.Plugins;
using Styx;
using Styx.CommonBot;
using Styx.Common.Helpers;
using Styx.CommonBot.POI;
using Styx.CommonBot.Profiles;
using Styx.CommonBot.Database;
using Styx.Common;
using Styx.CommonBot.Frames;
using System.Collections.Generic;
using System.Diagnostics;

namespace COIhelper
{
    public partial class COIhelper : HBPlugin
    {
        public override string Name { get { return "Celebration Package"; } }
        public override string Author { get { return "modulated by crustina "; } }
        public override Version Version { get { return new Version(001); } }
        public override bool WantButton { get { return true; } }
        public override string ButtonText { get { return "no config"; } }

        public bool coiBuff()
        {
            if (Me.HasAura("WoW's 8th Anniversary")) { return true; }
            return false;
        }

        public static void slog(string format, params object[] args)
        { Logging.Write("[COI]:" + format, args); }
        private static LocalPlayer Me { get { return StyxWoW.Me; } }

        public override void Initialize() 
        {
            Logging.Write(Colors.Lime, "Celebration Package .001");
        }

        public override void Pulse()
        {
            CelebrationPackage();
        }

        public bool CelebrationPackage()
        {
            WoWItem coiB = Me.BagItems.FirstOrDefault(h => h.Entry == 71134);
            if ((coiB != null) && (coiB.CooldownTimeLeft.TotalMilliseconds <= 0) && !Me.Mounted && !coiBuff())
            {
                coiB.Use();
                Logging.Write(Colors.Lime, "Use Celebration Package");
            }
        return false;
        }
    }
}

copy the code above into the notepad save as COIHelper.cs
 
Last edited:
Compiler Error: c:\HB\Plugins\COI\COIHelper.cs(31,56) : error CS1502: The best overloaded method match for 'System.Version.Version(string)' has some invalid arguments
Compiler Error: c:\HB\Plugins\COI\COIHelper.cs(31,68) : error CS1503: Argument 1: cannot convert from 'int' to 'string'

Im getting this error
 
Compiler Error: c:\HB\Plugins\COI\COIHelper.cs(31,56) : error CS1502: The best overloaded method match for 'System.Version.Version(string)' has some invalid arguments
Compiler Error: c:\HB\Plugins\COI\COIHelper.cs(31,68) : error CS1503: Argument 1: cannot convert from 'int' to 'string'

Im getting this error

Didn't compile for me. Either way I just did what he did and chopped ADenver's original and it worked. Just overwrite the file in COIHelper folder (make sure the old one is deleted).

Credits to ADenver.
 

Attachments

Back
Top