Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
Add ZZ Vac
Add AttAnimFrameDelay
  • Loading branch information
Bia authored and Bia committed Nov 15, 2018
1 parent 68cc2b6 commit 252adfa
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 230 deletions.
1 change: 1 addition & 0 deletions Timelapse/Functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace GlobalVars {
static void SendKey(BYTE keyCode) {
PostMessage(GlobalVars::mapleWindow, WM_KEYDOWN, keyCode, MapVirtualKey(keyCode, MAPVK_VK_TO_VSC) << 16);
}

static void MakePageWritable(ULONG ulAddress, ULONG ulSize) {
MEMORY_BASIC_INFORMATION* mbi = new MEMORY_BASIC_INFORMATION;
VirtualQuery((PVOID)ulAddress, mbi, ulSize);
Expand Down
27 changes: 27 additions & 0 deletions Timelapse/MainForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,19 @@ void MainForm::cbNoPlayerNameTag_CheckedChanged(Object^ sender, EventArgs^ e)
WriteMemory(0x00942DCC, 5, 0xB8, 0x14, 0xDA, 0xAD, 0x00); //mov eax,00ADDA14
}

//Attack animation delay
//TODO: the value is a byte thus should be settable in range of -128_127
void MainForm::cbAttackAnimDelay_CheckedChanged(Object^ sender, EventArgs^ e) {
if (this->cbAttackAnimDelay->Checked)
{
WriteMemory(0x00454795, 3, 0x83, 0xC1, 0x05); //add ecx,05
}
else
{
WriteMemory(0x00454795, 3, 0x83, 0xC0, 0x0A); //add eax,0a
}
}

//Instant Drop Items
void MainForm::cbInstantDropItems_CheckedChanged(Object^ sender, EventArgs^ e) {
if (this->cbInstantDropItems->Checked)
Expand Down Expand Up @@ -1221,6 +1234,20 @@ void MainForm::cbFullMapAttack_CheckedChanged(Object^ sender, EventArgs^ e) {
WriteMemory(0x006785CA, 2, 0x74, 0x22); //je 006785EE
}

//ZZ Vac
void MainForm::cbZzVac_CheckedChanged(Object^ sender, EventArgs^ e) {
if (this->cbZzVac->Checked)
{
WriteMemory(0x009B17A0, 3, 0x90, 0x90, 0x90); //nop; nop; nop;
WriteMemory(0x009B17B0, 3, 0x90, 0x90, 0x90); //nop; nop; nop;
}
else
{
WriteMemory(0x009B17A0, 3, 0xDD, 0x45, 0xF0); //fld qword ptr [ebp-10]
WriteMemory(0x009B17B0, 3, 0xDD, 0x45, 0xE8); //fld qword ptr [ebp-18]
}
}

void MainForm::cbItemVac_CheckedChanged(Object^ sender, EventArgs^ e) {
if (this->cbItemVac->Checked)
Jump(itemVacAddr, CodeCaves::ItemVacHook, 2);
Expand Down
Loading

0 comments on commit 252adfa

Please sign in to comment.