Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int Cooldown(string type)
- {
- uint inttype = 0;
- switch (type)
- {
- case "attack":
- inttype = 1;
- break;
- case "healing":
- inttype = 2;
- break;
- case "support":
- inttype = 3;
- break;
- case "special":
- inttype = 4;
- break;
- default:
- inttype = 0;
- break;
- }
- uint End_Node = this.Memory.ReadUInt32(Addresses.Cooldown.GroupCD);
- uint Next_Node = this.Memory.ReadUInt32(End_Node);
- uint runningtime = Util.WinApi.GetTime() - this.Memory.ReadUInt32(Addresses.Cooldown.clientTime);
- while (Next_Node != End_Node)
- {
- uint Spell_ID = this.Memory.ReadUInt32(Next_Node + 8);
- uint Cooldown_Start = this.Memory.ReadUInt32(Next_Node + 12);
- uint Cooldown_End = this.Memory.ReadUInt32(Next_Node + 16);
- uint time = (Cooldown_End - runningtime);
- if (time > 0 & time < 600000 & Spell_ID == inttype)
- {
- return (int)time;
- }
- Next_Node = this.Memory.ReadUInt32(Next_Node);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment