Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 07:22

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

Advertisement



Need help with script

Discussion on Need help with script within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
Question Need help with script

Okay, let me first try to explain what im planning to do:
In PvP its pretty useful to switch between different Weapon Sets (i.e. 40/40, Def-Set, Prot, Heal, vs. Fire etc.)
Now what im trying to do is making makros for each of my Keyboard-Numbers using specific Skills.

This is what i did so far:

Code:
HotKeySet("{1}","Rejuvenation")

while 1
	sleep(20)
WEnd

func Rejuvenation()
	Send("{F4}")
	sleep(20)
	Send("{1}")
	sleep(20)
	Send("{F2}")
EndFunc
So when i press "1" it should instead press F4 (my 40/40 Set), then press 1 to actually cast my skill, then finally switch back to F2 (my Def-Set). Somehow it seems to loop. Id appreciate if you could help me out. Im sure you guys can manage this.
sb0t is offline  
Old 08/23/2009, 15:13   #2
 
Rosemarie Lein's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 388
Received Thanks: 113
Code:
HotKeySet("{1}","Rejuvenation")

while 1
	sleep(20)
WEnd

func Rejuvenation()
	Send("{F4}")
	sleep(20)
	Send("{1}")
	sleep(20)
	Send("{F2}")
	[B]Sleep(500)[/B]
EndFunc
?
Rosemarie Lein is offline  
Old 08/23/2009, 15:19   #3
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
Question Infinite loop

Ah think i got the problem but i have no idea how to fix that.
In my script button 1 has to be pushed again and i guess thats what causes my infinite loop. Any ideas?
sb0t is offline  
Old 08/23/2009, 15:20   #4
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
btw you cant switch your set while you are casting, the skill would be interrupted.
kknb is offline  
Old 08/23/2009, 15:22   #5
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
ofcause i want cast the skill when set is already switched. i think thats the main idea of my script.
sb0t is offline  
Old 08/23/2009, 15:25   #6
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
no this wont work, if you push the key "1" then your char directly cast skill 1 and your script together.
kknb is offline  
Old 08/23/2009, 15:29   #7
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
is there a way to disable keys and instead only run the makro?
sb0t is offline  
Old 08/23/2009, 17:06   #8


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,283
BlockInput(1)
buFFy! is offline  
Thanks
1 User
Old 08/23/2009, 18:29   #9
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
at which point of my script do i have to include that toggle?
sb0t is offline  
Old 08/23/2009, 18:29   #10
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
if you block the key then you cant push it, that means your script wont start


i think this should work.

Code:
HotKeySet("{1}","Rejuvenation")

while 1
	sleep(20)
WEnd

func Rejuvenation()
	Send("{F4}")
	sleep(20)
	HotKeySet("{1}")
	sleep(50)
	Send("{1}")
	sleep(2000) ;casttime
	Send("{F2}")
	Sleep(500)
	HotKeySet("{1}","Rejuvenation")
EndFunc
kknb is offline  
Thanks
1 User
Old 08/23/2009, 18:41   #11
 
sb0t's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 143
Received Thanks: 12
i love you tyvm
sb0t is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...



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.