Jump to content

I Don't Need Alot... Just That One Stupid Thing -.-


Recommended Posts

Hello everyone,

Im very new to this engine, and all i want you to do is, tell me how to replace the "goto" command from 2.x in 3.x ??

I'll post my source here if you could add it :( ??

--- starts here ---

;

; ---------------------------------------

; Angriff-Script

; www.Mafia1930.de - Firefox Version

; ---------------------------------------

;

; y <---------------------------------------------------- The point where i would like to jump to

$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")

WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")

Send("{F5}")

winWaitActive("Bestätigen")

Send("{ENTER}")

Send("^{TAB}")

Sleep(& $delay)

; x <-------------------------------------------- The Point where i want the script to jump to y

;

--- ends here ---

P.S. Don't wonder about the language, im German :)

Thank you very much, guys.

Edited by Corti
Link to comment
Share on other sites

maybe

;'--- starts here ---
;
; ---------------------------------------
; Angriff-Script
; www.Mafia1930.de - Firefox Version
; ---------------------------------------
;
; y <---------------------------------------------------- The point where i would like to jump to

While 1
    sleep(100); change sleep time accordingly
     my_function()
WEnd


Func my_function()
$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")
WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")
Send("{F5}")
winWaitActive("Bestätigen")
Send("{ENTER}")
Send("^{TAB}")
Sleep($delay)
EndFunc
; x <-------------------------------------------- The Point where i want the script to jump to y
;
;'--- ends here ---

you could also use HotKeySet()

to enter/exit/pause the script

8)

NEWHeader1.png

Link to comment
Share on other sites

Function !! :)

HotKeySet("{ESC}","_exit")

$delay = IniRead("settings.ini", "main", "delay", "Eintrag oder Datei nicht gefunden.")



while 1
 sleep($delay)
 _Angriff()
wend

Func _Angriff()
 WinWaitActive("MAFIA :: 1930 - Mozilla Firefox")
 Send("{F5}")
 winWaitActive("Bestätigen")
 Send("{ENTER}")
 Send("^{TAB}")
EndFunc

Func _exit()
 exit   
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...