August 11, 2020, 08:52:23 am

News:

New Forum !


Neverwinter

Started by ilma, May 06, 2013, 04:44:21 pm

previous topic - next topic
Go Down

ilma

#15
May 21, 2013, 11:10:30 pm Last Edit: May 21, 2013, 11:13:56 pm by ilma
Parce que c'est bon d'AFK BG....

Script AutoHotkey :

Code Select


SetTimer, Jump, 60000
Loop {

IfWinActive, ahk_class CrypticWindowClassDX0
{
; Is the game already over?
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 matchDone.png
if(ErrorLevel = 0) {
critical, on
MouseClick left, foundX, foundY
Sleep 15000
Send {Alt}
Sleep 200
ImageSearch, portraitX, portraitY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 playerPortrait.png
MouseClick right,portraitX, portraitY
Sleep 3000
ImageSearch, leaveX, leaveY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 leaveParty.png
MouseClick left,leaveX, leaveY
Send {alt}
Sleep 200
critical, off
}
else {

; Are we in a game already?
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inMatch.png
if (ErrorLevel = 0)
{
; Be a dick and kick everyone from the party if we are leader
;ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 isLeader.png
;if(ErrorLevel = 0) {
;critical,on
;Send {Alt}
;ImageSearch, partyX, partyY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inParty.png
;if(ErrorLevel = 0) {
;MouseClick right, partyX, partyY
;Sleep 3000
;ImageSearch, kickX, kickY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 kickPlayer.png
;MouseClick left, kickX, kickY
;}
;critical,off
;}
}
else {
ImageSearch, partyX, partyY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inParty.png
if(ErrorLevel = 0) {
Send {m}
Sleep 200
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 changeInstance.png
if(ErrorLevel = 0) {
critical,on
MouseClick left, foundX, foundY
Sleep 3000
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 transferButton.png
MouseClick left, foundX, foundY
Sleep 15000
Send {Alt}
Sleep 200
ImageSearch, portraitX, portraitY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 playerPortrait.png
MouseClick right,portraitX, portraitY
Sleep 3000
ImageSearch, leaveX, leaveY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 leaveParty.png
MouseClick left,leaveX, leaveY
Send {alt}
Sleep 200
critical,off
}

}
else {
; Has the queue popped?
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 groupFinder.png
if (ErrorLevel = 0) {
Send {Shift down}
Sleep 100
Send 1
Sleep 100
Send {Shift up}
Sleep 15000
}
else {
; Do we need to queue up?
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 queueAvailable.png
if (ErrorLevel = 0) {
; Arbitrary 50 here. Just to make sure it doesn't detect the other join buttons.
ImageSearch, buttonX, buttonY, foundX, foundY-50, %A_ScreenWidth%, %A_ScreenHeight%, *30 joinButton.png
if(ErrorLevel = 0) {
MouseClick left, buttonX, buttonY
Sleep 3000
MouseMove 0, 0
}
}
else {
; Can't find queue button, Try opening up queue
Send k
Sleep 3000
}
}
}
}
}
}
}
return

Jump:
IfWinActive, ahk_class CrypticWindowClassDX0
{
Send {Space}
Sleep 100
Send {Space down}
Sleep 100
Send {Space up}
}
return


Les images, a mettre dans le meme repertoire que le script (le nom exact est important) :

