Shaiya - ZS Shaiya Bot

You may request or share scripts for MicroMacro in this forum.
Message
Author
User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot

#41 Post by Administrator » Mon May 05, 2008 11:30 am

I can certainly see how this could make things easier to edit/add onto. It'll be interesting to see how you get it all to work, at the least. I'd say go for it, if you can get it to work easily. If it's too much work, I wouldn't worry about it too much.

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot

#42 Post by zer0 » Tue May 06, 2008 2:33 am

done, char files are now in xml format, and need to be converted to lua with Mozilla firefox (2.0.0.14).
IE7 for me wouldn't add any carriage returns.

unfortunately I couldn't make the battle round function implementation as tags. It's either a constraint of XSLT, or due to a lack of knowledge on my behalf. If someone could work this out for me, that'd be excellent! :D

Once, you are familiar with lua, you can just edit the char file directly, instead of having to translate the xml file every time.

edit: 0-01261b was released due to bad break action timings.

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot

#43 Post by zer0 » Mon May 12, 2008 6:55 pm

Hey,
how is everyone finding this release? Were they able to setup their char scripts ok??

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#44 Post by deaznracer » Tue May 20, 2008 5:50 am

Thanks zerosignal. This is Good stuff. My first time programing with micromacro. It took me a whole day to program your bot, what you created work, for my characters. I also Modify some stuff to attack faster and lessen the scan target. I'm still trying to figure out how you get the offset and memory for the user's hp. How do you target the info status bar position? Because If i can learn that I can modify for the character to rest when there is no more blessing.

anyways, good stuff!

psydude
Posts: 1
Joined: Tue May 20, 2008 6:39 pm

Re: Shaiya - ZS Shaiya Bot

#45 Post by psydude » Tue May 20, 2008 6:40 pm

When my character sits down, he doesn't get up again..
That is the only problem, for the rest, awsome bot!

bewok
Posts: 2
Joined: Mon May 19, 2008 2:32 am

Re: Shaiya - ZS Shaiya Bot

#46 Post by bewok » Wed May 21, 2008 12:39 am

this ZS bot suite for which version of micromacro?...im using v0.97 it say cant run the script...and wherecan i download v 0.96 at the main page of download seem no more of v0.96..thx

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot

#47 Post by zer0 » Wed May 21, 2008 5:38 am

It works fine with latest 0.97a, just tested then.

And for the others, it's just a matter of setting the right avatar config values. I'll write up some documentation explaining them when I get some free time.

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#48 Post by deaznracer » Thu May 29, 2008 2:00 am

the new update crashed the zs bot. says "target.lua:123: bad argument #1 to 'memoryReadFloat' ((null))

anyone have any clue?

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot

#49 Post by zer0 » Thu May 29, 2008 9:25 am

this is not yet compatible with shaiya phase 3

RawR
Posts: 4
Joined: Tue Jun 03, 2008 5:09 pm

Re: Shaiya - ZS Shaiya Bot

#50 Post by RawR » Tue Jun 03, 2008 5:12 pm

Wed Jun 04 08:08:01 2008 : MicroMacro v0.97
Wed Jun 04 08:08:01 2008 : Processor Type: 2X 586, OS: Windows XP Service Pack 2
Wed Jun 04 08:08:01 2008 : Lua initialized successfully.
Wed Jun 04 08:08:01 2008 : Lua libs opened successfully.
Wed Jun 04 08:08:01 2008 : Lua glues exported.
Wed Jun 04 08:08:01 2008 : Keyboard layout: US English
Wed Jun 04 08:08:01 2008 : Configurations run.
Wed Jun 04 08:08:08 2008 : Executing script "zs_shaiya/main.lua".
==================================================

Wed Jun 04 08:08:08 2008 : macro_init()
Wed Jun 04 08:08:08 2008 : win_width: 1280, win_height: 1024

Wed Jun 04 08:08:08 2008 : WARNING: Failure reading memory from 0xA69720 at 0x2110ac8 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Jun 04 08:08:08 2008 : Execution of zs_shaiya/main.lua complete.
Wed Jun 04 08:08:08 2008 : Execution success.
Wed Jun 04 08:08:08 2008 : Collecting garbage...
Wed Jun 04 08:08:08 2008 : 13KB freed.



Wed Jun 04 08:08:15 2008 : GC closed device context handle 0xA5C170.
Wed Jun 04 08:08:15 2008 : GC closed process handle 0x40.
Wed Jun 04 08:08:15 2008 : Lua state closed.



