ExtraForum - 1299 Private Serverlar - Server Dosya Paylaşımları
Would you like to react to this message? Create an account in a few clicks or log in to continue.
ExtraForum - 1299 Private Serverlar - Server Dosya Paylaşımları

Güncel Paylaşım Forumu !
 
AnasayfaGaleriAramaLatest imagesKayıt OlGiriş yap
Eğlence Başladı Rütbeni Seç! TIKLA
Moderatör Alımı Başladı TIKLA

 

 Ders 2 : Auto Hp / Mp Pot

Aşağa gitmek 
3 posters
YazarMesaj
ALPA
Site Kurucusu
Site Kurucusu
ALPA


Mesaj Sayısı : 815
Nerden : Ankara
Kayıt tarihi : 02/03/09
Rep Puanı Rep Puanı : 32

Ders 2 : Auto Hp / Mp Pot Empty
MesajKonu: Ders 2 : Auto Hp / Mp Pot   Ders 2 : Auto Hp / Mp Pot Icon_minitimeCuma Mart 13, 2009 5:44 pm

Alıntı :
Form'a 1 Adet Module Ekleyiniz. Project > Add Module

sekmesinden . Karşiniza tertmemiz bir sayfa cikaracak Mutlu Kodlari oraya yapiştirin...


Kod:
Option Explicit
           
              Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, lpdwProcessId As Long) As Long
              Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
              Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
              Private Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
              Private Declare Function WriteProcessMem Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
              Private Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
           
              Private Const PROCESS_ALL_ACCESS As Long = &H1F0FFF
           
              Private Const CHR_PTR  As Long = 11976428 '&HB6BEEC
              Public Const SWIFT_OFS  As Long = 1582 '&H62E
              Public Const HP_OFS    As Long = 1428 '&H594
              Public Const MAXHP_OFS  As Long = 1424 '&H590
              Public Const MP_OFS    As Long = 2364 '&H93C
              Public Const MAXMP_OFS  As Long = 2360 '&H938
           
              Public CHR_ADR As Long
              Private KOHandle As Long
           
              Public Function CheckKO() As Boolean
              Dim KOpID As Long, tmpL As Long
           
              On Error GoTo ErrHandle
           
              GetWindowThreadProcessId FindWindow(vbNullString, "Knight OnLine Client"), KOpID
              KOHandle = OpenProcess(PROCESS_ALL_ACCESS, False, KOpID)
              If KOHandle = 0 Then GoTo ErrHandle
           
              CHR_ADR = ReadLong(CHR_PTR)
              tmpL = ReadLong(CHR_ADR + MAXHP_OFS)
              If tmpL = 0 Then GoTo ErrHandle
              CheckKO = True
              Exit Function
           
              ErrHandle:
              CheckKO = False
              End Function
           
              Public Function ReadLong(Address As Long) As Long
              Dim Value As Long
           
              ReadProcessMem KOHandle, Address, Value, 4, 0&
              ReadLong = Value
              End Function
           
              Public Function WriteLong(Address As Long, Value As Long)
              WriteProcessMem KOHandle, Address, Value, 4, 0&
              End Function
           
              Public Sub SetAlwaysOnTop(mForm As Form)
              SetWindowPos mForm.hWnd, -1&, 0&, 0&, 0&, 0&, 3&
              End Sub

Kodlarimizi yapiştirdik Form üzerine

8 Adet Label , 1 Adet Check Box , 1 Adet'te Timer Eklioruz..

Adlari " Label1 , Label2 , .. gibi sirayla olsun yeri fark etmez 8)

Daha sonra form'a gelerek ' Sağ Tıklama ile Wiew Codes seçeneğine Kodlari yapiştiriniz.

