You are viewing our Forum Archives. To view or take place in current topics click here.
Need help with a few things for my XRPC [C#][MW2]
Posted:
Need help with a few things for my XRPC [C#][MW2]Posted:
Status: Offline
Joined: Aug 03, 201311Year Member
Posts: 308
Reputation Power: 11
Status: Offline
Joined: Aug 03, 201311Year Member
Posts: 308
Reputation Power: 11
EDIT: I reported for Delete/Close at request. I got this working. No need for the topic to be open anymore.
Yes, this is my first XRPC and I am just getting use to C#, so please don't hate and yes, I do need quite a bit of help lol. I am giving credit to whoever helps me though!
First: I need help with my get clients button. I have it set up like this on the tool: [ Register or Signin to view external links. ] Text box above and then a weapon. I have the code + the offset for it but I'm not sure where to put it.
*I've got getPlayerState defined and working, if thats what you need for no-clip/UFO mode. Those work, so my getPlayerState works. (errors at end)
Second, I need help with unlimited ammo. I also have the code and the offset.
offset: 0x820E1724
Code:
Last, I need help with gamertag changer. I have the code for this. I am not sure if it is pre-game or in-game. I would like for it to be pre-game.
The code for defining:
Yes, I did try to do this by myself but I got a total of 7 errors with the coding. Even if the debugging worked, I don't think the actual mods would work.
My code for the 3 items above:
Errors:
[ Register or Signin to view external links. ]
EDIT: I reported for Delete/Close at request. I got this working. No need for the topic to be open anymore.
Last edited by EchoRGH ; edited 1 time in total
Yes, this is my first XRPC and I am just getting use to C#, so please don't hate and yes, I do need quite a bit of help lol. I am giving credit to whoever helps me though!
First: I need help with my get clients button. I have it set up like this on the tool: [ Register or Signin to view external links. ] Text box above and then a weapon. I have the code + the offset for it but I'm not sure where to put it.
byte[] memory = Jtag.GetMemory(this.getPlayerStateMW2(Client) + 0x3290, 15);
memory.Reverse<byte>();
return Encoding.ASCII.GetString(memory);
Second, I need help with unlimited ammo. I also have the code and the offset.
offset: 0x820E1724
Code:
Jtag.SetMemory(0x820E1724, new byte[] { 0x7D 0x1D 0x48 0x50 });
Last, I need help with gamertag changer. I have the code for this. I am not sure if it is pre-game or in-game. I would like for it to be pre-game.
The code for defining:
public void SetGamertag(int Client)
{
Jtag.SetMemory(getPlayerState(Client) + 0x44, Encoding.ASCII.GetBytes("" + textBox1.Text));
}
Yes, I did try to do this by myself but I got a total of 7 errors with the coding. Even if the debugging worked, I don't think the actual mods would work.
My code for the 3 items above:
private void flowButton15_Click(object sender, EventArgs e)
{
Jtag.SetMemory(0x820E1724, new byte[] { 0x7D 0x1D 0x48 0x50 });
}
public void SetGamertag(int Client)
{
Jtag.SetMemory(getPlayerState(Client) + 0x44, Encoding.ASCII.GetBytes("" + textBox1.Text));
}
private void flowButton17_Click(object sender, EventArgs e)
{
byte[] memory = Jtag.GetMemory(this.getPlayerState(Client) + 0x3290, 15);
memory.Reverse<byte>();
return Encoding.ASCII.GetString(memory);
}
Errors:
[ Register or Signin to view external links. ]
EDIT: I reported for Delete/Close at request. I got this working. No need for the topic to be open anymore.
Last edited by EchoRGH ; edited 1 time in total
#2. Posted:
Status: Offline
Joined: Apr 21, 201410Year Member
Posts: 1
Reputation Power: 0
I can tell that you are copying code and pasting it, if you use "Client" you should know how to define it and what to define it as...
- 2useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Apr 20, 201410Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: Apr 20, 201410Year Member
Posts: 12
Reputation Power: 0
Nobody is going to do your "dirty-work" for you. If you are going to C&P, understand the code.
- 1useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Jun 20, 201311Year Member
Posts: 355
Reputation Power: 13
Status: Offline
Joined: Jun 20, 201311Year Member
Posts: 355
Reputation Power: 13
[Noquote="ILoveVicinity"]Nobody is going to do your "dirty-work" for you. If you are going to C&P, understand the code.[/quote]
Ur a complete jackoff so just stfu i actully needed this for my too and i thought somebodywas nice enough to help him thrn maybe i could get help then i read the comments and ur all just being ass holes
Ur a complete jackoff so just stfu i actully needed this for my too and i thought somebodywas nice enough to help him thrn maybe i could get help then i read the comments and ur all just being ass holes
- 0useful
- 1not useful
#5. Posted:
Status: Offline
Joined: Aug 24, 201212Year Member
Posts: 369
Reputation Power: 26
Status: Offline
Joined: Aug 24, 201212Year Member
Posts: 369
Reputation Power: 26
Echo_Gaming wrote Yes, this is my first XRPC and I am just getting use to C#, so please don't hate and yes, I do need quite a bit of help lol. I am giving credit to whoever helps me though!
First: I need help with my get clients button. I have it set up like this on the tool: [ Register or Signin to view external links. ] Text box above and then a weapon. I have the code + the offset for it but I'm not sure where to put it.
*I've got getPlayerState defined and working, if thats what you need for no-clip/UFO mode. Those work, so my getPlayerState works. (errors at end)byte[] memory = Jtag.GetMemory(this.getPlayerStateMW2(Client) + 0x3290, 15);
memory.Reverse<byte>();
return Encoding.ASCII.GetString(memory);
Second, I need help with unlimited ammo. I also have the code and the offset.
offset: 0x820E1724
Code:Jtag.SetMemory(0x820E1724, new byte[] { 0x7D 0x1D 0x48 0x50 });
Last, I need help with gamertag changer. I have the code for this. I am not sure if it is pre-game or in-game. I would like for it to be pre-game.
The code for defining:public void SetGamertag(int Client)
{
Jtag.SetMemory(getPlayerState(Client) + 0x44, Encoding.ASCII.GetBytes("" + textBox1.Text));
}
Yes, I did try to do this by myself but I got a total of 7 errors with the coding. Even if the debugging worked, I don't think the actual mods would work.
My code for the 3 items above:private void flowButton15_Click(object sender, EventArgs e)
{
Jtag.SetMemory(0x820E1724, new byte[] { 0x7D 0x1D 0x48 0x50 });
}
public void SetGamertag(int Client)
{
Jtag.SetMemory(getPlayerState(Client) + 0x44, Encoding.ASCII.GetBytes("" + textBox1.Text));
}
private void flowButton17_Click(object sender, EventArgs e)
{
byte[] memory = Jtag.GetMemory(this.getPlayerState(Client) + 0x3290, 15);
memory.Reverse<byte>();
return Encoding.ASCII.GetString(memory);
}
Errors:
[ Register or Signin to view external links. ]
Message me on aim.
Aim: National
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Ok bro, first i do not recommend you using a text box for grabbing clients, if you use a check box you can save so much more space. second i don't understand your problem with max ammo, you got the codding just add it to a button . with you error with clients you most prob forgot a int client somewhere. I just accepted you on Skype so i help you over there
- 2useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Apr 09, 201410Year Member
Posts: 13
Reputation Power: 0
its better if u learn c# before u start making xrpc apps. Alot of people do this and end up not understanding any of their code and arn't able to fix basic problems.
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Mar 07, 201410Year Member
Posts: 48
Reputation Power: 2
Status: Offline
Joined: Mar 07, 201410Year Member
Posts: 48
Reputation Power: 2
instead of using a normal textbox, use a richtextbox and use this code to grab clients
obviously change GetGamertagMW3 to whatever u have, like GetGamertagMW2 and paste it anywhere, nt in a button
then to get GTs, make a button, inside put GetGTs(); (assuming you already have the needed definitions like GetPlayerState or this will just crash the tool.
and a helpful tip, to prevent the tool crashing, in even button put an else statement like so
2. put that unlimited ammo code into a button and name the button unlimited ammo, should work fine, if not, heres my full code (remove the button shit if ur going to use this)
sorry, I decompiled my old tool to get the shit I couldn't remember, but the code works, just weird format
3. that code is for the ingame GT, not pre game, sorry! and I don't have that either, so unfortunately I cant help
need anything else? hers my full tool source I made a while back!
any more questions? HMU on Skype or AIM:
Skype: maccymods
AIM: kylemac12 @ hotmail.co.uk
good luck! I actually used that same theme on my first XNotify tool! <3
private void GetGTs()
{
this.richTextBox1.AppendText(System.Environment.NewLine + "Clients Gamertags");
this.richTextBox1.AppendText(System.Environment.NewLine + "-------------------------");
this.richTextBox1.AppendText(System.Environment.NewLine + "-1 = All Clients");
this.richTextBox1.AppendText(System.Environment.NewLine + "0 = " + this.GetGamertagMW3(0));
this.richTextBox1.AppendText(System.Environment.NewLine + "1 = " + this.GetGamertagMW3(1));
this.richTextBox1.AppendText(System.Environment.NewLine + "2 = " + this.GetGamertagMW3(2));
this.richTextBox1.AppendText(System.Environment.NewLine + "3 = " + this.GetGamertagMW3(3));
this.richTextBox1.AppendText(System.Environment.NewLine + "4 = " + this.GetGamertagMW3(4));
this.richTextBox1.AppendText(System.Environment.NewLine + "5 = " + this.GetGamertagMW3(5));
this.richTextBox1.AppendText(System.Environment.NewLine + "6 = " + this.GetGamertagMW3(6));
this.richTextBox1.AppendText(System.Environment.NewLine + "7 = " + this.GetGamertagMW3(7));
this.richTextBox1.AppendText(System.Environment.NewLine + "8 = " + this.GetGamertagMW3(8));
this.richTextBox1.AppendText(System.Environment.NewLine + "9 = " + this.GetGamertagMW3(9));
this.richTextBox1.AppendText(System.Environment.NewLine + "10 = " + this.GetGamertagMW3(10));
this.richTextBox1.AppendText(System.Environment.NewLine + "11 = " + this.GetGamertagMW3(11));
this.richTextBox1.AppendText(System.Environment.NewLine + "12 = " + this.GetGamertagMW3(12));
this.richTextBox1.AppendText(System.Environment.NewLine + "13 = " + this.GetGamertagMW3(13));
this.richTextBox1.AppendText(System.Environment.NewLine + "14 = " + this.GetGamertagMW3(14));
this.richTextBox1.AppendText(System.Environment.NewLine + "15 = " + this.GetGamertagMW3(15));
this.richTextBox1.AppendText(System.Environment.NewLine + "16 = " + this.GetGamertagMW3(16));
this.richTextBox1.AppendText(System.Environment.NewLine + "17 = " + this.GetGamertagMW3(17));
obviously change GetGamertagMW3 to whatever u have, like GetGamertagMW2 and paste it anywhere, nt in a button
then to get GTs, make a button, inside put GetGTs(); (assuming you already have the needed definitions like GetPlayerState or this will just crash the tool.
and a helpful tip, to prevent the tool crashing, in even button put an else statement like so
button_1 click (this bullshit code here)
{
//I dunno some sorts code like HUDElems which can crash a lot
}
else
{ MessageBox.Show("There was an error, please try again or see coder for info");
}
2. put that unlimited ammo code into a button and name the button unlimited ammo, should work fine, if not, heres my full code (remove the button shit if ur going to use this)
this.Jtag.SetMemory(2181961508u, new byte[]
{
125,
40,
75,
120
});
Jtag.Call(TU8, -1, 0, "c \"Unlimited Ammo Given!");
sorry, I decompiled my old tool to get the shit I couldn't remember, but the code works, just weird format
3. that code is for the ingame GT, not pre game, sorry! and I don't have that either, so unfortunately I cant help
need anything else? hers my full tool source I made a while back!
http://www.mediafire.com/download/ofont8ttdh6qiei/******.rar
any more questions? HMU on Skype or AIM:
Skype: maccymods
AIM: kylemac12 @ hotmail.co.uk
good luck! I actually used that same theme on my first XNotify tool! <3
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Aug 03, 201311Year Member
Posts: 308
Reputation Power: 11
Status: Offline
Joined: Aug 03, 201311Year Member
Posts: 308
Reputation Power: 11
Uint32 wrote I can tell that you are copying code and pasting it, if you use "Client" you should know how to define it and what to define it as...I would like to say that the only copy and paste code on here is the Get Clients code. Thanks very much. Oh and by the way, this is my FIRST time coding with C#. I am still learning it. "You learn by doing." I asked for no hate, but obviously that is not easy enough for you. I know how to define certain things and I know how to code certain things. These however, I do not because again, this is my FIRST time. However, I am learning to code. Thanks for your time.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.