Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var name = Encoding.ASCII.GetBytes(textBox1.Text);
- if (allocmem == 0)
- {
- allocmem = lib.AllocateMemory(0x100);
- lib.WriteBytes(allocmem, name); // name
- lib.WriteByte((uint)(allocmem + name.Length), 0);
- lib.WriteByte(allocmem + 48, 5); //race
- lib.WriteByte(allocmem + 49, 1); //class
- lib.WriteByte(allocmem + 50, 1); //sexID
- lib.WriteByte(allocmem + 51, 1); //skin
- lib.WriteByte(allocmem + 52, 1); //face
- lib.WriteByte(allocmem + 53, 2); //hairStyleID;
- lib.WriteByte(allocmem + 54, 8); //hairColorID;
- lib.WriteByte(allocmem + 55, 5); //facialHairStyleID;
- }
- lib.Asm.AddLine("mov ecx, {0}", allocmem);
- lib.Asm.AddLine("call {0}", 0x0046B290);
- lib.Asm.AddLine("ret");
- uint cave2 = lib.AllocateMemory(0x100);
- lib.Asm.InjectAndExecute(cave2);
- // lib.FreeMemory(allocmem);
- lib.FreeMemory(cave2);
- lib.Asm.Clear();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement