petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 1, 2005 23:19:48 GMT -5
Thanks Rzn, But I already read that sort of thing.
I was thinking however, If I used Movement commands (Numpad 2 , 4 , 6 , 7 , & 8) along with The character Plotting system Get Character Position (The command that was in tiny's FFXI library of functions...)
Anyways, I know there is a send key delay thing, it is demonstrated in the FishFighter, but then could I demonstrate movement of my character by using the Sendstring command?
I don't understand the control library tinyterror Posted. He said: "These should be regarded as strings" ...
And would that mean that In the middle of a script I could just stick in a large helping of
"Numpad6"
in there, take for instance:
Ypos1=FFXI.player_GetYPos
If (Ypos1) < -- Y coordinate on map Less than this value -- Then
Numapd2 -- I know you use control_SetKey() But I can't think of how to impliment this right now. (I can see already it looks wrong But is this the general Idea for getting the Character to move?)
|
|
|
Post by TinyTerror on Nov 2, 2005 0:07:29 GMT -5
When I say something should be considered a string, I mean it should be bassed into a function with quotes around it. That goes for the direct input control codes used in the control library.
|
|
Rzn
Junior Member
Posts: 55
|
Post by Rzn on Nov 2, 2005 0:27:05 GMT -5
sending keys (for movment or other wise) in lunar is a little tricky because you have to set a key state down wait x milsec and set the key state up
example
Conteol.control_SetKey("NUMPAD8",true) windower.script_Sleep(1000) Control.control_SetKey("NUMPAD8",false)
this would press and hold the number pad 8 key for one second
while the key state on/off switch is very diffrent from what i'm used to i find its much easyer to make complex movement scripts with it.
|
|
|
Post by TinyTerror on Nov 2, 2005 0:36:06 GMT -5
I'll go ahead and add a timed press command. Sorta dumb not to have one. It will be something like Control.control_PressKey(KeyCode,Time). This should make controlling the game a bit easier.
|
|
|
Post by phr33k on Nov 4, 2005 23:48:44 GMT -5
Hey Rzn this is a great start, and i really like how you detect which side to pull the rod. Faster than RGB checking most probably and of course not as effective a knowing the memory locs, but close enough lol. Just a few issues i'd like to mention: 1) When the fish is an Item , or a "Middle" fish( A fish that goes to one side... Then stays in the middle for a whole 2 seconds, then switches back to the same side or the other side again , and then goes back to the middle for another 2 seconds, etc etc etc) Well when it's one of these type of fish or items, while the rod is in the middle, it keep regenerating health to the fish because it's trying to go left, then right, then left then right. Is there a way to make the script realize that the rod is in the middle? And if it does, wait till it swings either side , or wait a predetermined amount of time? 2) Also, when starting to pull in the fish, if the HP percentage of the fish is 100%, if the starting direction isnt the right one, well it doesnt try the other direction because the health is not increasing, it stays the same, so i imagine it keeps on trying the wrong direction, until it actually goes that direction and the health starts depleting. Once the health is starting to deplete this issue doesn't happen anymore. Im guessing it's a problem when the fish is at 100%. If theres no way you think this can be improved, let me know, if theres something that can be done, let me know also lol. I love this because now i can actually Watch a hockey game while fishing, just just every 5 secs to see if its completely depleted Great work.
|
|
Rzn
Junior Member
Posts: 55
|
Post by Rzn on Nov 5, 2005 4:51:18 GMT -5
Its very simple it doesn't car where the rod is it, it tries hitting right if the fishes hp goes down it keeps hitting right if it doesn't it tries left. This is where your problems are comming from even tho there is a delay for when the hp goes up it still has to try other dircitions because it doesn't know the rod is in the center this small delay is what causes your second problem. Sometimes at 100% it gets stuck in "center" loop. Its not seeing a change in hp so the delays keep going off. You can play with the delays but if you decrese the "centre" delay its going to check faster and make the hp regen faster when the rod is in the center.
You may try helping it a bit when the fish is 100% just to get it started and i'll poke at it a bit to see if i can get it checking the "center" fast enuf that it doesn't regen hp.
|
|
Rzn
Junior Member
Posts: 55
|
Post by Rzn on Nov 5, 2005 6:46:19 GMT -5
I did a little work on it give it a try let me know if its better or worse new version 1_2 get it here takemycrap.no-ip.org/
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 9, 2005 13:39:22 GMT -5
To me the "Stuck in middle" only happens when I'm going after the colbat jellyfish. I tested out both versions, and both really seem to function at the same way, but the speed for the first one is a little better. I think anymoose.
I prefer to use the first one, but good job on both of them!
If at any possible way, to make the interval a rediculously small ammount of time, that would be kinda kickass, but if it functions, then it would be reeely accurate. si si~ ^_^
|
|
Onitaru
Junior Member
They call me Pope.
Posts: 62
|
Post by Onitaru on Jan 3, 2006 17:36:46 GMT -5
Hey does that link still work? I've try'd it because well my comp crashed and I lost everything I was going to get X-Drops Levi script because I know he had that Levi light version that was just a fish fighter but now its gone and I know that with this script you couldn't go afk so that made it seem ok because well if you've read Tiny's post you'd know why I'm looking for this script again.
should of backed-up my windower files ; ;
|
|
|
Post by phantomphreak on Jan 9, 2006 19:20:27 GMT -5
link is down -_-
|
|
Rzn
Junior Member
Posts: 55
|
Post by Rzn on Jan 10, 2006 9:59:22 GMT -5
sorry server is down. i should have it back up by the end of the week
|
|
Onitaru
Junior Member
They call me Pope.
Posts: 62
|
Post by Onitaru on Jan 27, 2006 15:40:32 GMT -5
still not working ; ;
|
|
|
Post by agentm on Jan 30, 2006 15:59:25 GMT -5
hey guys, i was wondering if anyone could e-mail me the file, or host it somewhere else, thanks
|
|
tonyg
New Member
You like that!?! HUH?!!
Posts: 1
|
Post by tonyg on Feb 8, 2006 17:24:50 GMT -5
I am going to dive into coding with lunar soon and would like this script so I can make a completed fishing bot. Is there a way you could get me the file? [EDIT] Um, no... don't ask. Read this.
|
|
|
Post by foxylady on Feb 12, 2006 17:03:18 GMT -5
If you email me the file I will host it for a month or so, maybe longer if my bandwitdh doesn't go thru the roof I have my own server and lots of unused space on it. thegirl@heandshe.org
|
|