@jtremblay
Your bot will works fine on your pc, the problem is that you are using Vyns rotation function which needs "windowed rappelz mode", and every pixel coordinate in another pc running "windowed rappelz mode", is different (with diffrent values)
@TheManiac4
I only kept the actual mouse clicks from Vyn's rotation script. I left out the window changer since my intention was to run this program full screen (since I was writing it to do pixel color detection.) I am aware that a pixel detection based bot can not be ran windowed due to the precission of how the window must be placed. As I mentioned in both of my previous posts... the problem is not that it is only working on my PC... it is that it only worked for a few hours then stopped working completely. For clarification - this does NOT work on any of my computers any more. I had Vyn's turn code in my script when I was debugging and it was working beautifully. I have a script that runs real-time and allows me to view an exact pixel location and color while the game is running (this is how I acquired the exact pixel colors.) I have confirmed my pixel values and they are dead on for every resolution I posted. I spent quite a bit of time on this and I spent quite a bit more trying to troubleshoot why it stopped working and came to the conclusion that Hackshield is now blocking 75% of the script. The bot functions as it should when then game is not running. I have used screenshots of the game to test this theory.
"worked for a few hours then stopped working completely"
even if you restart ur bot?
Cause I realized that the function PixelGetColor(x,y) get sometimes diferrent values for the same x-y coordinate. Maybe your bot received a 0 for the dead function and thought he is dead and paused the script. That happend to me a lot of times, I changed my Dead function, so he check 10 times if he is really dead, working very well for me.
------Your script if you die---
; if you die it will go to town and pause the bot
If PixelGetColor(8,49) = 0 Then
Sleep(5000)
ControlSend("Rappelz", "", "", "{ENTER}")
Sleep(5000)
ControlSend("Rappelz", "", "", "{PAUSE}")
EndIf
Dont use screenshot, every pixel even (500, 300) and (499, 300) (it seems to be the same colour, but it isnt) can be different.
The pixel function really improved my bot. It recognized: Moon Rabbits, Megalorecores, run eclipse until find a Mob, kill the mob till dead, dont ks from others, rebuffs himself every 5 min and go back to town after dead
I used the bot from the first page just out of curiousity with a fresh account and a new char. I leveled the char up to level 15 then started botting for aprox 10mins.
Everything went fine until I quited Rappelz, when I wanted to log back in 2 more hours later my now level 16 Breeder was level 1 with no money, no jp no thing..
I dunno if its because of a serverfault or something or caused by the bot.
"worked for a few hours then stopped working completely"
even if you restart ur bot?
yes... even if I restart.
Quote:
Originally Posted by TheManaic4
"Cause I realized that the function PixelGetColor(x,y) get sometimes diferrent values for the same x-y coordinate. Maybe your bot received a 0 for the dead function and thought he is dead and paused the script. That happend to me a lot of times, I changed my Dead function, so he check 10 times if he is really dead, working very well for me.
I am using a pixel script seperate from the bot that tells me the exact pixel (x,y) and color at that location; it also updates the color in realtime. I was using this to debug the bot
Quote:
Originally Posted by TheManaic4
"The pixel function really improved my bot. It recognized: Moon Rabbits, Megalorecores, run eclipse until find a Mob, kill the mob till dead, dont ks from others, rebuffs himself every 5 min and go back to town after dead
If my pixel detection script is working for you, then great. If you got it working then please post it for others to use. That is why I spent many hours writing it.
I still play other online games so I am not devoting all my time to rappelz. Eventually, I am going to re-write the script so it can run windowed. I am going to include more settings so you can just select a resolution and it will intelligently detect the window position so it can run windowed... however, that is quite a bit of writing and debugging and I do not think my script is ready for that just yet. Once I can get this to work as I have it written then I will work on my other ideas for this script.
warum sperrt ihr euch so for einem Pixel search!
ich hab mich selber mal hingesetzt, und bei mir
sucht(TAB^^) er erstmal den gegner
schickt nen angriff, und mach dann nen pixel search, wenn dann kein schwarz in der rechten ecke de rhp leiste ist greift er weiter an.
ich stell das wenn ich daheim bin mal rein,
mein prob ist nur das er dann die folgende angriff schleife vorzeitig beendet...
(ich will nicht das er nur einen skill nutzt ich hab ihm meine schnellsten attackne reingestezt abwechselnd)
ich stell den nachhe rnochmal rein mit eventuellen verbesserungen!
Ok, I am still ironing out the script. I have managed to get it to work again. This version is 1024x768 windowed resolution only. You must place the Rappelz window in the upper left corner or the pixel detection script will not be able to locate your player status box. Keep in mind, there are a lot of bugs in this script and I am playing with a lot of new features. This will also auto heal your pet, providing you have a pet out when you start the bot. I could not get this to work in Vista Ultimate X64. I wrote and tested this in Vista premium x86.
Windowed 1024x768 res
Auto-Heal pet#1 only
*EDIT*
had to repair some of the 1024x768 code - sorry I debugged most of the code in 1440x900 and goofed some of the translations to 1024x768
Smth wrong with attack. After bot got a target it doesn't attack it but search for another one... And so it goes without an end :/
yea iv seen this, also running xp pro maybe theres a problem there, iv also noticed while playin around that pressing the F keys while actually not fighting with a target mob will target the nearest mob and use that move on it could be messin up a few of ur codes there.
Seems pretty good for now, except the attack thing wich indeed doesn't work under Windows XP. Anything else wich I was able to test worked pretty nice, this goes for pixel search, buff spells, target search and rotation.
I think it's not a big deal to fix the attack thing, unfortunatly I am not that good with AutoIt, so this will be your part
ok iv been looking at this code basically u cant send the mouse commands to rappelz i think hs is blockin or sumin. basically wot i can see ur lockin the right button down in rappelz and moving mouse left and right to simulate the right button held down and movement, well i was thinking shouldnt u be tabing in here somewhere like:
the code at the top seems to me like the player is looking around but not selecting the mobs all around him/her as the mouse goes right back to the same place it started in the beginning.
@ jtremblay atk works but atk Time is to short and selfheal dosent work, but i have tried it under win xp prof. so maybe thats why. Btw mouselook works also fine and mob detection (only full hp)works to you ned to fix the akt time and the self heal all other things are working fine. Grate Job btw
@jtremplay to fix the window position Add:
Opt("PixelCoordMode", 2)
Opt("MouseCoordMode", 2)
so it will set the x,y in the window(upper left corner) to (0,0)
function to let the char rest if hittesd enough
$rest=PixelSearch(70,70,90,80,0x9dab63,30,5)
If $rest= Not @error Then
;MsgBox(4096, "Ausruhen", "eine Minute HP regenerieren", 10)==>test funktion
Sleep(60000)
EndIf
wenn sich die farbe von der hp-leiste ändert greift der bot nicht weiter an (also er macht noch den letzten gegenr platt) und wartet 1minute bis er sich wiede rin die schlacht wirft! ich kann auch umschreiben das er solange wartet bis er wieder voll ist ODER sich die farbe wiede rzu grün ändert!
this function causes the bot to rest if the color of the hp-bar changes
he will rest for 1minute! its possible to change the function to lets him rest till the hp-bar is full OR till the color changes to green!
(==>Testet and works!!!!)
the script to filter critter with pixelsearch:
Do
ControlSend("Rappelz","","","{Tab}")
Sleep(2500)
ControlSend("Rappelz","","","{"&$attack1$"}") ;==>"&$attack1$"=F1...F10
Sleep(500)
$spotted=PixelSearch(485,20,690,30,0x803322,50,25) ;==> Ganze
HPleiste vom gegner nach rot absuchen, search red in whole Hp-bar
of enemy!<= function not implented
$Bottrap=PixelSearch(680,20,690,30,0x000000,20,2)
Sleep(200)
Until Not @error
(==>testet and works (standalone))
er tabt und greift solange an bis ein gegner hp verliert!hab auch eine Funktion die solange angreift wie de rgegner hp hat
tabs and attacks till one enmey loses hp! I also write a function which atacks as long as the enemy has Hp (redpixels in hp-bar)
attack function till enemy is dead
Do
$defeat=PixelSearch(485,20,495,30,0x803322,5,5)
Sleep(200)
ControlSend("Rappelz","","","{"&$attack1$"}")
Sleep(500)
ControlSend("Rappelz","","","{"&$attack1$"}")
Sleep(500)
Until Not @error
(==>tested but causes trouble (because of lack of knowledge^^)
(==>getestet aber macht spacken(naja ich bin halt neu im macro kreieren^^)
mein prob ist dass ich beide nicht zusammen fassen kann ohne das der anfängt rum zu spinnen!
prob is i cannot get those two to work together
@vyn trotz pixel search ist die Cpu auslastung nur minimal, da er nicht pixel für pixel absucht, der critter filter und die besiegt anzeige haben gerade mal 20 pixel
Vorteil von pixelsearch ist halt das diese funktion nicht wirklich geblockt werden kann!(zur not geht man auf die lösung von jtremblay udn schiebt das fenster in eine bestimmte ecke und gibt dem pixelsearch dann feste positionen!!)
also ich bin auf diese sache umgestiegen, weil es schon bei meinen anderen bots gut funktioniert hat und man in die angriffs schleife dann noch mehr als nur einen skill(plumpes angreifen) setzen kann, bei mir sind es jetzt zur zeit nur 2 aber ich könnte da die gesammte F leiste iensetzen bis auf loot! und das gibt dem ganzen eine dynamik!!!
so ich hoffe mal das war kein grosser fehler dashier zu posten (nicht das die guten rappelz proggers jetzt all das blocken-.-@vyn wenn dieser fall deiner meinung eintreffen könnte lösche alles bzw. editiere es ich schick es diroder wer es haben will dann nochmal per pn ) vielleicht hilft es euch!
mfg
T-Rick
Edit: ich werde mal versuchen das ganze noch in eine abfolge zu bringen die dann auch wirklich funktioniert dann werde ich noch versuchen den dreh modus ein zu binden....(ich hab viel vor und nur so wenig zeit...)