queueAvailable.png - Crop a portion of the glory Icon on the left side of the PVP queue
joinButton.png - Crop a part of the join button that includes the words/and or symbol
groupFinder.png - Crop a part of blue helmet thing on the popup
inMatch.png - Crop a part of the grey-ish swirly thing that is above the team scores (appears after match starts) [http://imgur.com/RYjAONd]
matchDone.png - Crop a part of the exit button with at least some of the letters included
playerPortrait.png - Crop a part of your portrait, I used my class symbol, but anything you can right click for the menu works
leaveParty.png - Crop the Leave Party "button"
changeInstance.png - Crop a part of the words Change Instance from the button.
inParty.png - Crop a portion of the circle that surrounds the players faces (preferably one that doesn't get covered by some player models, like the part below where the class symbol is
isLeader.png - Crop the middle portion of the crown when you are leader (or anywhere really).
transferButton.png - Crop a part of the word Transfer from the button.

Exemples de ce que j'ai utilise :
http://imgur.com/a/1AFc2

Si jamais le comportement n'es pas ok, dites moi ce qui se passe exactement, 95% du temps c'est un soucis avec les images utilisees.
Pour info, screenshots fait avec le snipping tool de win8 (ou win7). Il faut vraiment utiliser les votres, donc ouais y a 30 min de setup :p

Faites ca avec un compte "jetable" par contre, aucune idee de la politique de ban pour ca...
False

ilma

Ca devient ridicule...
La stamina est geree cote client...
Code Select
#include <Windows.h>
#include <iostream>
#include <tlhelp32.h>
#include <tchar.h>

using namespace std;

HWND windowhandle=0;

DWORD modulebase=0;
HANDLE hopen=0;

HANDLE prozessauf();
DWORD GetModuleBase(LPSTR lpModuleName);
DWORD getadr(DWORD address, HANDLE hopen);
void setadr(DWORD address, int value, HANDLE hopen);


int main()

{   
    SetConsoleTitle("Neverwinter - Mageteleporthack - by Dragonef22");
    cout<<"Updated for 21.05.2013";
   
    while(true)
    {
    hopen=prozessauf();
    modulebase=GetModuleBase("GameClient.exe");
    DWORD adress=0;
    DWORD teleportadress=0;
    adress=adress+modulebase+0x024F50B0;     // GameClient.exe+startoffset
    adress=getadr(adress,hopen);
    adress=adress+0x244; // Offset Nr. 0
    adress=getadr(adress,hopen);
    adress=adress+0x6f8; // Offset Nr. 1
    adress=getadr(adress,hopen);
    adress=adress+0x18; // Offset Nr. 2
    adress=getadr(adress,hopen);
    adress=adress+0x9c; // Offset Nr. 3
    adress=getadr(adress,hopen);
     
    teleportadress=adress+0x244; // Teleportresource

    // Full Teleportresource = 1120403456 - set it
    setadr(teleportadress,1120403456,hopen);
    Sleep(1);
    }
}

   
HANDLE prozessauf()

{
    HWND hwar3=::FindWindow(NULL,"Neverwinter");
    DWORD PID, TID;
    TID = ::GetWindowThreadProcessId (hwar3, &PID);
    HANDLE hopen=OpenProcess( PROCESS_ALL_ACCESS|PROCESS_TERMINATE |PROCESS_VM_READ|
                  PROCESS_VM_WRITE,FALSE,PID);
    return hopen;
}


DWORD GetModuleBase(LPSTR lpModuleName)
{
    DWORD dwProcessId,TID;
    HWND hwar3=::FindWindow(NULL,"Neverwinter");
    TID = ::GetWindowThreadProcessId (hwar3, &dwProcessId);
     
   MODULEENTRY32 lpModuleEntry = {0};
   HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);

   if(!hSnapShot)
      return 0;
   lpModuleEntry.dwSize = sizeof(lpModuleEntry);
   BOOL bModule = Module32First( hSnapShot, &lpModuleEntry );
   while(bModule)
   {
      if(!strcmp( lpModuleEntry.szModule, lpModuleName ) )
      {
         CloseHandle(hSnapShot);
         return (DWORD)lpModuleEntry.modBaseAddr;
      }
      bModule = Module32Next( hSnapShot, &lpModuleEntry );
   }
   CloseHandle( hSnapShot );
   return 0;
}

// Value eines Adresswerts auslesen

DWORD getadr(DWORD address, HANDLE hopen)
{
    int value =0;
    ReadProcessMemory(hopen,(void*)address,&value,sizeof(value),0);
    return value;
}   
   
void setadr(DWORD address, int value, HANDLE hopen)
{
    WriteProcessMemory(hopen, (LPVOID*)(DWORD) (address), &value, sizeof(value), NULL);
    return;
}


C++ a compiler.. Le resultat :
http://www.youtube.com/watch?v=Kn5VsEKBIvs
False

Telvin


Telvin

j'ai teste le script hier (pvp) mais ça n'a  pas fonctionné, je m'y prend surement mal avec les images.
FAudrait que je te capte sur ts

Sortune

http://mmogfails.blogspot.fr/

Apparemment ils ont rajouté certains checks coté serveurs pour pas avoir des valeurs hallucinantes, mais bon, ca cheat tjs sur des valeurs legit :)

ilma

http://www.twitch.tv/oranosdazerg/c/2324796

Je fantasme sur un run comme ca :p

Et on a du taff en dps boss....
False

keeky

Un mage qui écoute "I want to break free" ne peut qu'own tout le monde ! ~~


Rejoignez nous sur Star Wars The Old Republic !

http://www.swtor.com/fr/guildes/27970/black-mapou

Go Up