forked from TheNorthJyde/RealmeyeSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
94 lines (77 loc) · 3.72 KB
/
Program.cs
File metadata and controls
94 lines (77 loc) · 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using ScrapySharp.Extensions;
using ScrapySharp.Network;
using System;
using System.Linq;
using RealmeyeSharp;
using System.Collections.Generic;
namespace Tester
{
class Program
{
static void Main(string[] args)
{
#region realm
User user = new User();
Console.Write("In Game Name: ");
var IGN = Console.ReadLine();
Realm.GetUserSummary(IGN, user);
Realm.GetUserPetStats(user);
Realm.GetUserDescription(user);
Realm.GetUserClasses(user);
int fame = Convert.ToInt32(user.Fame.Substring(0, user.Fame.IndexOf(" ")));
Console.WriteLine("Name: " + user.Name +
"\nCharacters: " + user.Chars +
"\nSkins: " + user.Skins +
"\nFame: " + user.Fame +
"\nRank: " + user.Rank +
"\nAccount fame: " + user.AccFame +
"\nGuild: " + user.Guild +
"\nGuild Rank: " + user.GuildRank +
"\nCreated: " + user.Created +
"\nPet name: " + user.PetName +
"\nPet stats: " + user.Petstat1 + " " + user.Petlvl1 + " " + user.Petstat2 + " " + user.Petlvl2 + " " + user.Petstat3 + " " + user.Petlvl3 +
"\nDesc1: " + user.Desc1 + "\nDesc2: " + user.Desc2 + "\nDesc3: " + user.Desc3);
int i = 0;
foreach (var c in user.Classes)
{
Console.WriteLine("Class: " + i + "\nName: " + c.ClassName + " Lvl: " + c.Lvl + "\nClass Quest Completed: " + c.CQC + " Fame: " + c.Fame +
"\nEquipments Weapon: " + c.Eq1 + "\nAbility: " + c.Eq2 + "\nArmour: " + c.Eq3 + "\nRing: " + c.Eq4 + "\nBackpack: " + c.Backpack + "\nStats: " + c.Stats);
i++;
}
//Example GetAllUserInfo(IGN)
Console.Write("\nWrite ur ign again to test this function \nIGN: ");
Realm.GetAllUserInfo(Console.ReadLine(), user);
Console.WriteLine("Name: " + user.Name +
"\nCharacters: " + user.Chars +
"\nSkins: " + user.Skins +
"\nFame: " + user.Fame +
"\nRank: " + user.Rank +
"\nAccount fame: " + user.AccFame +
"\nGuild: " + user.Guild +
"\nCreated: " + user.Created +
"\nPet name: " + user.PetName +
"\nPet stats: " + user.Petstat1 + " " + user.Petlvl1 + " " + user.Petstat2 + " " + user.Petlvl2 + " " + user.Petstat3 + " " + user.Petlvl3 +
"\nDesc1: " + user.Desc1 + "\nDesc2: " + user.Desc2 + "\nDesc3: " + user.Desc3);
i = 0;
foreach (var c in user.Classes)
{
Console.WriteLine("Class: " + i + "\nName: " + c.ClassName + " Lvl: " + c.Lvl + "\nClass Quest Completed: " + c.CQC + " Fame: " + c.Fame +
"\nEquipments Weapon: " + c.Eq1 + "\nAbility: " + c.Eq2 + "\nArmour: " + c.Eq3 + "\nRing: " + c.Eq4 + "\nBackpack: " + c.Backpack + "\nStats: " + c.Stats);
i++;
}
Console.ReadKey();
//Starts a new instance of the program itself
System.Diagnostics.Process.Start("Tester.exe");
//Closes the current process
Environment.Exit(0);
#endregion
List<MysteryBox> mysteryBoxes = new List<MysteryBox>();
Realm.GetAllMysteryBoxes(mysteryBoxes);
foreach (var MysteryBox in mysteryBoxes)
{
Console.WriteLine($"Name: {MysteryBox.Name}\t" + $"Price: {MysteryBox.Price}\t" + $"Ends at: {MysteryBox.EndsAt}");
}
Console.ReadKey();
}
}
}