Search found 38 matches
- Fri Nov 07, 2008 2:32 am
- Forum: MicroMacro general & support
- Topic: registerTimer() - How to call a class function
- Replies: 10
- Views: 3136
Re: registerTimer() - How to call a class function
Awesome, that works great, thanks!
- Thu Nov 06, 2008 11:22 pm
- Forum: MicroMacro general & support
- Topic: registerTimer() - How to call a class function
- Replies: 10
- Views: 3136
Re: registerTimer() - How to call a class function
I was messing around with your example some more, because I can't for the life of me get registerTimer to call a function that accesses anything involving "self", and have said function be able to access self. Using this code: startKey = key.VK_INSERT; stopKey = key.VK_DELETE; SomeClass = ...
- Wed Nov 05, 2008 11:35 pm
- Forum: MicroMacro general & support
- Topic: registerTimer() - How to call a class function
- Replies: 10
- Views: 3136
Re: registerTimer() - How to call a class function
Thanks a bunch, can't believe I didn't see that, was throwing me off for a while
- Wed Nov 05, 2008 10:06 pm
- Forum: MicroMacro general & support
- Topic: registerTimer() - How to call a class function
- Replies: 10
- Views: 3136
Re: registerTimer() - How to call a class function
I should be able to figure this out, I was using that website to base my class structure from. It's got to be something really simple, I'm just not seeing it. I've fixed the previous error, but I'm getting a different error now: attempt to index 'self' a nil value By my understanding, creating the c...
- Tue Nov 04, 2008 11:26 pm
- Forum: MicroMacro general & support
- Topic: registerTimer() - How to call a class function
- Replies: 10
- Views: 3136
registerTimer() - How to call a class function
I'm trying to use registerTimer() to calll a class function, but I am getting the error: function arguments expected near ')' I've tried calling it like this: registerTimer("update", 100, char:update); registerTimer("update", 100, self:update); if I just try to pass the function ...
- Mon Nov 03, 2008 10:26 pm
- Forum: MicroMacro general & support
- Topic: Shaiya - WayPoint System
- Replies: 28
- Views: 9030
Re: Shaiya - WayPoint System
About the mouse clicks though... It's very difficult to accurately get a bot to move where you want it to through a series of clicks. There's just too many obstacles (monsters, players) that could get in the way, camera angle differences, and other things that cause these systems to get thrown way ...
- Mon Nov 03, 2008 9:41 pm
- Forum: MicroMacro general & support
- Topic: Shaiya - WayPoint System
- Replies: 28
- Views: 9030
Re: Shaiya - WayPoint System
This looks very promising! In one of my previous botting areas I contemplated making waypoints, but I was trying to create fake mouse clicks on the ground and move the character that way. Unfortunately I wasn't able to find how the clicks worked and soon leveled out of that area :( Are you using a m...
- Fri Oct 03, 2008 9:12 am
- Forum: MicroMacro scripts
- Topic: Shaiya PvP Bot [Curious]
- Replies: 5
- Views: 4126
Re: Shaiya PvP Bot [Curious]
It's much more efficient to make use of the multiclient ability and set it up so there's a few priests/oracles on one computer that take turns ressing one other character on another that you kill over and over. Would also be doable by putting a priest/oracle, one character to kill, and the character...
- Sun Jul 20, 2008 12:34 am
- Forum: MicroMacro general & support
- Topic: Point in Polygon function troubles
- Replies: 3
- Views: 2148
Re: Point in Polygon function troubles
I tried out your suggestions but it did not fix the problem. I also tried adding a step of .1 to the for loop but it gives me a cannot compare nil value error. Any other ideas? I'd really like to get this working
- Thu Jul 17, 2008 9:13 am
- Forum: MicroMacro general & support
- Topic: Point in Polygon function troubles
- Replies: 3
- Views: 2148
Point in Polygon function troubles
I'm having trouble getting point in polygon to work correctly in lua. I converted it from this C code from this site: int pnpoly(int nvert, float *vertx, float *verty, float testx, float testy) { int i, j, c = 0; for (i = 0, j = nvert-1; i < nvert; j = i++) { if ( ((verty[i]>testy) != (verty[j]>test...
- Sat Jul 12, 2008 11:41 pm
- Forum: MicroMacro scripts
- Topic: Shaiya healer in tow script
- Replies: 0
- Views: 4807
Shaiya healer in tow script
Who is it for? If you play two accounts, and the second one happens to be of the healing type, this is for you! You can tow the healer behind you or keep them in place, it does not matter. Features - Will calculate the target's approximate health percentage, and heal accordingly. - Knows when you a...
- Sat Jul 12, 2008 6:18 pm
- Forum: MicroMacro general & support
- Topic: Middle mouse button click?
- Replies: 2
- Views: 1274
Re: Middle mouse button click?
Thanks! That was super fast response
- Sat Jul 12, 2008 3:08 pm
- Forum: MicroMacro general & support
- Topic: Middle mouse button click?
- Replies: 2
- Views: 1274
Middle mouse button click?
I was wondering how I would go about sending a middle mouse button click event? The reason I want to do this is it is an easy way to do a 180 degree turn, and thus may aid in getting unstuck.
- Fri Jul 11, 2008 5:45 pm
- Forum: MicroMacro general & support
- Topic: Is there a built-in lua hashing function?
- Replies: 3
- Views: 9255
Re: Is there a built-in lua hashing function?
I was going to make a sort of pixel checksum to make sure I know if I ever switch targets, so the hash does not need to be reversible. Similar to getPixelChecksum() in autoit. I may not need this if target id stays the same after a character is killed and ressed repeatedly, but I have not tested tha...
- Fri Jul 11, 2008 3:52 pm
- Forum: MicroMacro general & support
- Topic: Is there a built-in lua hashing function?
- Replies: 3
- Views: 9255
Is there a built-in lua hashing function?
I was wondering if MicroMacro/lua has an included hashing function akin to MD5, SHA1, etc? Or do I need to get a 3rd party library to do it?
- Fri Jul 11, 2008 3:50 pm
- Forum: Off topic
- Topic: Hello I'm new, and a few questions :)
- Replies: 3
- Views: 2118
Re: Hello I'm new, and a few questions :)
Thanks for the in-depth responses, I'm going to play around with lua a bit and see how I like it. This way I can contribute here and hopefully help with the Shaiya bots. Last night I started working on a half-splitting algorithm that will approximate a target's current health percentage, which I'm p...
- Wed Jul 09, 2008 12:37 pm
- Forum: Off topic
- Topic: Hello I'm new, and a few questions :)
- Replies: 3
- Views: 2118
Hello I'm new, and a few questions :)
I came across this site and was reading through some of the Shaiya bots, and I really liked the anti-ks'ing logic :) I was wondering in the shaiya bots, why are some things read directly from memory and some read via pixel colors on the screen? For example targets health, were you unable to read it ...
- Wed Jul 09, 2008 12:14 pm
- Forum: MicroMacro general & support
- Topic: shaiya - Using multiple window instances, and keyboard input
- Replies: 35
- Views: 14517
Re: shaiya - Using multiple window instances, and keyboard input
I was able to successfully accomplish this using autoit script, and I've never run into any problems with inactive game windows receiving keystrokes. I can switch between up to 3 characters on the same computer (if I run 4 clients things get unstable for some reason), and sending keystrokes to any s...