petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 0:15:54 GMT -5
That's right, First thing for me. Thought of it, and Im pretty sure I should be able to pull this off. However, I Expect this Script to be LONG. That's right, Very long. I won't be using the Functions like I would in AutoIT, I will be doing this all manually. Starts off in mog house. I dont know for sure how to display the Player_Pos, easily, so I could then write down my Diamond Plotting navigation system.... (Sounds fancy, but it's not really... ) Here it is: -----EDIT ---- I took out the script for two reasons. One: Because even when I wrote it, I could sorta feel something was wrong with it. It Will get you out to basok, begins in mog house, and many fine details.... Just I think I should test it more. Expect more in about a week. I got homework piled galore, and Dont see any testing going on within the next 4 or 5 days. Reason Two: I'm not entirely sure it will work out in any way, I am not striving for perfection, but I do expect it to be working correctly, before I post it again. Wait a while folks. Thanks. -------------Note:--------------- Got overall script-ish thing I will be working with. Just I don't know how long it'll take to write. Shouldnt be long, but It'll be a while to debug it. ^_^
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 4, 2005 0:09:18 GMT -5
Well Im giving up on my first script. Failed miserabally. I was checking it out on my friends laptop, and it went a little haywire, and I had to exit the script.
Now I'll just post the Ideas, back from the drawing board of what I want this little sucker to do. I'll just post the general ideas, and work from the bottom up, like I should have done last time.
Si, and I will be posting the new stuffies like I did last time, along with my questions.
here is the Ideas for the script, prettymuch notes to meself.
--===============Version 1.1=============================
--Begin script in MH. -- Target the door using /target "Door" or something -- Open it, (Because you have your Mog Exit Enhancement) Select Location: Bastok Mines -- Hit enter key, and begin by waiting until you load in bastok mines. -- Make your TextObject -- Check the Pos of the character, and make him move
-- IE: Control.control_SetKey("NUMPAD8",true) -- presses key down Windower.script_Sleep(5000) -- sleeps Script for 5 seconds Control.control_SetKey("NUMPAD8",false) --- Releases the key
-- Make the character move according to certian while loops. -- Make the co-ordinates precise and correct and ranged into certian places in bastok mines
-------------------------------- Check out the Compass Thing so far ---------------------------------------------
--player_GetHeading( ) -- Gets the heading of the player. -- Heading is the number of degrees or radians a player is facing away from north. -- East is 90 degrees, south is 180, west is 270, and north is 0 degrees. -- The Rads version of this function returns the same result, but in radians form. --The results returned by this function are completely independent of the direction the camera is pointing.
----------------------------End Compass -------------------------------------------------------------------------
-- Zone out Of mines to gustaberg -- Get co-ordiantes before you make the Pos Ranges -- Use the directional compass to guide your movement -- Make the Diamond Pos End at the Lighthous, in front of the ??? box thing -- Use SendString( "/item "Quus" <t> " ) in order to make you trade the quus to spawn Bubblie bernie -- Sleep Script For X Seconds, Estimated Spawn timing -- use Sendstring to send /target "Bubblie Bernie" -- Fight him -- Warp back to MH when he's dead -- Go out to different point of Bastok using Room upgrade -- Use Diamond Plot system to Point yourself out to lady who does quest -- Open house door -- Trade the item to the lady -- Warp back to MH in Bastok Mines. -- Go back into the MH -- Use Loop for quest if desired
|
|
|
Post by TinyTerror on Nov 4, 2005 0:23:51 GMT -5
Why would you possibly want a bubbly bernie script? This is the kind of thing I am trying to avoid with Lunar. I don't really want people using it to write NM bots. I know it can and will be done, but I will not support it in any way.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 4, 2005 0:49:49 GMT -5
Why would you possibly want a bubbly bernie script? This is the kind of thing I am trying to avoid with Lunar. I don't really want people using it to write NM bots. I know it can and will be done, but I will not support it in any way. OOf, sorry tiny. I didnt want this to seem like it is. This is not for personal benefit, Gil, or anything SE would potentally nerf. This project was mainly to test out my plotting system, see if I could improve it. I could just ditch this topic to see if there is another thing I could test it out with. THat is probally what I shall do, now that you mention it. I dont want SE to nuke this, I wanted this to be something that I could gain expierence with programming in. My apologies there. I will promptly stop this project. Additional note: I'll test out something like a chocobo run or something, something SE or POL can't get wound up about. Apologies upon this matter. Okie dokie?
|
|
|
Post by TinyTerror on Nov 4, 2005 1:18:34 GMT -5
Yeah, do something with navigation instead of nm camping. Navigation is much more usefull anyway.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 4, 2005 12:18:36 GMT -5
Okiedokie. So then I'll try out some other stuff.... I'll consider chocobo navigation. On a chocobo to jeuno. That would be pretty darn useful. Yeah I'll do that. From windurst to jeuno. I'll add on other sections later.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 4, 2005 16:00:21 GMT -5
Ok so then new Script layout. I'll start from the bottom again. So like, a layout of what the script should do: Gaa I'll finish it later. I'll modify this post tonight, but For now I have a cross country meet. EDIT: Finished in a rush. Not quite Explaining all of it, but the general idea in in written form now. --=====================Version 1.0===================
-- Keep a D-Pos log with a TextObject
-- =====================Main Application=============
-- Rent a chocobo. -- Sleep the script for X seconds, conduct tests here about how long it takes. Could Cost me a few G's, but will be worth it in the end
-- Ride the chocobo out into certian co-ordiantes and check the direction it is running in. IE: NW, SE, SW, NE, E, S, W, N -- Check the co-ordinates it makes by storing the current co-ordinates into a variable -- IF you can make a While statement using the DPOS for certian areas on the map -- Perchance this would work?
-- Repeat the main movement Idea throughout the map, setting up new DPOS co-ordiantes across the maps
-- ========================Main Movement Idea=================
-- While X1 < MyPos < X2 -- Keystroke Of FWD Movement -- End the while statement (How do you do this?) -- Exit the Pushdown of the Movement ( Boolean Value set to false )
-- =============== On the To-Do list============
-- Get the co-ordinates for the POS sutff I'm going to use for the different places off the maps -- Check into how to write while statements -- Look into things that could go wrong, possibly go into extensive testing once the script is written here it is. Not fancy, but I'll post when I start to write the script. This will be worth it for sure.
|
|
|
Post by TinyTerror on Nov 4, 2005 16:07:15 GMT -5
Petar, please don't use this site as your personal blog. I don't care what class you are in If you have something to say about scripting, lunar, or ffxi, go for it. Otherwise its just postcount++ over and over. No need post so often that it drowns out others. Just take it easy and chill.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 4, 2005 23:17:15 GMT -5
Perhaps I have been a little-too frequent poster on this web site.
As suggested then, I will do the "Chilling"
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 9, 2005 14:18:38 GMT -5
This will be a Connect-The-Dot Type bot.
This is an example of the bot so far: (One section)
PlayerX1 = FFXI.player_GetXPos( ) PlayerY1 = FFXI.player_GetYpos( )
XMinSet1 = -107.1409 XMaxSet1 = 72.2025
While XMinSet1 < PlayerX1 < XMaxSet1 do
Control.control_SetKey( "NUMPAD 8" , true) Windower.script_Sleep( 1000 ) Control.control_SetKey( "NUMAPD 8" , false )
end
Which in itself isn't too bad. It says to move FWD until you are out of the XPos Range.
(I havent tested this out and want to know if this looks right in the first place.)
Can you nest in While loops in Lua like you can with C++?
While XMinSet1 < PlayerX1 < XMaxSet1 AND YMinSet1 < PlayerY1 < YMaxSet1 do
Sample code here
end
Or If I'm not using AND correctly, then what about loop nesting?
While XMinSet1 < PlayerX1 < XMaxSet1 do While YMinSet1 < PlayerY1 < YMaxSet1 do
Sample Script here
end
I see there is also a weakness with the Loop nesting, what if there is one section broken before the other, and the other is the outside loop. That's the problem with that little sucker.
Just answer if I'm using AND in this correct case as well, I wanna look for it myself. It's much more satisfying this way.
And before I cut off this post, I wanted to see if someone else could check to see if this looks right as well, I wanted to turn the character until they reach a certian degree.
PlayerHeading=FFXI.player_GetHeading( ) HeadRNG1 = 86.400 HeadRNG1 = 352
While HeadRNG1 < PlayerHeading < HeadRNG1 do
Control.control_Setkey( "NUMPAD 4" , true ) Windower.script_Sleep( 10 ) Control.Control_Setkey( "NUMPAD 4" , false )
end
|
|
|
Post by StarHawk on Nov 9, 2005 14:56:29 GMT -5
Have you seen my navigation program? www.ffact.botanybay.net/You are reinventing the wheel... However, if you are going to do so, you should think about things a little differently. Let me explain what I do. I have my waypoint, I expand the "EXACT PRECISE LOCATION" into a "fuzzy location". Imagine having a thumbtack on the ground, and trying to run and stop EXACTLY on the thumbtack. not easy. So what I do, is basically draw a 3 foot circle around the thumbtack, and anywhere inside that circle is considered good enough. A couple things I do differently, just because I don't like the while X1 < X2 type stuff, I actually calculate DISTANCE from the waypoint. easy enough to do, and it makes coding things down the road more simple. (there is actually math that can do this, instead of the "hack" way of doing it). I also calculate my bearing from the target. Bearing is the amount of degrees I need to turn to face the target. This number can be positive (in my case, for clockwise movement) and negative (for counter-clockwise movement) within 0 to 180 or -180 to 0. I'll let my bearing have a max inaccuracy of 10 degrees. (Thru doing some testing in FFXI the shortest "turn interval" I could get reliably was 10-12 degrees (about an 80ms pulse). Also, I recommend using the numpad for all of your movement. This has an advantage of working whichever keyboard configuration you are using, and also seems to NOT screw up the chatbar while you are typing. Hope some of that helps you, or you just decide to put my hard work to use!
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 9, 2005 15:02:36 GMT -5
OOf. Re-inventing the wheel Indeed. I thought of making your "Thumbtack" point fuzzy like you said, but by adding a little Pos Diamond. The whole reason for inventing this.
Dang. I'll keep going, but I dont know if I'll release it, for fact of being shamed by the rubber wheel, VS the Ammish wagon.
|
|
|
Post by StarHawk on Nov 9, 2005 15:23:30 GMT -5
It's just as easy to implement the formula necessary to calculate a circle.
|
|
|
Post by TinyTerror on Nov 9, 2005 15:31:00 GMT -5
Heh, this forum is a wheel factory ^_^
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Nov 9, 2005 15:44:54 GMT -5
Heh, this forum is a wheel factory ^_^ Seems like it. -.-; The good thing is we're all learning to make one in the first place. Remaking StarHawk's ExpWatch program with a few modifications would be interesting.
|
|