Welcome to Ramleague,

Ramleague - the best site for pinoy chat, games chat and mobiles chat,

Sign Up
  1. Hello guest Guest , Are you tired from Ads? to remove some ads you need to register and be active. :D

[Source Code] PointBlank Longknife

Discussion in 'Point Blank Source Code & Tutorials' started by Mae, Jul 6, 2015.

  1. Mae
    No wonder you are gay.
    Staff Member Staff Admin Donator

    Mae
    Joined:
    Feb 9, 2015
    Gender:
    Female
    Posts:
    2,769
    Reputation:
    488
    Thanks:
    1,535
    Location:
    Bed? something wrong?
    In-Love
    United States
    None
    None
    Skype name: Mae
    None
    Fvkyou
    None

    PointBlank Longknife

    I don't know who made this but, thanks to him/her :D

    Code:
    #define Detour_Type_0xE9 1 
    #define Detour_Type_0xB8 2 
    #define Detour_Type_0x68 3 
    #define Detour_Type_0xE8 4 
    
    DWORD CreateDetour(DWORD dwThread,DWORD dwAdress,DWORD dwType,DWORD dwSize)
    {
            DWORD dwDetour,dwProtect,i;
            if (dwAdress&&dwThread&&dwSize>= dwSize)
            {
                    dwDetour = (DWORD)VirtualAlloc(0,dwSize+dwSize,0x1000,0x40);
                    if (dwDetour&&VirtualProtect((VOID*)dwAdress,dwSize,0x40,&dwProtect))
                    {
                            for (i=0;i<dwSize;i++)
                            {
                                    *(BYTE*)(dwDetour+i)=*(BYTE*)(dwAdress+i);
                            }
                            switch (dwType)
                            {
                                case Detour_Type_0xE9:
                                    {
                                        *(BYTE*)(dwDetour+dwSize+0)=0xE9;
                                        *(DWORD*)(dwDetour+dwSize+1)=(dwAdress-dwDetour-dwSize);
                                        *(BYTE*)(dwAdress+0)=0xE9;
                                        *(DWORD*)(dwAdress+1)=(dwThread-dwAdress-dwSize);
                                    }
                                    break;
                                    case Detour_Type_0xB8:
                                    {
                                        *(BYTE*)(dwDetour+dwSize+0)=0xB8;
                                        *(DWORD*)(dwDetour+dwSize+1)=(dwAdress+dwSize);
                                        *(WORD*)(dwDetour+dwSize+5)=0xE0FF;
                                        *(BYTE*)(dwAdress+0)=0xB8;            
                                        *(DWORD*)(dwAdress+1)=(dwThread);
                                        *(WORD*)(dwAdress+5)=0xE0FF;
                                    }
                                    break;
                                    case Detour_Type_0x68:
                                    {
                                        *(BYTE*)(dwDetour+dwSize+0)=0x68;
                                        *(DWORD*)(dwDetour+dwSize+1)=(dwAdress+dwSize);
                                        *(WORD*)(dwDetour+dwSize+5)=0xC3;
                                        *(BYTE*)(dwAdress+0)=0x68;            
                                        *(DWORD*)(dwAdress+1)=(dwThread);
                                        *(WORD*)(dwAdress+5)=0xC3;
                                    }
                                    break;
                            }
                            VirtualProtect((VOID*)dwAdress,dwSize,dwProtect,&dwProtect);
                            VirtualProtect((VOID*)dwDetour,dwSize+dwSize,0x20,&dwProtect);
                            return dwDetour;
                    }
            }
            Sleep(10);
            return (0);
    }
    
    Source:
    Code:
    DWORD ADR_LongKnife = 0x4D1366;  //Garena PH
    DWORD RET_LongKnife = ADR_LongKnife + 0x5;
    
    float LongKnifeDist = 500; 
    bool LongKnife; 
    
    _declspec (naked) void LongKnifeThread() 
    { 
        if (LongKnife) 
        {
            __asm 
            { 
                fld dword ptr[LongKnifeDist] 
                mov esp, ebp 
                jmp dword ptr[RET_LongKnife] 
            } 
        } 
        __asm 
        { 
            fld dword ptr[ebp-04] 
            mov esp, ebp 
            jmp dword ptr[RET_LongKnife] 
        } 
    }
    
    
    Hook:
    Code:
    CreateDetour((DWORD) LongKnifeThread, (DWORD) ADR_LongKnife, Detour_Type_0xE9, 5);
    
    How to use:
    Code:
    if (CH_LONGKNIFE) 
            {
                if(GetAsyncKeyState(VK_LBUTTON))
                    LongKnife = true; 
                else 
                    LongKnife = false;
            }
    
     
    FirstPromise™ thanks this.
    • BE A GAMER - RAMLeague
  2. Forg [Supernatural Member]
    Banned Member Lvl1

    Forg
    Joined:
    May 1, 2015
    Gender:
    Male
    Posts:
    452
    Reputation:
    52
    Thanks:
    118
    Location:
    Dasmarinas, Cavite
    Spaced
    Philippines
    Approved! Approved

    Warning! It doesn't make sense? No damage for the character. Good for using Multi Knife.
     
  3. FirstPromise™ RAML Expert
    Staff Member Staff Admin Contributor Gamers Tech Member Lvl3

    FirstPromise™
    Joined:
    Oct 29, 2014
    Posts:
    1,772
    Reputation:
    520
    Thanks:
    1,401
    Angelic
    great share @Mae may I respectfully request updated addy DWORD ADR_LongKnife = 0x4D1366, thanks in advance. /gewd
     
    Last edited: Jul 8, 2015
  4. nmaikaze Member
    Member Lvl1

    nmaikaze
    Joined:
    Sep 24, 2015
    Gender:
    Male
    Posts:
    6
    Reputation:
    0
    Thanks:
    0
    Tested work 100% in PB Offline 2017 lol /gassum
     
Loading...

Advertisement

Similar Threads Forum Date
Cheat PointBlank Latino [KA] Point Blank Oct 26, 2021
PointBlank Base Collections (Full Source Code) Point Blank Source Code & Tutorials May 10, 2021
PointBlank Point Blank Sep 2, 2020
For Daily Updates of pointblank Cheat. Point Blank Jul 22, 2020
Pointblank PH Cheat July 06 2020 Point Blank Jul 6, 2020
Pointblank Cheat Working 7.04.2020 Point Blank Jul 4, 2020

Tags for this Thread

:

Share This Page