Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Mabinogi
You last visited: Today at 05:39

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

Advertisement



[python][help] macro

Discussion on [python][help] macro within the Mabinogi forum part of the MMORPGs category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 37
Received Thanks: 8
[python][help] macro

I wrote some bots, trouble is that I can't keep switching between autoitv3 or ahk and python anymore since my scripts are going to include packet manipulation/injection which is sensitive to time (it's not just flooding the same packet).

I'd like to change the mousepos, leftclick, and rightclick to write directly to mabi (really whatever works, I have the keyboard working), I'm under the impression that the mouse position I'm writing to sits in the center of the mabi screen and there's another mouse used by mabi. It'd be 100 times better if an assembly ninja could edit the correct mabi files to reference the mouse positions I'm writing to in the script below.


Code:
import sys, ctypes, time

i = 0

def mousepos(x,y):
    sleep( .5 )
    ctypes.windll.user32.SetCursorPos(x,y)
    
def leftclick():
    sleep( .2 )
    ctypes.windll.user32.mouse_event(0x00000002, 0, 0, 0, 0)
    sleep( .2 )
    ctypes.windll.user32.mouse_event(0x00000004, 0, 0, 0, 0)

def rightclick():
    sleep( .2 )
    ctypes.windll.user32.mouse_event(0x00000008, 0, 0, 0, 0)
    sleep( .2 )
    ctypes.windll.user32.mouse_event(0x00000010, 0, 0, 0, 0)

def sleep(v):
    time.sleep( v )
    
#### ~~~~~~~~~~ START MACRO ~~~~~~~~~
print "Start : %s" % time.ctime()
time.sleep( 5 )

while i <= 50:
    mousepos(113,44)
    mousepos(380,350)
    rightclick()
    mousepos(386,441) 
    leftclick()
    mousepos(455,482) 
    leftclick()
    mousepos(313,414)
    leftclick()    
    mousepos(380,375)
    rightclick()
    mousepos(384,507) 
    leftclick()
    mousepos(470,555)
    leftclick()
    mousepos(305,477)
    leftclick() 
    mousepos(380,400)
    rightclick()
    mousepos(466,523) 
    leftclick()
    mousepos(455,546) 
    leftclick()
    mousepos(251,410)
    leftclick()  
    sleep( 3 )
    

    i = i + 1

print "End : %s" % time.ctime()
I also tried using the win32api module instead of ctypes.

If your help proves useful, I'll give you a python packet injection script with hotkeys built in.
KevSmash is offline  
Old 02/21/2010, 19:42   #2
 
elite*gold: 0
Join Date: Jun 2008
Posts: 37
Received Thanks: 8
Used py2exe, compiled it and ran as administrator (it's because I was on vista) instead of running it from IDLE.

Problem solved.
KevSmash is offline  
Closed Thread


Similar Threads Similar Threads
Python
05/23/2010 - Metin2 Private Server - 4 Replies
Metin2 ist ja mit Python geschrieben worden. Ich würde es gerne erlernen und nach ein paar Monaten/Jahren Übung, ein Game schreiben...^ Was haltet ihr von Python? Lohnt es sich damit anzufangen, wenn man ein Game schreiben will? LG NedFlanders ;)
[Release]Macro Files for Macro Manager (AKA BOT)
02/16/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 16 Replies
@all FYI its not a cheat its just a macro file that enables you to run dungeon so you can do other choirs like mussicca said...!! Contents Mana Valley Dungeon Macro File Xenia Frontier Dungeon UP and LEFT (Remap Dungeon)Macro File Ignis Mountain Dungeon Macro File Orc Temple Dungeon Macro File
[Macro] Making an assist Macro
10/02/2008 - General Gaming Releases - 1 Replies
This will tell you how to make an assist macro in the Warhammer Online game. This is a very useful macro that can be used in very busy surroundings such as Realm vs Realms, Scanerios and Public Quest. Step 1: Click the WAR icon Step 2: Click Macros icon Step 3: Click an empty box icon Step 4: Give your macro a name such as "Assist" Step 5: Type the following command /assist charactername Step 6: Click No Icon set box Step 7: Select an icon of your liking Step 8: Click Save
Macro Express (Help with Macro at Basilisk)
08/29/2007 - Conquer Online 2 - 4 Replies
O.K guys, so i have made a few macro's using macro express before. Now that my archer is level 128, i started making waters to plvl at basilisk. Since plvling is so repetitive, i want to leave my archer on bot running in circles around the stack killing bask's. I tried to do this with SV record route macro, but the problem w/ SV is that it will stand in one spot until it kills all the monsters. Thats why i tried to make my own macro express so it just shoots and jumps to the next coord. ...



All times are GMT +2. The time now is 05:39.


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.