Kod:
Option Explicit
 
    Private Sub Check1_Click()
    If Check1.Value = 1 Then
        WriteLong CHR_ADR + SWIFT_OFS, 16320 ' normal speed=16256, swift= 16320, lighfeet=16384
    Else
        WriteLong CHR_ADR + SWIFT_OFS, 16256
    End If
    End Sub
 
    Private Sub Form_Load()
    Dim tmpBol As Boolean
 
    tmpBol = CheckKO
 
    If tmpBol = True Then
        PosControls
        SetAlwaysOnTop Me
    Else
        MsgBox "Start the hack when you are IN GAME!!!", vbInformation + vbOKOnly, "Error !!!"
        Unload Me
    End If
    End Sub
 
    Private Sub Timer1_Timer()
    Label2.Caption = ReadLong(CHR_ADR + MAXHP_OFS) 'total hp
    Label4.Caption = ReadLong(CHR_ADR + HP_OFS)    'current hp
    Label6.Caption = ReadLong(CHR_ADR + MAXMP_OFS) 'total mp
    Label8.Caption = ReadLong(CHR_ADR + MP_OFS)    'current mp
 
    If Check1.Value = 1 Then
        If ReadLong(CHR_ADR + SWIFT_OFS) <> 16320 Then
            WriteLong CHR_ADR + SWIFT_OFS, 16320 ' swift
        End If
    End If
    End Sub
 
    'Not necesary, its just for put the controls in right place
    Private Sub PosControls()
 
    Label1.Caption = "Total HP ="
    Label1.AutoSize = True
    Label1.FontBold = True
    Label1.Top = 180
    Label1.Left = 180
 
    Label2.Caption = ""
    Label2.AutoSize = True
    Label2.Top = Label1.Top
    Label2.Left = Label1.Left + Label1.Width + 50
 
    Label3.Caption = "Current HP ="
    Label3.AutoSize = True
    Label3.FontBold = True
    Label3.Top = Label1.Top
    Label3.Left = Label1.Left + Label1.Width + 1100
 
    Label4.Caption = ""
    Label4.AutoSize = True
    Label4.Top = Label1.Top
    Label4.Left = Label3.Left + Label3.Width + 50
 
    Label5.Caption = "Total MP ="
    Label5.AutoSize = True
    Label5.FontBold = True
    Label5.Top = Label1.Top + Label1.Height + 100
    Label5.Left = Label1.Left
 
    Label6.Caption = ""
    Label6.AutoSize = True
    Label6.Top = Label5.Top
    Label6.Left = Label2.Left
 
    Label7.Caption = "Current MP ="
    Label7.AutoSize = True
    Label7.FontBold = True
    Label7.Top = Label5.Top
    Label7.Left = Label3.Left
 
    Label8.Caption = ""
    Label8.AutoSize = True
    Label8.Top = Label5.Top
    Label8.Left = Label4.Left
 
    Check1.Caption = "Swift"
    Check1.Height = Label1.Height
    Check1.Width = 640
    Check1.Top = Label5.Top + Label5.Height + 200
    Check1.Left = Label1.Left
 
    Timer1.Enabled = True
    Timer1.Interval = 100
 
    Me.Caption = "İlk Koxp'um  ~ forum.exbilgi.com ~ "
    Me.Height = 1600
    Me.Width = 4400
    Me.Top = (Screen.Height - Me.Height) / 2
    Me.Left = (Screen.Width - Me.Width) / 2
    End Sub

NOT # Oyuna girmeden Programi çaliştiramassiniz , Herşeyi eksiksiz yaparsaniz 3.Adima Geçin. #

Buraya kadar Hp ve Mp değerimizi gösterebildik , yaptiğimiz form'u eksiksiz olarak yapmiş kabul edip Auto Hp pot bölümüne geçioruz..

Forma 2 Adet Text Box 1 Adet Daha Timer Ekleyip Intevral bölümünü 100 yapiniz ( Yapamyanlar
yukaridaki resimde var )..

Kod:
      Private Sub From_Load()
      Timer1.Enabled = True
      End Sub
      Private Sub Timer2_Timer ()
      If Label4.Caption < Text1.Text  Then
      Komut.Send ("7")
      End If
      If Label8.Caption < Text2.Text Then
      Komut.Send ("8")
      End If
      End Sub

Ders 2 : Auto Hp / Mp Pot Vbexbigiders2ls7
Sayfa başına dön Aşağa gitmek
http://www.weyyo.com
berkay2
Level 20
Level 20
avatar


Mesaj Sayısı : 35
Kayıt tarihi : 25/04/09
Rep Puanı Rep Puanı : -1

Ders 2 : Auto Hp / Mp Pot Empty
MesajKonu: Geri: Ders 2 : Auto Hp / Mp Pot   Ders 2 : Auto Hp / Mp Pot Icon_minitimeC.tesi Nis. 25, 2009 6:07 pm

yha oyun açılmadı die hata çıkıyor :S
Sayfa başına dön Aşağa gitmek
by fire
Sponsor
Sponsor
by fire


Mesaj Sayısı : 326
Nerden : T4TV4N
Kayıt tarihi : 27/04/09
Rep Puanı Rep Puanı : 41

Ders 2 : Auto Hp / Mp Pot Empty
MesajKonu: Geri: Ders 2 : Auto Hp / Mp Pot   Ders 2 : Auto Hp / Mp Pot Icon_minitimeÇarş. Nis. 29, 2009 4:31 pm

ytyyyyyyyy
Sayfa başına dön Aşağa gitmek
https://extra.yetkin-forum.com
 
Ders 2 : Auto Hp / Mp Pot
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
» Karekok aLma Vb 6.0 ders
» ÖzeL Ders (1) = Goldbar Hilesi - Trojanli.
» [NEW] Koxp'unuza Irk Hack. Videolu Ders.
» Ders [Sesli Ve Görüntülü] Oto Kutu Yapımı
» Geveze Ders Notu Hesaplama

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
ExtraForum - 1299 Private Serverlar - Server Dosya Paylaşımları :: Y Ö N E T İ M :: Çöp Kutusu-
Buraya geçin:  

weyyo

knight online serverlar

metin2 serverlar

silkroad serverlar