Shaiya bot
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
The only problem now is that those are the old HP/MP/SP addresses. I would appreciate if somebody would find them, then lookup the pointers for me. I have posted a tutorial on how to find the pointers in the ArtMoney thread.
Re: Shaiya bot
i got them by follow the tut u postedelverion wrote:The only problem now is that those are the old HP/MP/SP addresses. I would appreciate if somebody would find them, then lookup the pointers for me. I have posted a tutorial on how to find the pointers in the ArtMoney thread.
HP 0210A880+296
MP 0210A880+308
SP 0210A880+312
by the way i dident find the log.txt
Re: Shaiya bot
I have the GG fix and loader setup and i have edited the script to my charecters needs.
I will try changing the values that he has posted above me.
I will try changing the values that he has posted above me.
Re: Shaiya bot
Nope i still ge tthe same error after changing thoes calues.
any ideas on how to fix this?
any ideas on how to fix this?
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Are you sure those addresses are correct? HP, max HP, MP, max MP, SP, and max SP should all be 4 bytes apart, in that order. So that means:some206 wrote:i got them by follow the tut u postedelverion wrote:The only problem now is that those are the old HP/MP/SP addresses. I would appreciate if somebody would find them, then lookup the pointers for me. I have posted a tutorial on how to find the pointers in the ArtMoney thread.
HP 0210A880+296
MP 0210A880+308
SP 0210A880+312
by the way i dident find the log.txt
HP: 296
max HP: 300
MP: 304
max MP: 308
SP: 312
max SP: 316
Are you sure you didn't mix up max MP and MP?
JohnSmith: I will also need to see your log.txt. It will be in the same folder as micromacro.exe and will only appear after you have run it and got the error. I suspect that the problem is due to window name; ensure that the Shaiya window is still named "Shaiya" (it might have changed to something like "Shaiya - Open Beta", but and needs to be exact in the script).
Re: Shaiya bot
my Log
I dont believe the name changed ether still says Shaiya on my task bar
Code: Select all
Sun Jan 27 21:23:36 2008 : MicroMacro v0.96
Sun Jan 27 21:23:36 2008 : Processor Type: 586, OS: Windows XP Service Pack 2
Sun Jan 27 21:23:36 2008 : Lua initialized successfully.
Sun Jan 27 21:23:36 2008 : Lua libs opened successfully.
Sun Jan 27 21:23:36 2008 : Lua glues exported.
Sun Jan 27 21:23:36 2008 : Configurations run.
Sun Jan 27 21:23:43 2008 : Executing script "shaiya.lua".
==================================================
Sun Jan 27 21:25:59 2008 : findProcess() returned 0. Process not found or other error occured.
Sun Jan 27 21:25:59 2008 : Error attempting to open process 0x0. Error code: 87
Sun Jan 27 21:25:59 2008 : ...nts and Settings\josh\Desktop\micromacro\lib\lib.lua:105: Invalid data was supplied to getPixel().
Sun Jan 27 21:25:59 2008 : Execution of shaiya.lua complete.
Sun Jan 27 21:25:59 2008 : Execution success.
Sun Jan 27 21:25:59 2008 : Collecting garbage...
Sun Jan 27 21:25:59 2008 : GC closed process handle 0x0.
Sun Jan 27 21:25:59 2008 : 19KB freed.
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Hmm, something seems messed up. The last time I tried updating the script, I might have attached the wrong copy or something. I have uploaded the fixed copy. Please redownload it, you can find it in my first post in this topic.
Re: Shaiya bot
i am now getting the
invalid data was supplied to memoryreadintptr()
with your new script
invalid data was supplied to memoryreadintptr()
with your new script
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Are you logged in with administrator priviliges? If not, you must run micromacro.exe with admin privileges.
Also, try changing this line:
To:
Also, try changing this line:
Code: Select all
proc = openProcess( findProcessByExe("Game.exe") );
Code: Select all
proc = openProcess( findProcess("Shaiya") );
Re: Shaiya bot
I am under an admin account
I also changed that line and I still get the same error.
My game window is called Shaiya so thats also not the issue.
I also changed that line and I still get the same error.
My game window is called Shaiya so thats also not the issue.
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Hmm, this is a really strange problem. It worked perfectly fine for me under the same OS and all. I did make some changes to find* functions to use EnumWindows instead (and also to allow for wildcards). I have just uploaded the latest update. Try the new copy and see if it works, but don't be too hopeful.
Re: Shaiya bot
Same error again with the he new one.
when i hit f5 it auto selects my charecter and nothin happened i check macro and the error is there dunno if this helps but.
does it currently work for you?
when i hit f5 it auto selects my charecter and nothin happened i check macro and the error is there dunno if this helps but.
does it currently work for you?
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Yes, it works just fine for me using 0.96 and this script:
Are you sure GameGuard isn't running? If it is, it should display a little icon at the bottom right, near the system clock.
Code: Select all
-------------------------------------------------
-- Variable declaration -- do not edit
-------------------------------------------------
CLASS_WARRIOR = 0;
CLASS_MAGE = 1;
HP = 10000;
HPmax = HP;
MP = 10000;
MPmax = MP;
SP = 10000;
SPmax = SP;
HP_ptr = "0210A880";
HP_offset = 296 -- reported as 128; unconfirmed
HPmax_ptr = "0210A880";
HPmax_offset = 300;
MP_ptr = "0210A880";
MP_offset = 304;
MPmax_ptr = "0210A880";
MPmax_offset = 308;
SP_ptr = "0210A880";
SP_offset = 312;
SPmax_ptr = "0210A880";
SPmax_offset = 316;
-------------------------------------------------
-------------------------------------------------
-- character configuration
-------------------------------------------------
class = CLASS_WARRIOR;
key_attack = key.VK_1;
key_pickup = key.VK_2;
key_sit = key.VK_C;
key_skill1 = key.VK_3;
key_skill2 = key.VK_4;
key_skill3 = key.VK_5;
key_hppotion = key.VK_8;
key_mppotion = key.VK_9;
key_sppotion = key.VK_9;
-- rest or use potions when low on HP/MP/SP
HP_usepotion = 150;
MP_usepotion = 0;
SP_usepotion = 0;
HP_sit = 180;
MP_sit = 0;
SP_sit = 20;
-- chance to cast
skill1_chance = 100;
skill2_chance = 0;
skill3_chance = 0;
-- MP cost
skill1_cost = 38;
skill2_cost = 20;
skill3_cost = 80;
casttime = 2000;
-------------------------------------------------
function use_hppotion()
keyboardPress(key_hppotion);
end
function use_mppotion()
keyboardPress(key_mppotion);
end
function use_sppotion()
keyboardPress(key_sppotion);
end
-- so we aren't spamming the attack key...
-- we will use a timer to press it once
-- every 3 seconds.
function attack_timer()
keyboardPress(key_attack);
end
function fight_warrior()
registerTimer("attack_timer", 3000, attack_timer);
while( have_target() ) do
if( HP < HP_usepotion ) then
use_hppotion(); end
if( MP < MP_usepotion ) then
use_mppotion(); end
if( SP < SP_usepotion ) then
use_sppotion(); end
yrest(100);
coroutine.yield();
end
unregisterTimer("attack_timer");
yrest(1000);
pickup();
end
function fight_mage()
while( have_target() ) do
if( HP < HP_usepotion ) then
use_hppotion(); end
if( MP < MP_usepotion ) then
use_mppotion(); end
if( SP < SP_usepotion ) then
use_sppotion(); end
local roll = math.random(100);
if( roll <= skill1_chance and MP >= skill1_cost ) then
-- cast skill 1
keyboardPress(key_skill1);
yrest(casttime);
else
keyboardPress(key_attack);
end
yrest(100);
coroutine.yield();
end
yrest(1000);
pickup();
end
-- heal until full HP & MP
function rest_heal()
local last_HP = HP;
keyboardPress(key_sit);
yrest(100);
while( HP < HPmax ) do
if( HP < last_HP ) then
print("Under attack! Exiting rest");
return;
else
last_HP = HP;
end
yrest(100);
coroutine.yield();
end
keyboardPress(key_sit);
yrest(1000);
end
-- pickup nearby items
function pickup()
for i = 1,5 do
keyboardPress(key_pickup);
yrest(500);
end
end
-- update client variables by reading from it's memory
function update_vars()
HP = memoryReadIntPtr(proc, HP_ptr, HP_offset);
HPmax = memoryReadIntPtr(proc, HPmax_ptr, HPmax_offset);
MP = memoryReadIntPtr(proc, MP_ptr, MP_offset);
MPmax = memoryReadIntPtr(proc, MPmax_ptr, MPmax_offset);
SP = memoryReadIntPtr(proc, SP_ptr, SP_offset);
SPmax = memoryReadIntPtr(proc, SPmax_ptr, SPmax_offset);
end
function have_target()
--1280*1024
-- X: 345, Y: 36
-- 16bit: 165, 24, 66
-- 32bit: 163, 25, 65
--1024*768
-- X: 258, Y: 36
-- 16bit: 165, 28, 66
-- 32bit: 165, 30, 68
local r,g,b;
-- use the window's rect to find the resolution
local wx,wy,ww,wh = windowRect(win);
if( ww == 1024 and wh == 768 ) then
r,g,b = getPixel(hdc, 258, 36);
elseif( ww == 1280 and wh == 1024 ) then
r,g,b = getPixel(win, 345, 36);
else
r,g,b = 0;
print("Unsupported resolution! Please use 1024*768 or 1280*1024.");
end
--printf("R: %d, G: %d, B: %d\n", r, g, b);
-- if there is still HP left in monster's HP bar...return true
if( r >= 160 and r <= 170 and g >= 20 and g <= 34 and b >= 63 and b <= 73) then
return true;
else
return false;
end
end
-------------------------------------------------
-- FUNCTION MAIN
-------------------------------------------------
function main()
proc = openProcess( findProcessByExe("Game.exe") );
win = findWindow("Shaiya");
hdc = openDC(win);
attach(win);
registerTimer("update_vars", 100, update_vars);
running = true;
while( running ) do
if( keyPressed(key.VK_F7) == 1 ) then
running = false; end
keyboardPress(key_attack);
if( have_target() ) then
if( class == CLASS_WARRIOR ) then
fight_warrior();
elseif( class == CLASS_MAGE ) then
fight_mage();
end
end
yrest(500);
if( HP < HP_sit or MP < MP_sit or SP < SP_sit ) then
rest_heal(); end
yrest(200);
end
closeProcess(proc);
detach();
end
startMacro(main);
-------------------------------------------------
Re: Shaiya bot
omg wow i feel stupid i fogot to rename the cracked exe so it would run throught the loader it works fine now im sorry about this.
thank you so much
thank you so much
Re: Shaiya bot
how can i get my bot to run? i have the crack cus i run cheat engine to speed hack and i dont have the log.txt
[imgw]http://img88.imageshack.us/img88/5879/91804440pt0.jpg[/imgw]
By some207 at 2008-02-03
[imgw]http://img88.imageshack.us/img88/5879/91804440pt0.jpg[/imgw]
By some207 at 2008-02-03
Re: Shaiya bot
ugh i just notice something on my pitcture i have minnimacro v.65 and other people have micromacro where can i get the right one
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Shaiya bot
Lol, wow. That's an old version you've got there. You can download 0.96 from the main site (http://solarimpact.servegame.com).
Re: Shaiya bot
do i have to be a warrior or mage for the script to work becusa im a archer and all it dose is click my frist skill and stand there
Who is online
Users browsing this forum: No registered users and 9 guests