Post: CEX DEX C# Codes
03-29-2014, 11:39 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU im gunna post some basic C# CEX/DEX Codes That i found in some txt files on my computer hope this helps. Gobble
    under "InitializeComponent();" add this code:
public static PS3API PS3 = new PS3API();


    Connect:
try
{
PS3.ConnectTarget(0);
MessageBox.Show("Successfully Connected to Target!", "Connected", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch
{
MessageBox.Show("Failed to Connect", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}



    Attach:

try
{
PS3.AttachProcess();
MessageBox.Show("Successfully Attached to Proccess!", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch
{
MessageBox.Show("Failed to Attached", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}


    PS3.ChangeAPI(SelectAPI.TargetManager);


    PS3.ChangeAPI(SelectAPI.ControlConsole);


    if (checkBox1.Checked == true)
{
byte[] Redboxes = new byte[] { 0x01 };
PS3.SetMemory(0x01CC4B78, Redboxes);

}
else
{
byte[] Redboxes = new byte[] { 0x00 };
PS3.SetMemory(0x01CC4B78, Redboxes);
}


    Name Changer add this to a button;
PS3.Extension.WriteString(0x26BDFD8, textBox1.Text);


    Flashing Name;//add a timer if you want a flashing name add this code to a checkbox next code will make the name flash
if (checkBox11.Checked == true)

if (checkBox11.Checked == true)
{
timer1.Start();
}
else
{
timer1.Stop();
}


    Random random = new Random();//add this to your timer
int Colors = random.Next(0, 7);
PS3.SetMemory(0x26BDFD8, this.StringToByteArray("^" + Colors + this.textBox1.Text + "\0"));
}
public byte[] StringToByteArray(string str)
{
ASCIIEncoding encoding = new ASCIIEncoding();
return encoding.GetBytes(str);


Add my skype: ogxkillem if you have any problems i will be glad to help with you C# Smile
Last edited by WhyMoDz ; 03-30-2014 at 05:33 AM. Reason: Shortened name code

The following 2 users say thank you to WhyMoDz for this useful post:

coreconfusion, ImHazx
03-29-2014, 02:15 PM #2
Originally posted by WhyMoDz View Post
Hey NGU im gunna post some basic C# CEX/DEX Codes That i found in some txt files on my computer hope this helps. Gobble
    under "InitializeComponent();" add this code:
public static PS3API PS3 = new PS3API();


    Connect:
try
{
PS3.ConnectTarget(0);
MessageBox.Show("Successfully Connected to Target!", "Connected", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch
{
MessageBox.Show("Failed to Connect", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}



    Attach:

try
{
PS3.AttachProcess();
MessageBox.Show("Successfully Attached to Proccess!", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch
{
MessageBox.Show("Failed to Attached", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}


    PS3.ChangeAPI(SelectAPI.TargetManager);


    PS3.ChangeAPI(SelectAPI.ControlConsole);


    if (checkBox1.Checked == true)
{
byte[] Redboxes = new byte[] { 0x01 };
PS3.SetMemory(0x01CC4B78, Redboxes);

}
else
{
byte[] Redboxes = new byte[] { 0x00 };
PS3.SetMemory(0x01CC4B78, Redboxes);
}


    Name Changer add this to a button;
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text);
Array.Resize(ref NAME, NAME.Length + 1);
PS3.SetMemory(0x26BDFD8, NAME);


    Flashing Name;//add a timer if you want a flashing name add this code to a checkbox next code will make the name flash
if (checkBox11.Checked == true)

if (checkBox11.Checked == true)
{
timer1.Start();
}
else
{
timer1.Stop();
}


    Random random = new Random();//add this to your timer
int Colors = random.Next(0, 7);
PS3.SetMemory(0x26BDFD8, this.StringToByteArray("^" + Colors + this.textBox1.Text + "\0"));
}
public byte[] StringToByteArray(string str)
{
ASCIIEncoding encoding = new ASCIIEncoding();
return encoding.GetBytes(str);


Add my skype: ogxkillem if you have any problems i will be glad to help with you C# Smile



instead of :
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text);
Array.Resize(ref NAME, NAME.Length + 1);
PS3.SetMemory(0x26BDFD8, NAME);


Put this:
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text + "\0");
PS3.SetMemory(0x26BDFD8, NAME);


it can save you some lines Smile

The following 4 users say thank you to Bad Luck Brian for this useful post:

iNDMx, WhyMoDz, x_action_x, Xx-GIPPI-xX
03-29-2014, 04:48 PM #3
iMoDz-Baptiste
Do a barrel roll!
Originally posted by Bad
instead of :
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text);
Array.Resize(ref NAME, NAME.Length + 1);
PS3.SetMemory(0x26BDFD8, NAME);


Put this:
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text + "\0");
PS3.SetMemory(0x26BDFD8, NAME);


it can save you some lines Smile

Or put PS3.Extention.WriteString(offset, textBox1.Text); it can save you more lines :troll:

The following user thanked iMoDz-Baptiste for this useful post:

BISOON
03-29-2014, 05:26 PM #4
ImHazx
Pokemon Trainer
Originally posted by Baptiste View Post
Or put PS3.Extention.WriteString(offset, textBox1.Text); it can save you more lines :troll:


The lines are free... why would you save some? Happy
03-29-2014, 05:29 PM #5
iMoDz-Baptiste
Do a barrel roll!
Originally posted by ImHazx View Post
The lines are free... why would you save some? Happy

It's more fast (mm)
03-29-2014, 05:38 PM #6
ImHazx
Pokemon Trainer
Originally posted by Baptiste View Post
It's more fast (mm)


So it's not about saving lines, but about being lazy Sir Gabe
03-29-2014, 11:47 PM #7
Sticky
Mary J Wannnnna
Originally posted by Bad
instead of :
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text);
Array.Resize(ref NAME, NAME.Length + 1);
PS3.SetMemory(0x26BDFD8, NAME);


Put this:
    
byte[] NAME = Encoding.ASCII.GetBytes(textBox1.Text + "\0");
PS3.SetMemory(0x26BDFD8, NAME);


it can save you some lines Smile


Even instead of that you can put
    PS3.Extension.WriteString(0x26BDFD8, textBox1.Text); Smile
Last edited by Sticky ; 03-29-2014 at 11:50 PM.
03-30-2014, 12:22 AM #8
Hash847
Purple God
Originally posted by Sticky View Post
Even instead of that you can put
    PS3.Extension.WriteString(0x26BDFD8, textBox1.Text); Smile


Leeched from the guy above.
03-30-2014, 12:44 AM #9
Sticky
Mary J Wannnnna
Originally posted by Winter View Post
Leeched from the guy above.


oh my god shut the fuck up dude you really have nothing better to do.. Facepalm
03-30-2014, 12:54 AM #10
Hash847
Purple God
Originally posted by Sticky View Post
oh my god shut the fuck up dude you really have nothing better to do.. Facepalm


Pretty much, and I'm kidding :p

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo