Post: COD Moving Name (C# Source Code)
12-08-2014, 11:58 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I posted this in reply to a comment of someone doing the same thing, but this has neater code, is being posted in the correct section as well as a clear Thread Title on what this does.

(You only need 1 timer.)

    
public static class Addresses
{
public static UInt32
NameChange = 0x1BBBC2C; //MW3 NameChange Address
}

//Declared outside of the timer method
string myname = "BaSs"; //or have this declared in your timer and ( = yourtextbox.Text);
string space;
int i = 0;

//Your Timer
private void timer1_Tick(object sender, EventArgs e)
{
if (i == 11) //or whatever length you plan on adding spaces for
{
i = 0;
space = new string(' ', i);
PS3.Extension.WriteString(Addresses.NameChange, space + myname);
}
else
{
space = new string(' ', i);
PS3.Extension.WriteString(Addresses.NameChange, space + myname);
i = i + 1;
}
timer1.Start();
}


so essentially:

    
//C# Moving Name

string myname;
string space;
int i = 0;

private void timer1_Tick(object sender, EventArgs e)
{
myname = yourtextbox.Text;
if (i == 11)
{
i = 0;
space = new string(' ', i);
PS3.Extension.WriteString(0x1BBBC2C, space + myname);
}
else
{
space = new string(' ', i);
PS3.Extension.WriteString(0x1BBBC2C, space + myname);
i = i + 1;
}
timer1.Start();
}



Thread where I posted in regards too: You must login or register to view this content.


Does what my MW3 'Moving Name' Looper in my MW3 RTE Tool does: You must login or register to view this content.
Last edited by BaSs_HaXoR ; 12-09-2014 at 12:01 AM.

The following 4 users say thank you to BaSs_HaXoR for this useful post:

One, Boliberrys, jagex, XxBlud23xX
12-09-2014, 01:03 AM #2
jagex
Gym leader
Nice man

Could change the static to a constant tho
12-09-2014, 02:07 AM #3
Originally posted by jagex View Post
Nice man

Could change the static to a constant tho

Their's a reason I left it static and not a constant. I want it to be able to be modified.
Ex. Say you wanted checkbox/radio-button to change the address for name on selection. Winky Winky
12-09-2014, 02:16 AM #4
jagex
Gym leader
Originally posted by HaXoR View Post
Their's a reason I left it static and not a constant. I want it to be able to be modified.
Ex. Say you wanted checkbox/radio-button to change the address for name on selection. Winky Winky


Isn't name change only located at a certain offset though?
12-09-2014, 02:31 AM #5
Originally posted by jagex View Post
Isn't name change only located at a certain offset though?

I'm talking about if you make a multi-cod tool. It allows you to change the address when your using a different game.

The following user thanked BaSs_HaXoR for this useful post:

jagex
12-09-2014, 05:13 AM #6
One
At least I can fight
cheers for sharing Tiphat
Last edited by One ; 12-09-2014 at 07:06 AM.
12-26-2014, 08:14 AM #7
XxBlud23xX
< ^ > < ^ >
Originally posted by HaXoR View Post
I posted this in reply to a comment of someone doing the same thing, but this has neater code, is being posted in the correct section as well as a clear Thread Title on what this does.

(You only need 1 timer.)

    
public static class Addresses
{
public static UInt32
NameChange = 0x1BBBC2C; //MW3 NameChange Address
}

//Declared outside of the timer method
string myname = "BaSs"; //or have this declared in your timer and ( = yourtextbox.Text);
string space;
int i = 0;

//Your Timer
private void timer1_Tick(object sender, EventArgs e)
{
if (i == 11) //or whatever length you plan on adding spaces for
{
i = 0;
space = new string(' ', i);
PS3.Extension.WriteString(Addresses.NameChange, space + myname);
}
else
{
space = new string(' ', i);
PS3.Extension.WriteString(Addresses.NameChange, space + myname);
i = i + 1;
}
timer1.Start();
}


so essentially:

    
//C# Moving Name

string myname;
string space;
int i = 0;

private void timer1_Tick(object sender, EventArgs e)
{
myname = yourtextbox.Text;
if (i == 11)
{
i = 0;
space = new string(' ', i);
PS3.Extension.WriteString(0x1BBBC2C, space + myname);
}
else
{
space = new string(' ', i);
PS3.Extension.WriteString(0x1BBBC2C, space + myname);
i = i + 1;
}
timer1.Start();
}



Thread where I posted in regards too: You must login or register to view this content.


Does what my MW3 'Moving Name' Looper in my MW3 RTE Tool does: You must login or register to view this content.


Thanks bro, i was having trouble with the other thread Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo