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!

Help, Kill counter. Doesnt compile.

kaiko327

New Member
Joined
Jan 24, 2010
Messages
40
Its meant to display how many kills i have after each kill...can someone help

Code:
namespace Styx.Bot.CustomClasses
{
    using Styx;
    using Styx.Logic;
    using System;
    using System.Diagnostics;
    using System.Collections.Generic;
    using Helpers;
    using System.Linq;
    using Logic.Pathing;
    using System.Threading;
    using Logic.Common.Combat;
    using Object_Dumping_Enumeration;
    using CustomCombat.CombatInterface;
    using Object_Dumping_Enumeration.WoWObjects;
    using Memory_Read_Write_Inject.Lua;
    using System.Net;
    using System.Net.Mail;
    using Styx.Plugins.PluginClass;

    public class Level : HBPlugin
    {

        int level = ObjectManager.Me.Level;
        int checkKills, checkDeaths;
        


        int d = (int)InfoPanel.Deaths;
        int k = (int)InfoPanel.MobsKilled;

{Logging.Write("int k");}
}
}
 
I'm fairly new with this so I may be wrong. But I don't really understand why you have the { } around Logging.Write
 
each code has to have brackets

() [] {}

But his brackets are wrong...

using Styx;
using Styx.Logic;
using System;
using System.Diagnostics;
using System.Collections.Generic;
using Helpers;
using System.Linq;
using Logic.Pathing;
using System.Threading;
using Logic.Common.Combat;
using Object_Dumping_Enumeration;
using CustomCombat.CombatInterface;
using Object_Dumping_Enumeration.WoWObjects;
using Memory_Read_Write_Inject.Lua;
using System.Net;

namespace Styx.Bot.CustomClasses
{

//using System.Net.Mail;
using Styx.Plugins.PluginClass;

public class Level : HBPlugin
{

int level = ObjectManager.Me.Level;
int checkKills;
int checkDeaths;



int d = (int)InfoPanel.Deaths;
int k = (int)InfoPanel.MobsKilled;

Logging.Write("Kills: "+k+" Deaths: "+d);
}
}

Didnt test it, but this syntax seems right
 
Last edited:
Back
Top