Help with script bot

03/23/2011 02:47 beastmp#1
hello all! Im just looking to learn a few things about making a simple script bot that i can tweak or change whenever the need arises. i was able to get my hands on a couple of old bots that use memory addresses to sniff the hp, mp, and sp from the character. i obtained the address and it worked once but when i ran it again it gave me an error saying it couldnt find the memory address. i was wondering if anyone could point me in the right direction to finding these memory addresses and for the sit/stand pointers as well. other memory addresses that these bots use are swimcheck, sitecheck, and targetid. im not 100% sure how to go about obtaining these addresses. i would greatly appreciate any help on this.
One other major question i have about these bots is that when i try to make a simple keypress script saying press button 1, wait, press button 2, wait....etc. the game does not recognize these keypresses and i cant figure out by looking at the code from the other bots how they are able to get around this issue.
all ive been really wanting to do is make a script bot that attacks and loots over and over. these other bots like SSB and the other ones ive been working with are more complex but i just want to be able to make something simple. most of the time i'll be keeping an eye on my screen so ill know what my hp and stuff is, so i dont really need anything that complex.
anyway, i know im rambling a little, so i hope someone can help me out with this. i love to learn new programming and this looks like an opportunity to pick up and learn something new.
thanks.
03/28/2011 20:10 beastmp#2
ok well i've figured out everything but the keypresses. ive been able to get the bots to work and find the memory addresses for just about everything i need. i now am able to use these and tweak them to my need but i would really like to know how everyone seems to be able to get around the keypress issue. im assuming shaiya only accepts direct input so normal api calls or keystroke functions wont work, but i cant find anywhere that has a solution. I do all my programming in vb.net so if there's someone out there who knows and can please shed some light on this for me, i would greatly appreciate it.
thanks in advance
03/28/2011 20:18 zargon05#3
Try sending packets directly instead of passing keys to game.exe
04/01/2011 01:39 beastmp#4
Ok. thanks for the info on the packets. Im still researching on how to implement this in vb.net. unfortunately, i havnt been very successful. Now i have a new problem. Since the update yesterday, the script bot i was using has been unable read the HP, MP, and SP and sit or use pots when they are low. Ive noticed that they have changed the values from 4 bytes in the memory to 2 bytes, and i was hoping someone could help me figure this out. Any help would be appreciated.
thanks.
04/02/2011 17:40 namepod#5
Quote:
Originally Posted by zargon05 View Post
Try sending packets directly instead of passing keys to game.exe
Any tips on how this can be done? How do you find out the packets you need?
And how do you send them?
04/02/2011 20:10 zargon05#6
There is a packetbot with source available here.
04/02/2011 21:25 namepod#7
Dont understand so much of it, and the comments are in german ^^
If i remember correctly that is.

Thanks anyway though
04/05/2011 21:10 beastmp#8
Quote:
Originally Posted by namepod View Post
Dont understand so much of it, and the comments are in german ^^
If i remember correctly that is.
Yes I've taken a look at the code and while I'm still in the process of converting it over to vb.net it looks like it'll be tough. Comments are in German and unfortunately translating it, it doesn't come out with the same context.

Does anyone have an explanation as to why the scriptbot stopped working after the last update?