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

Get total gold amount?

ezpwnd

New Member
Joined
Jul 18, 2012
Messages
950
Reaction score
1
Hi!

Is there any way to get the amount of gold that is currently on the account? I'm not looking for gph but the total amount.
 
Have you tried Zeta.Internals.Actors.InventorySlot.Gold or Zeta.Internals.Actors.ActorAttributeType.Gold?
 
I'm not really sure if I'm doing this right, I'm new to programming but if I tried both:

double GoldAmount = (double)Zeta.Internals.Actors.InventorySlot.Gold;
double GoldAmount2 = (double)Zeta.Internals.Actors.ActorAttributeType.Gold;

GoldAmount will contain "16", GoldAmount2 will contain "-4038". Help would be greately appreciated. I somehow have the feeling that I need to do some converting to get the right results, I have no clue how though :/
 
What I was writing earlier was complete bullshit, as I mentioned I'm completely new to this kind of stuff. If I learned this right the Zeta.Internals.Actors.InventorySlot is an enumeration. Putting (int) or (double) in front of it will only return the position of the field "Gold" in the InventorySlot enumeration.

I'm just trying to do a simple stats plugin which will write some stuff into a log, nothing fancy.

BattleTag = ZetaDia.Service.CurrentHero.BattleTagName;

using (StreamWriter sw = new StreamWriter(LogFile))
{
sw.WriteLine("Name: " + BattleTag);
sw.WriteLine("Gold: " + Zeta.Internals.Actors.InventorySlot.Gold);
sw.WriteLine("Ticks: " + Zeta.CommonBot.GameStats.Instance.TicksPerSecond);
sw.Close();
}

The output will look like this:
Name: botuser#2148
Gold: Gold
Ticks: 18,2405256514148

How do I write down the actual goldamount? Is this functionality even included - since I have never seen a plugin do this?

/e: ZetaDia.Me.Inventory.Coinage might be what I was looking for, too bad the servers just went down.

/e: its working woth Coinage! :p
 
Last edited:
i asked for plugin or .cs with saving amount to file.

thanks.
 
Back
Top