petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 1, 2005 15:57:58 GMT -5
Um, I asked if the Names would execute the same function.... I also asked if the ID's would provide a shortcut to not check for the names.
Once more, I apologise for my pattern to be unclear.
|
|
|
Post by TinyTerror on Nov 1, 2005 16:15:23 GMT -5
Names are used exactly as ID's would be if they were in Lunar. Names are just as fast as ID's because of the way the windower processes input from sendstring.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 1, 2005 18:14:07 GMT -5
Thanks tiny. I was wondering about the Pixel Co-ordinates.
I noted X & y, which I understood perfectly. but I don't understand Pixel Co-ordinate Z.
Would I be able to set up a box of pixel co-ordinates using IF statements? (Yes/No answer please. I wanna try to make it meself.)
Ignore the IF statements. I just checked, and It seems I overlooked a particular section in the Lua Manual.
And last thing I am a little confused with is the IF statements in Lua, along with the user-defined functions. Could you set it up without it being messy?
(And are the IF statements like
If UserHP < HalfHPBar then -- What else to do with this... How does it work out?> ) (I couldn't find it in the Lua Manual they had on their web site.)
|
|
|
Post by TinyTerror on Nov 1, 2005 18:35:22 GMT -5
|
|
Rzn
Junior Member
Posts: 55
|
Post by Rzn on Nov 5, 2005 10:52:58 GMT -5
Is there a command for running a script from a script? Tired useing control_SendString() but it bypasses the chat buffer so windower doesn't see it.
|
|
|
Post by TinyTerror on Nov 5, 2005 12:35:35 GMT -5
I think you are looking for the dofile command. dofile takes a string with the name of the file you want to run. It's pretty simple.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 6, 2005 15:27:50 GMT -5
Hey tiny, how do you set up a while statement with lua? Nothing comes to mind when I think I've looked into it before. And I have some c-ordinates set up in my script, I'll post again when I'm done, but My major roadblock is a while statement.
|
|
|
Post by TinyTerror on Nov 6, 2005 16:46:06 GMT -5
www.lua.org/pil/You need to look at the lua docs before asking simple things like this. It's right there, in section 4.3.2.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 6, 2005 17:10:17 GMT -5
Osheet! that's where all that stuff is.... >.> Sorry tiny, I had the refrence manual booked up. www.lua.org/manual/5.0/*Adds link to faviorites bar Don't expect me to ask stupid question there again... Or if I do, stare....
|
|
|
Post by TinyTerror on Nov 6, 2005 17:33:11 GMT -5
No questions are stupid, some are just lazy
|
|
psyic
New Member
Posts: 20
|
Post by psyic on Nov 7, 2005 0:20:29 GMT -5
Is there any way to determine the exact resolution of the FF screen the user is running? In theory, I suppose one could write a script to hollow down, then open the windower.ini (is that the file?) that has the res in it, but that's hella ghetto.
|
|
|
Post by TinyTerror on Nov 7, 2005 8:21:06 GMT -5
This is one of the things I added on saturday's release. I will update the docs as soon as I have a chance.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 7, 2005 9:53:55 GMT -5
Ok tiny I did look in the book this time.
I wrote a test script on my computer, and I wanted to know if in a while statemenet you could be inclusive with two cases:
IE:
PathPosX=FFXI.PlayerGetPosX()
X1= 16 X2= 25 While X1 < PathPosX < X2 --Execute the body code
end
Could I add an 'And' notation to while?
While X1 < PathPosX < X2 AND Y1 < PathPosY < Y2
-- Execute the body code end
this is like other languages, and I'm just checking for clairifacation.... Cause this is kind of generic.
|
|
psyic
New Member
Posts: 20
|
Post by psyic on Nov 7, 2005 10:47:53 GMT -5
Oh hey, petar, are you working on a nav script too? Maybe we should share notes.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 7, 2005 11:57:45 GMT -5
si si~ Except I'm working on a DPos system I thought of. I'll compare notes, but I think your system would be a little different. ^_^
|
|