Anyone care to explain what da **** lol its doing my head in :(
followed everything down to the letter... :(

sez
Posts: 3
Joined: Tue Jun 03, 2008 8:27 pm

Re: Shaiya - ZS Shaiya Bot

#51 Post by sez » Tue Jun 03, 2008 8:29 pm

doesnt work with E3

RawR
Posts: 4
Joined: Tue Jun 03, 2008 5:09 pm

Re: Shaiya - ZS Shaiya Bot

#52 Post by RawR » Wed Jun 04, 2008 12:11 am

so when will it, this bot is da bomb! :D

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#53 Post by deaznracer » Fri Jun 06, 2008 9:54 pm

I can help you by giving my copy of a bot that i personally made specifically for Fighters of Light, but I copied some code functions from zs and elverion' program. So, untill they approve I can't.

I leave my char over night and it is still a live as long as i have enough HP pots.

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot

#54 Post by Administrator » Fri Jun 06, 2008 10:01 pm

You've got my permission to use any of the code from the Shaiya bot without restriction. It is public domain. ZeroSignal's script is GPL, so you legally have the right to use segments of his code as allowed in the agreement. Based on exactly what you took from the ZS script, and how much, you may or may not need to release your script as GPL as well. Since it is GPL, I'm sure he won't have a problem with it, but it's nice of you to ask.

I just ask that if you want to release it here, please create a new topic. It's just to prevent confusion among other viewers and potential users, as well as to give your work more exposure.

RawR
Posts: 4
Joined: Tue Jun 03, 2008 5:09 pm

Re: Shaiya - ZS Shaiya Bot

#55 Post by RawR » Tue Jun 10, 2008 10:08 pm

deazn id love that, would make my life a little easier... but would i be able to use it via ASSASSIN i heard they are the ultimate soloing class to fast level...

or is there a better one

just trying to rush NM to HM, so i can use that account as a healbot HM for my UM

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#56 Post by deaznracer » Wed Jun 11, 2008 2:08 am

It might work for ASSINS, but i can't gaurantee it because i don't play one :P

Hey zerosignal, I was looking at your script about the set_movement(). When you write into the address would the server recognize that the value has been changed? and be ban for it? or it is not recognizable?

by the way, Very nice written program, I hope you continue to support it.

caccolone
Posts: 24
Joined: Mon Jun 09, 2008 8:23 am
Location: Frankfurt - Germany

Re: Shaiya - ZS Shaiya Bot

#57 Post by caccolone » Wed Jun 11, 2008 9:32 am

anyone know if ZS bot now work with EP3 ? or he is working on it? I really need anti KS feature dammm or is useless for me -_-
another question guys, if you all dont mind, how you use the micromacro? I mean, if you go in one spot and run micromacro your guy will ks everyone,stuck on obstacle or bugged mobs ( this maybe now is solved) but you normally leave bot alone in the night or you always stay in front of PC for control what happen?


thanks

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#58 Post by deaznracer » Wed Jun 11, 2008 9:48 am

i leave mine on at night.

Did you try to figure out how he created the anti ks by using getpixel?
Just copy that function and reconfigure it to work with the original shaiya bot.

The reason why it doesn't work because the avatar ptr changed. Offset are the same. and some other addresses were changed.

caccolone
Posts: 24
Joined: Mon Jun 09, 2008 8:23 am
Location: Frankfurt - Germany

Re: Shaiya - ZS Shaiya Bot

#59 Post by caccolone » Wed Jun 11, 2008 1:48 pm

yea Deaz I was waiting your bot , if you post it is good.
So i just need copy and paste the no ks function on my LUA ?

thanks again

deaznracer
Posts: 59
Joined: Tue May 20, 2008 5:45 am

Re: Shaiya - ZS Shaiya Bot

#60 Post by deaznracer » Wed Jun 11, 2008 2:31 pm

Well. you would copy the code and reconfigure. The file name target.lua C:....zs_shaiya/classes/target.lua is zero's formula for telling if the target is damaged, dead, or full hp and what color is the mob. blue, green, yellow, etc....

there are other things that go along with it that needs to be configured.

The way i did it was take these functions pasted before the function main();.

Code: Select all

function init_window()
  win = findWindow("Shaiya");
  if(win == nil) then
    printf(error_init);
    macro_running = false;
  end
end
function init_process()
  proc = openProcess( findProcessByExe("game.exe") );
  if(proc == 0) then
    printf("error opening process.\n");
    macro_running = false;
  end
end
function init_hdc()
  hdc = openDC(get_win());
  local wx, wy, ww, wh = windowRect(get_win());

end
function get_hdc()
  return hdc;
end
function get_win()
  return win;
end
function debug_message(msg)
  if (g_debug) then
    print(msg);
    logMessage(msg);
  end
end
window_mode = false;

g_debug = true;

Then I would call these function after proc = openProcess(findProcessByExe("game.exe"));
inside the main();
and reprogram the Main() to use the target.lua

I hope this give an idea how i did lol. I am not a good teacher.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests