Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 18:33

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

Advertisement



AutoIt

Discussion on AutoIt within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
AutoIt

im tryin to get my understanding how scripting language works,

and ive tried writing something just to make it freeze the autopill number value (11 days etc)

and the error keeps showing:

Line-1
Error: unknown Function name



Ther Script is this:
#RequireAdmin
#Region ;**** CREATED BY emoHaxor ****
#AutoIt3Wrapper_Res_Comment=Autopot (Mayn Mem.)
#AutoIt3Wrapper_Res_Description=AUTOrandom (Mayn Mem.)
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0.0
#EndRegion ;**** CREATED BY emoHaxor ****
#include <Nomadmemory.au3>
#include <Array.au3>
#include <memory.au3>
WinWaitActive("TwelveSky2")

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

;ADRESSES!!!!
$ID = _MemoryOpen(ProcessExists("TwelveSky2.exe"))
$HPAddy = 0x00C85DDF
$HP = _MemoryRead($HPaddy, $ID)
$ChiAddy = 0x00C85DE7
$Chi = _MemoryRead($Chiaddy, $ID)
$pillnoAddy = 0x00C60754
$pillno = _MemoryRead($pillnoAddy, $ID)
$pillHPAddy = 0x00C60758
$pillHP = _MemoryRead($pillHPAddy, $ID)
$pillCHIAddy = 0x00C6075C
$pillCHI = _MemoryRead($pillCHIAddy, $ID)
$AttackSPDAddy = 0x00C85E03
$AttackSPD = _MemoryRead($AttackSPDAddy, $ID)
$MoveSPDAddy = 0x00C607FC
$MoveSPD = _MemoryRead($MoveSPDAddy, $ID)


;ATTEMPTED SCRIPT!!

Func PillnoFreeze()
SetPrivilege("SeDebugPrivilege", 1)
$ID = _MemoryOpen(ProcessExists("TwelveSky2.exe"))
_MemoryWrite($pillnoAddy, $ID, 15)
While 1
PillnoFreeze()
Wend
_MemoryClose($ID)

EndFunc ;==>PillnoFreeze

;INCLUDED SHIZZLE FOR ENDING AND PAUSING + IMPORTANCE LIST

While 1
HP()
Chi()
AOE()
WEnd

Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('AOE BOT "Paused"', 512, 15)
WEnd
ToolTip("")
EndFunc ;==>TogglePause



Func Terminate()
ToolTip('AOE BOT "Exiting"', 512, 15)
Sleep(1000)
ToolTip("")
Exit 0
EndFunc ;==>Terminate




[No credit taken by me for the content in this, all credit to the original source of some parts, just for my knowledge purposes only ty ^^]
emofishcake is offline  
Old 07/28/2009, 00:38   #2
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
your missing something like this

#include <Nomadmemory.au3>

not that one, but maybe a different one.

or

you have one of those lines in there that isn't required?

play around with it.


EDIT: just noticed there's alot of things wrong with your script. i can see you tried combining different scripts.
strikeraid is offline  
Thanks
1 User
Old 07/28/2009, 00:41   #3
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
cheers, yehh im fiddling about with it, got rid of 2 errors, just stuck on this one XD
u got any idea which files shud be included?
ill try putting in a few random ones and see where i get ^^
emofishcake is offline  
Old 07/28/2009, 00:46   #4
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
you see this part?

While 1
HP()
Chi()
AOE()
WEnd

that means its gonna repeat the HP() function then chi then aoe then restart back at hp.

problem is... you don't have any of those functions.

a function would look like

Func HP()
blah blah blah
endfunc

that error you're getting might be the least of your problems. haha.
strikeraid is offline  
Old 07/28/2009, 00:51   #5
 
elite*gold: 0
Join Date: May 2008
Posts: 18
Received Thanks: 1
I think ur script will raise another problem..
<--
Func PillnoFreeze()
SetPrivilege("SeDebugPrivilege", 1)
$ID = _MemoryOpen(ProcessExists("TwelveSky2.exe"))
_MemoryWrite($pillnoAddy, $ID, 15)
While 1
PillnoFreeze()
Wend
_MemoryClose($ID)

EndFunc ;==>PillnoFreeze
--->
This function can cause nested loop cause u call the function itself.
and for the error..
<--
While 1
HP()
Chi()
AOE()
WEnd
-->
I dont see any function named HP() Chi() or AOE().. maybe u r not give us the complete script. Only this i can comment.
marcoyang is offline  
Old 07/28/2009, 00:56   #6
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
haha i started learning scripting about 3hrs ago so im pretty new, but i realised the bit that strikeraid is talking about.
and:
Removed this:
While 1
HP()
Chi()
AOE()
WEnd


and replaced whith:
While 1
PillnoFreeze()
Wend

but now like marco pointed out ive got a some loop error, is there a way to tell the script to execute that function just once, and not loop?
emofishcake is offline  
Old 07/28/2009, 00:58   #7
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
while1
wend


anything between those loops.
strikeraid is offline  
Old 07/28/2009, 01:22   #8
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
i tried taking the autopill out of the loop commands
but then nothing happens, but if it is inside, it works for about 10 secs, then says looping passed its limit or something, is there anything to tell it to execute it once, im tryin to read up but nothing so far XD
emofishcake is offline  
Old 07/28/2009, 01:23   #9
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
so what are you trying to achieve with this anyways? autopill? or making a bot?

you can search up toggles but i'm not sure if thats what you're looking for.
strikeraid is offline  
Old 07/28/2009, 01:27   #10
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
lol well basicly im just trying to figure out how the scripting works.

my goal atm is to make a script so that when i launch my script once converted to exe, it will just make the autopill values change and freeze

same as if i were to manually use Cheat engine, and input the address then freeze the value.

so i want the script to do the same as what i would manually do on cheat engine to show the autopill on the bottom right of the screen. hope this makes sense XD
emofishcake is offline  
Old 07/28/2009, 01:30   #11
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,357
Received Thanks: 1,263
i'm doing the same as we speak. i'm not very good at coding (started 1week2days ago), but with my abilities i would say you'll need 3 different scripts. if anyone else has any ideas on making it 1 script. pm me. LOL. its going into that trainer you saw.
strikeraid is offline  
Old 07/28/2009, 01:35   #12
 
elite*gold: 0
Join Date: Dec 2008
Posts: 105
Received Thanks: 7
awesome =D gl with urs!! ill pm u if i get onto n e thing more ^^ i found a link with a bunch of commands for autoit if it helps:
emofishcake is offline  
Reply

Tags
12sky2, autoit, bot, script




All times are GMT +1. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.