Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Mabinogi
You last visited: Today at 07:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Fossil restoration Macro :3 (scripts available too)

Discussion on Fossil restoration Macro :3 (scripts available too) within the Mabinogi forum part of the MMORPGs category.

Reply
 
Old 10/17/2009, 06:01   #61
 
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
Quote:
Originally Posted by LtGeneral Andrew View Post
If i cant get that can you at least tell me how to hook AutoIT to mabi so i can use hotkeys?
What exactly do you mean?
Dark Raccoon is offline  
Old 10/17/2009, 06:16   #62
 
elite*gold: 0
Join Date: Sep 2009
Posts: 83
Received Thanks: 0
I cant run AutoIT hotkeys in Mabi.

I tried using the hotkeys in the code below but mabi overrides the hotkey sets so i cant run the program im game.
I also tried adding a hook but i cant understand script language that well D:

Code:
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage")  ;Shift-Alt-d
HotKeySet ( "^1" , "Star" )
;;;; Body of program would go here ;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMessage()
    MsgBox(4096,"","This is a message.")
EndFunc

Func Star()

	Global $x = 112, $y = 0

    ; ... can do stuff here
MouseMove((301-$x),(189-$y),3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove((296-$x),(251-$y),3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(297-$x,259-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(298-$x,263-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(307-$x,269-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(313-$x,272-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(319-$x,275-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(327-$x,281-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(331-$x,289-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(334-$x,297-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(330-$x,314-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(321-$x,323-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(310-$x,327-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(297-$x,332-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(290-$x,335-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(288-$x,346-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(286-$x,354-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(292-$x,227-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(285-$x,218-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(274-$x,214-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(260-$x,216-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(253-$x,220-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(245-$x,227-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(233-$x,237-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(223-$x,234-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(215-$x,231-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(203-$x,229-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(190-$x,230-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(182-$x,237-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(178-$x,244-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(178-$x,252-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(180-$x,264-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(185-$x,275-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(188-$x,284-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(188-$x,286-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(180-$x,294-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(174-$x,304-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(169-$x,310-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(166-$x,326-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(170-$x,339-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(179-$x,345-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(189-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(194-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(204-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(215-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(223-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(229-$x,358-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(237-$x,370-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(239-$x,373-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(249-$x,383-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(266-$x,385-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(278-$x,378-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(281-$x,369-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(295-$x,239-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(340-$x,213-$y,3)
Sleep(20)
MouseDown('left')
Sleep(25)
MouseMove(340-$x,395-$y,3)
Sleep(20)
MouseMove(160-$x,397-$y,3)
Sleep(20)
MouseMove(162-$x,214-$y,3)
Sleep(20)
MouseMove(338-$x,214-$y,3)
Sleep(20)
MouseUp('left')
Sleep(25)
MouseMove(320-$x,328-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(320-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(298-$x,335-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(297-$x,385-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(218-$x,351-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(219-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(191-$x,349-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(189-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(301-$x,230-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(300-$x,261-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(325-$x,222-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(327-$x,271-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
 

EndFunc
LtGeneral Andrew is offline  
Old 10/17/2009, 06:20   #63
 
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
Quote:
Originally Posted by LtGeneral Andrew View Post
I cant run AutoIT hotkeys in Mabi.

I tried using the hotkeys in the code below but mabi overrides the hotkey sets so i cant run the program im game.
I also tried adding a hook but i cant understand script language that well D:

Code:
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage")  ;Shift-Alt-d
HotKeySet ( "^1" , "Star" )
;;;; Body of program would go here ;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMessage()
    MsgBox(4096,"","This is a message.")
EndFunc

Func Star()

	Global $x = 112, $y = 0

    ; ... can do stuff here
MouseMove((301-$x),(189-$y),3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove((296-$x),(251-$y),3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(297-$x,259-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(298-$x,263-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(307-$x,269-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(313-$x,272-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(319-$x,275-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(327-$x,281-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(331-$x,289-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(334-$x,297-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(330-$x,314-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(321-$x,323-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(310-$x,327-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(297-$x,332-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(290-$x,335-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(288-$x,346-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(286-$x,354-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(292-$x,227-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(285-$x,218-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(274-$x,214-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(260-$x,216-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(253-$x,220-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(245-$x,227-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(233-$x,237-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(223-$x,234-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(215-$x,231-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(203-$x,229-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(190-$x,230-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(182-$x,237-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(178-$x,244-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(178-$x,252-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(180-$x,264-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(185-$x,275-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(188-$x,284-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(188-$x,286-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(180-$x,294-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(174-$x,304-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(169-$x,310-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(166-$x,326-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(170-$x,339-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(179-$x,345-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(189-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(194-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(204-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(215-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(223-$x,349-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(229-$x,358-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(237-$x,370-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(239-$x,373-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(249-$x,383-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(266-$x,385-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(278-$x,378-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(281-$x,369-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(295-$x,239-$y,3)
Sleep(15)
MouseClick("left")
Sleep(15)
MouseMove(340-$x,213-$y,3)
Sleep(20)
MouseDown('left')
Sleep(25)
MouseMove(340-$x,395-$y,3)
Sleep(20)
MouseMove(160-$x,397-$y,3)
Sleep(20)
MouseMove(162-$x,214-$y,3)
Sleep(20)
MouseMove(338-$x,214-$y,3)
Sleep(20)
MouseUp('left')
Sleep(25)
MouseMove(320-$x,328-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(320-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(298-$x,335-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(297-$x,385-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(218-$x,351-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(219-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(191-$x,349-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(189-$x,382-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(301-$x,230-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(300-$x,261-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
MouseMove(325-$x,222-$y,3)
Sleep(20)
MouseDown('left')
Sleep(20)
MouseMove(327-$x,271-$y,3)
Sleep(20)
MouseUp('left')
Sleep(20)
 

EndFunc
Oh you mean this Command?:

Code:
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage")  ;Shift-Alt-d
HotKeySet ( "^1" , "Star" )
If thats the case, then I cant help you, sorry.

When you, for example, press F5, the Command goes towards Mabi, not towards the Bot.
Dark Raccoon is offline  
Old 10/17/2009, 11:01   #64
 
Makimaru's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 5
Received Thanks: 0
Andrew if you have Windows Vista, make sure right click on the icon and select "Run as Adminstrator". I don't know why but it works for me.

Oh and make sure you Complie your script by right clicking on the icon, then run it as admin. See if that should work.
Makimaru is offline  
Old 10/17/2009, 15:31   #65
 
elite*gold: 0
Join Date: Sep 2009
Posts: 83
Received Thanks: 0
Yeah i dont think you can run it using XP. Mabi overrides the HotKeySet function in AutoIt.
Ive tried using a keyboard hook but i dont really know the scripting language well.

Below is the base i tried using for my hook but i cant get the keys to process right ><. This would be so much easier if it was in C++ or Java....

Code:
#include <WinAPI.au3>
#include <WindowsConstants.au3>

Global Const $WH_CALLWNDPROC     = 4
Global Const $WH_CALLWNDPROCRET  = 12
Global Const $WH_CBT             = 5
Global Const $WH_DEBUG           = 9
Global Const $WH_FOREGROUNDIDLE  = 11
Global Const $WH_GETMESSAGE      = 3
Global Const $WH_JOURNALPLAYBACK = 1
Global Const $WH_JOURNALRECORD   = 0
Global Const $WH_KEYBOARD        = 2
Global Const $WH_KEYBOARD_LL     = 13
Global Const $WH_MOUSE           = 7
Global Const $WH_MOUSE_LL        = 14
Global Const $WH_MSGFILTER       = -1
Global Const $WH_SHELL           = 10
Global Const $WH_SYSMSGFILTER    = 6

Global Const $KF_EXTENDED    = 0x100
Global Const $KF_ALTDOWN     = 0x2000
Global Const $KF_UP          = 0x8000
Global Const $LLKHF_EXTENDED = BitShift($KF_EXTENDED, 8)
Global Const $LLKHF_INJECTED = 0x10
Global Const $LLKHF_ALTDOWN  = BitShift($KF_ALTDOWN, 8)
Global Const $LLKHF_UP       = BitShift($KF_UP, 8)

; #STRUCTURE# ===================================================================================================================
; Name...........: $tagKBDLLHOOKSTRUCT
; Description ...: Contains information about a low-level keyboard input event
; Fields ........: vkCode               - Specifies a virtual-key code. The code must be a value in the range 1 to 254
;                  scanCode             - Specifies a hardware scan code for the key
;                  flags                - Specifies the extended-key flag, event-injected flag, context code, and transition-state flag. This member is specified as follows.
;                  +  An application can use the following values to test the keystroke flags:
;                  |$LLKHF_EXTENDED     - Test the extended-key flag
;                  |$LLKHF_INJECTED     - Test the event-injected flag
;                  |$LLKHF_ALTDOWN      - Test the context code
;                  |$LLKHF_UP           - Test the transition-state flag
;                  |  0      - Specifies whether the key is an extended key, such as a function key or a key on the numeric keypad
;                  |    The value is 1 if the key is an extended key; otherwise, it is 0
;                  |  1 to 3 - Reserved
;                  |  4      - Specifies whether the event was injected. The value is 1 if the event was injected; otherwise, it is 0
;                  |  5      - Specifies the context code. The value is 1 if the ALT key is pressed; otherwise, it is 0
;                  |  6      - Reserved
;                  |  7      - Specifies the transition state. The value is 0 if the key is pressed and 1 if it is being released
;                  time                 - Specifies the time stamp for this message, equivalent to what GetMessageTime would return for this message
;                  dwExtraInfo          - Specifies extra information associated with the message
; Author ........: Gary Frost (gafrost)
; Remarks .......:
; ===============================================================================================================================
Global Const $tagKBDLLHOOKSTRUCT = "dword vkCode;dword scanCode;dword flags;dword time;ulong_ptr dwExtraInfo"

Global $hHook
Global $hStub_KeyProc = DllCallbackRegister("_KeyProc", "long", "int;wparam;lparam")
Global $hmod = _WinAPI_GetModuleHandle(0)
Global $hHook = _WinAPI_SetWindowsHookEx($WH_KEYBOARD_LL, DllCallbackGetPtr($hStub_KeyProc), $hmod)
Global $buffer = ""

MsgBox(4096, "", "Click OK, then open notepad and type..." & _
        @LF & @LF & "Jon" & @LF & "AutoIt")


While 1
    Sleep(10)
WEnd

Func EvaluateKey($keycode)
    If (($keycode > 64) And ($keycode < 91)) _ ; A - Z
            Or (($keycode > 47) And ($keycode < 58)) Then ; 0 - 9
        $buffer &= Chr($keycode)
        Switch $buffer
            Case "Jon"
                ToolTip("What can you say?")
            Case "AUTOIT"
                ToolTip("AutoIt Rocks")
        EndSwitch
    ElseIf ($keycode > 159) And ($keycode < 164) Then
        Return
    ElseIf ($keycode = 27) Then ; esc key
        Exit
    Else
        $buffer = ""
    EndIf
EndFunc   ;==>EvaluateKey

;===========================================================
; callback function
;===========================================================
Func _KeyProc($nCode, $wParam, $lParam)
    Local $tKEYHOOKS
    $tKEYHOOKS = DllStructCreate($tagKBDLLHOOKSTRUCT, $lParam)
    If $nCode < 0 Then
        Return _WinAPI_CallNextHookEx($hHook, $nCode, $wParam, $lParam)
    EndIf
    If $wParam = $WM_KEYDOWN Then
        EvaluateKey(DllStructGetData($tKEYHOOKS, "vkCode"))
    Else
        Local $flags = DllStructGetData($tKEYHOOKS, "flags")
        Switch $flags
            Case $LLKHF_ALTDOWN
                ConsoleWrite("$LLKHF_ALTDOWN" & @LF)
            Case $LLKHF_EXTENDED
                ConsoleWrite("$LLKHF_EXTENDED" & @LF)
            Case $LLKHF_INJECTED
                ConsoleWrite("$LLKHF_INJECTED" & @LF)
            Case $LLKHF_UP
                ConsoleWrite("$LLKHF_UP: scanCode - " & DllStructGetData($tKEYHOOKS, "scanCode") & @TAB & "vkCode - " & DllStructGetData($tKEYHOOKS, "vkCode") & @LF)
        EndSwitch
    EndIf
    Return _WinAPI_CallNextHookEx($hHook, $nCode, $wParam, $lParam)
EndFunc   ;==>_KeyProc

Func OnAutoItExit()
    _WinAPI_UnhookWindowsHookEx($hHook)
    DllCallbackFree($hStub_KeyProc)
EndFunc   ;==>OnAutoItExit

; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_UnhookWindowsHookEx
; Description ...: Removes a hook procedure installed in a hook chain by the _WinAPI_SetWindowsHookEx function
; Syntax.........: _WinAPI_UnhookWindowsHookEx($hhk)
; Parameters ....: $hhk - Handle to the hook to be removed
; Return values .: Success      - True
;                  Failure      - False
; Author ........: Gary Frost
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........; @@MsdnLink@@ UnhookWindowsHookEx
; Example .......;
; ===============================================================================================================================
Func _WinAPI_UnhookWindowsHookEx($hhk)
    Local $iResult = DllCall("user32.dll", "int", "UnhookWindowsHookEx", "hwnd", $hhk)
    If @error Then Return SetError(@error, @extended, 0)
    Return $iResult[0] <> 0
EndFunc   ;==>_WinAPI_UnhookWindowsHookEx

; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_CallNextHookEx
; Description ...: Passes the hook information to the next hook procedure in the current hook chain
; Syntax.........: _WinAPI_CallNextHookEx($hhk, $iCode, $wParam, $lParam)
; Parameters ....: $hhk - Windows 95/98/ME: Handle to the current hook. An application receives this handle as a result of a previous call to the _WinAPI_SetWindowsHookEx function.
;                  |Windows NT/XP/2003: Ignored
;                  $iCode - Specifies the hook code passed to the current hook procedure. The next hook procedure uses this code to determine how to process the hook information
;                  $wParam  - Specifies the wParam value passed to the current hook procedure.
;                  |The meaning of this parameter depends on the type of hook associated with the current hook chain
;                  $lParam - Specifies the lParam value passed to the current hook procedure.
;                  |The meaning of this parameter depends on the type of hook associated with the current hook chain
; Return values .: Success      - This value is returned by the next hook procedure in the chain
;                  Failure      - -1 and @error is set
; Author ........: Gary Frost
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........; @@MsdnLink@@ CallNextHookEx
; Example .......;
; ===============================================================================================================================
Func _WinAPI_CallNextHookEx($hhk, $iCode, $wParam, $lParam)
    Local $iResult = DllCall("user32.dll", "long", "CallNextHookEx", "hwnd", $hhk, "int", $iCode, "wparam", $wParam, "lparam", $lParam)
    If @error Then Return SetError(@error, @extended, -1)
    Return $iResult[0]
EndFunc   ;==>_WinAPI_CallNextHookEx

; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_SetWindowsHookEx
; Description ...: Installs an application-defined hook procedure into a hook chain
; Syntax.........: _WinAPI_SetWindowsHookEx($idHook, $lpfn, $hmod[, $dwThreadId = 0])
; Parameters ....: $idHook  - Specifies the type of hook procedure to be installed. This parameter can be one of the following values:
;                  |$WH_CALLWNDPROC     - Installs a hook procedure that monitors messages before the system sends them to the destination window procedure
;                  |$WH_CALLWNDPROCRET  - Installs a hook procedure that monitors messages after they have been processed by the destination window procedure
;                  |$WH_CBT             - Installs a hook procedure that receives notifications useful to a computer-based training (CBT) application
;                  |$WH_DEBUG           - Installs a hook procedure useful for debugging other hook procedures
;                  |$WH_FOREGROUNDIDLE  - Installs a hook procedure that will be called when the application's foreground thread is about to become idle
;                  |$WH_GETMESSAGE      - Installs a hook procedure that monitors messages posted to a message queue
;                  |$WH_JOURNALPLAYBACK - Installs a hook procedure that posts messages previously recorded by a $WH_JOURNALRECORD hook procedure
;                  |$WH_JOURNALRECORD   - Installs a hook procedure that records input messages posted to the system message queue
;                  |$WH_KEYBOARD        - Installs a hook procedure that monitors keystroke messages
;                  |$WH_KEYBOARD_LL     - Windows NT/2000/XP: Installs a hook procedure that monitors low-level mouse input events
;                  |$WH_MOUSE           - Installs a hook procedure that monitors mouse messages
;                  |$WH_MOUSE_LL        - Windows NT/2000/XP: Installs a hook procedure that monitors low-level mouse input events
;                  |$WH_MSGFILTER       - Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar
;                  |$WH_SHELL           - Installs a hook procedure that receives notifications useful to shell applications
;                  |$WH_SYSMSGFILTER    - Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar
;                  $lpfn  - Pointer to the hook procedure. If the $dwThreadId parameter is zero or specifies the identifier of a thread created by a different process,
;                  + the $lpfn parameter must point to a hook procedure in a DLL.
;                  |Otherwise, $lpfn can point to a hook procedure in the code associated with the current process
;                  $hmod  - Handle to the DLL containing the hook procedure pointed to by the $lpfn parameter.
;                  |The $hMod parameter must be set to NULL if the $dwThreadId parameter specifies a thread created by the current process and if the hook procedure is within the
;                  + code associated with the current process
;                  $dwThreadId - Specifies the identifier of the thread with which the hook procedure is to be associated.
;                  |If this parameter is zero, the hook procedure is associated with all existing threads running in the same desktop as the calling thread
; Return values .: Success      - Handle to the hook procedure
;                  Failure      - 0 and @error is set
; Author ........: Gary Frost
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........; @@MsdnLink@@ SetWindowsHookEx
; Example .......;
; ===============================================================================================================================
Func _WinAPI_SetWindowsHookEx($idHook, $lpfn, $hmod, $dwThreadId = 0)
    Local $hwndHook = DllCall("user32.dll", "hwnd", "SetWindowsHookEx", "int", $idHook, "ptr", $lpfn, "hwnd", $hmod, "dword", $dwThreadId)
    If @error Then Return SetError(@error, @extended, 0)
    Return $hwndHook[0]
EndFunc   ;==>_WinAPI_SetWindowsHookEx
LtGeneral Andrew is offline  
Old 10/17/2009, 18:25   #66
 
elite*gold: 0
Join Date: Oct 2009
Posts: 53
Received Thanks: 0
Hey cant we make it liek the tailoring and blacksmithing mods,that make it easier?
It pretakes out all dirts to you see where you need to go over.
since the macros dont get all the dirt i thoughh it would be easier to have a pure black background instead of dirt ya know?
Then when we start the macro it just turns to white or something.

Just a thought.
princealtiar is offline  
Old 10/17/2009, 19:10   #67
 
elite*gold: 0
Join Date: Sep 2009
Posts: 83
Received Thanks: 0
Got it to work wooo! lol
LtGeneral Andrew is offline  
Old 10/17/2009, 19:23   #68
 
rawk0r's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 207
Received Thanks: 103
Quote:
Originally Posted by princealtiar View Post
Hey cant we make it liek the tailoring and blacksmithing mods,that make it easier?
It pretakes out all dirts to you see where you need to go over.
since the macros dont get all the dirt i thoughh it would be easier to have a pure black background instead of dirt ya know?
Then when we start the macro it just turns to white or something.

Just a thought.
This is a decent idea, I thought about. The problem is that the images for the fossils are not stored client side (Or if they are, I have yet to find them). So that poses a problem in this method.
rawk0r is offline  
Old 10/17/2009, 19:26   #69
 
elite*gold: 0
Join Date: Oct 2009
Posts: 53
Received Thanks: 0
So the blacksmith and tailor minigames are clinet sided?
princealtiar is offline  
Old 10/17/2009, 19:29   #70
 
rawk0r's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 207
Received Thanks: 103
Quote:
Originally Posted by princealtiar View Post
So the blacksmith and tailor minigames are clinet sided?
The images for them are, and all the data is as well (That is how TwinTail works, it modifies the packet that is sent tot he server). You open the minigame, do your thing, then once finished, it sends the data, and waits for a response (That is why there is a certain amount of time for the skill to finish).
rawk0r is offline  
Old 10/17/2009, 19:33   #71
 
elite*gold: 0
Join Date: Oct 2009
Posts: 53
Received Thanks: 0
I see...

So then the fossil images or either hidden good or straight up server sided?
princealtiar is offline  
Old 10/17/2009, 19:38   #72
 
rawk0r's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 207
Received Thanks: 103
Quote:
Originally Posted by princealtiar View Post
I see...

So then the fossil images or either hidden good or straight up server sided?
Indeed they are. I am sure someone could come up with something like TwinTail for fossils, since they are on a scale-based finish system like tailoring and blacksmithing.
rawk0r is offline  
Old 10/17/2009, 19:41   #73
 
elite*gold: 0
Join Date: Oct 2009
Posts: 53
Received Thanks: 0
Alright..

would be good to have

offtopic: Using the macro has anyone gotten a lava cat robe?
Or a perfect restortion for that matter?
princealtiar is offline  
Old 10/17/2009, 19:42   #74
 
rawk0r's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 207
Received Thanks: 103
Quote:
Originally Posted by princealtiar View Post
Alright..

would be good to have

offtopic: Using the macro has anyone gotten a lava cat robe?
Or a perfect restortion for that matter?
You would have to write your own, the macros listed thus far, at BEST gave 95 quality. I have no idea what is required for the Lava Cat Robe, as I have been collection Shooting Star Robes.
rawk0r is offline  
Old 10/17/2009, 19:45   #75
 
elite*gold: 0
Join Date: Oct 2009
Posts: 53
Received Thanks: 0
im fixing up the skull macro abit.
it gives no red,but after its done running i gotta go over the left of the facee.
princealtiar is offline  
Reply


Similar Threads Similar Threads
[Release] Fossil Restoration Macro
04/24/2010 - Mabinogi Hacks, Bots, Cheats & Exploits - 370 Replies
This macro is from Lemu.Faucet, and was not created by me (Check the credits). Since it seems a lot of people don't visit that forum often, I am going to post it here (I will update this post as they do). The direct link is: Fossil_Restoration_V9.5.rar Instructions are included. Credits Original post can be located here: Fossil Restoration V9.5 - Revival of Auto-Detect & Star Sped Original post is as follows:
mabinogi fossil restoration macro
04/07/2010 - Mabinogi - 1 Replies
im looking for some that has a working fossil macro. im on Tarlach server pm me im redfox976



All times are GMT +2. The time now is 07:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.