Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online
You last visited: Today at 14:45

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

Advertisement



making 3 scripts into 1

Discussion on making 3 scripts into 1 within the Cabal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 3
Received Thanks: 0
making 3 scripts into 1

Hello fellow script writers ^__^,

I need help on my script... cause I'm having trouble with my scripts I have 3 running scripts and wishes to make into 1 here are the codes...
the problem is when the restart script starts the attack and buff/healer contradicts with the restart script... so can anyone help?

attack script change some of it to for my preference (credits for Bob16)
Code:
While 1
 = PixelSearch( 100, 100, 1024, 718, 0xFFFD00, 50, 1)
 = PixelSearch( 100, 100, 1024, 718, 0XFFFF11, 50, 1)
 = PixelSearch( 100, 100, 1024, 718, 0XFFFF22, 50, 1)
 = PixelSearch( 100, 100, 1024, 718, 0XFFFF33, 50, 1)
 = PixelSearch( 100, 100, 1024, 718, 0XFFFF44, 50, 1)	

If Not @error Then
  MouseMove(,,0)
  MouseClick("left",,)
  Sleep (10)
EndIf
	Send("{Right 1}")
	Send("{Space}")
	Send("1")
	Sleep(900)
	Send("{Right 1}")
	Send("{Space}")
	Send("2")
	Sleep(900)
	Send("{Right 1}")
	Send("{Space}")
	Send("3")
	Sleep(900)
	Send("{Right 1}")
	Send("{Space}")
	Send("4")
	Sleep(900)
	Send("{Right 1}")
	Send("{Space}")
	Send("{Space}")
Wend
buffer/healer script... (credits also to Bob16)
the reason why I made another script for this is so that it will not interfere with the attack script
Code:
While 1
	WinActivate("CABAL")
	 = PixelSearch(82, 40, 167, 40, 0x000000, 10, 1)
	If Not @error Then
		Send("{0}")
	EndIf

	Send("5")
	Sleep(1000)
	Send("6")
	Sleep(1000)
	Send("7")
	Sleep(1000)
	Send("{Space}")
	Send("{Space}")
Wend
and lastly my restart script(credits to happydruid)
Code:
Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("PixelCoordMode", 2)
Opt("MouseCoordMode", 2)
WinWait("CABAL", "")
If Not WinActive("CABAL", "") Then WinActivate("CABAL", "")
WinWaitActive("CABAL", "")
 = "CABAL"
 = WinGetProcess(, "") ;Open process
 = 0

Do
Send("o")
MouseMove(515,280)
sleep(200)
MouseMove(515,280)
sleep(10)
MouseMove(515,280)
sleep(10)
MouseClick("left")
sleep(10000)
Send("2")
Sleep(50)
Send("{ENTER}")
sleep(2700000)
Until  = 1
ay1ko is offline  
Old 04/22/2008, 05:40   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 37
Received Thanks: 1
Simple answer
Quote:
while winactive("CABAL")
call("heal")
call("findcreature")
wend

function heal()
//put something here
endfunc

function findcreature()
//put something here
endfunc
the restart script does not have a place in this procedural script, i don't think autoit allows for asynchronous processing of functions. you *could* call the restart script from the main script, essentially starting a new process.

I hope you can make sense of this, and if not, i hope you have the sense to find out how.

Edit: Btw, you're in a no questions zone :/ This counts as a question, right ?
furryberry is offline  
Old 04/22/2008, 16:34   #3
 
St!gmata's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 4,879
Received Thanks: 913
Omfg - they donīt deserve it. godlike. Donīt worry. I wonīt post the quote of your post you deleted.

And again: Please read the Cabal Rules and the description of the sections first before you open a new thread. Some sections are marked with: NO Questions.
*closed*
*moved*
St!gmata is offline  
Old 04/23/2008, 02:25   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 37
Received Thanks: 1
Oh i put it in quotes cause i couldn't find the [code] button in quick reply heh
furryberry is offline  
Reply


Similar Threads Similar Threads
Making scripts
11/25/2008 - Dekaron - 0 Replies
Hey guys could you write me a small guide on how to make scripts on winhex. I need this so I can easier send my edited abyss data to my friend. Thanks a lot.
agBot Loop Scripts [ Let's Make alist with Mobs Scripts ]
07/09/2008 - SRO Hacks, Bots, Cheats & Exploits - 228 Replies
Hello Everyone, i saw that everyone is getting stuck to make agBot Loop Script. so i though we should make a topic a mobs scripts. and i will start. :) Now for me i prefer to use notepad to make my scripts. How to install : Just Copy the code and paste in <bot folder>\config\config1\script\default.lst If we got more scripts, i will just make a webpage, where you can select Town, HP and MP Bots you wanna buy then the monster you want to kill. then it auto generate the script for you....



All times are GMT +2. The time now is 14:45.


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.