Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars
You last visited: Today at 11:41

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

Advertisement



Randoms mischen?

Discussion on Randoms mischen? within the Guild Wars forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 18
Received Thanks: 0
Randoms mischen?

Hi,
das is mein erster Post und ich hätte gleich ne frage ^^
Ich gucke mich jetzt schon seit ner weile hier im forum um und beschäftige mich so n bisschen mit autoIT
nicht des geldes wegen, sondern weils mir einfach spaß macht, an sowas zu basteln und dann zu sehen, dass es geht
Jetzt mach ich mir gerade ein simples Säufermacro (nicht, dass der DrunkenMaster von guild_wars_gamer schlecht wäre - der ist sogar ziemlich geil^^ - aber mir macht das Basteln halt spaß) und bin bis jetzt so weit:

Code:
$x = Random(175, 197)
$y = Random(623, 657)

func normTrink()
	MouseClick("left", $x, $y, 2)
    RandomSleep(3000, 4000) ; nur zum Angucken (eigtl knapp 1 minute)
	MouseClick("left", $x, $y, 2)
	RandomSleep(3000, 4000)
EndFunc

RandomSleep(800, 1200)

While 1
Call ("normTrink")
	WEnd
Klappt auch ganz gut, aber jetzt mein Problem:
Während dem While 1 klickt er die ganze Zeit auf dieselbe Stelle.
Das möchte ich ändern, und irgendwo hab ich hier auch gelesen, dass jemand einen Bot benutzt, der alle Randoms im laufe des scripts wieder neu mischt.
Wie geht das??!elf?

Naja... wie gesagt, nur ein kleines Problem, aber danke schonmal für antworten =)
muuhN is offline  
Old 03/06/2008, 17:49   #2
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 215
Bau eine Funktion RandomClick zb.

func RandomClick($button, $x, $y, $times, $änderungsrate)
$x1 = Random(($x - ($änderungsrate / 2)), ($x + ($änderungsrate / 2)))
$y1 = Random(($y - ($änderungsrate / 2)), ($y + ($änderungsrate / 2)))
MouseClick($button, $x1, $y1, $times)
endfunc

Erklärung:
$x, $y der Funktionsparameter sind der Punkt wo hingeglickt werden soll. $times die Anzahl, wie oft geklickt werden soll.
Die änderungsrate ist eine Zahl, die bestimmt, wie stark der Klick von der bestimmten Position zufällig abweicht.
Beispiel:
RandomClick("left", 100, 200, 2, 10)
Links 2 Mal klicken. Und zwar auf X um 5 Pixel nach rechts und links abweichend. X liegt also zwischen 95 und 105. Das gleiche mit Y.
Die Funktion klickt also bei jedem Aufruf irgendwo zufällig in das Quadrat 95, 95, 105, 105
Term!nX is offline  
Old 03/06/2008, 17:52   #3
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
oder einfach bei deinem script
Code:
dim ,

func normTrink()
	MouseClick("left", , , 2)
    RandomSleep(3000, 4000) ; nur zum Angucken (eigtl knapp 1 minute)
	MouseClick("left", , , 2)
	RandomSleep(3000, 4000)
EndFunc

func shuffle_randoms()
 = Random(175, 197)
 = Random(623, 657)
endfunc

RandomSleep(800, 1200)

While 1
normTrink()
shuffle_randoms()
WEnd
Azunai is offline  
Old 03/06/2008, 17:55   #4
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
POAH! wie ungerecht...

bei muuhN bleiben die $$$ erhalten bei mir nicht 0o

--- code
dim $x,$y

func shuffle_randoms()
$x = Random(175, 197)
$y = Random(623, 657)
endfunc


func normTrink()
MouseClick("left", $x, $y, 2)
RandomSleep(3000, 4000) ; nur zum Angucken (eigtl knapp 1 minute)
MouseClick("left", $x, $y, 2)
RandomSleep(3000, 4000)
EndFunc

RandomSleep(800, 1200)

While 1
normTrink()
shuffle_randoms()
WEnd

--- end
Azunai is offline  
Old 03/06/2008, 18:00   #5
 
elite*gold: 0
Join Date: Jan 2008
Posts: 18
Received Thanks: 0
Aah... ich verstehe
Die Änderungsrate und die shuffle_func sind genau das, was ich brauche

Danke an euch )
muuhN is offline  
Reply


Similar Threads Similar Threads
Gold Feat. Bronze [RMx] Mischen?
09/09/2010 - WarRock - 6 Replies
Hallo Com. Hab Mal ne Frage Kann ich Bronze Prem 30 Tage Vermischen Mit Gold 3 Tage oder Bekomme ich dan nur Gold 3 Tage ? Thx 4 Raus
[RELEASE] 9900 Clovers,Randoms and TownPortal Vendor
03/21/2010 - EO PServer Guides & Releases - 11 Replies
Hi, I'm Murtah and I want to release this NPC in Market that will sell a 9900 Pack of RandomPortals, EudemonClovers and TownPortals. Just run this sql Script and restart your server. Dont forget to give Thanks if you like it =P I'll have some Translations coming later today. Enjoy! Ive added 9900 Universals to the NPC now, Please Redownload. Thanks revolution263
[Help]Randoms
02/08/2010 - CO2 Private Server - 4 Replies
could someone help me with making a random for moonboxes so that when they open a moonbox it gives random items from a txt file.
Anyone Using RSBOT - randoms do not work
03/01/2009 - Runescape - 0 Replies
pretty sure if you you use rbsot you should already know but just in case: as of right now anyone using rsbot should note that the randoms do not work, because of the new updates, yes rsbot does work,but scripts for the randoms are out of date just warning you in case you don't know
TQ's randoms (lottery, sockets, drops, etc)
12/04/2008 - Conquer Online 2 - 11 Replies
ok well ive been trying to think of ways to "beat the system" so to speak. I've been looking into the source for generic C random num generators (who would write a game in a different language?). Essentially if they wrote the game using windows then theres still a chance, but if they were using linux, and used the generic linux rand num generator then there's no way. I'm planning on writing a program to monitor the packets from conquer (since i dont have a translator for their chat logs) and...



All times are GMT +1. The time now is 11:41.


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.