Help - Search - Members - Calendar
Full Version: ffxi_info.inc
AC Tools Everything Macro > AC Tool Macros > Final Fantasy XI Online
Pages: 1, 2, 3, 4
rzn
CODE

(*
//ver 0.8r4
//current functions
//mise
timestamp $info_zone_name                               //4-25-06
//timestamp $info_zone //by cgrinds
timestamp $info_keyboard //returns 1=compact 0=full,    //4-25-06

//chat:
timestamp $info_chat_last_line //only shows incomming chat
timestamp $info_chat_last_action            //4-25-06

//self
timestamp $info_tp                   //4-25-06
timestamp $info_hp_current                              //4-25-06
timestamp $info_hp_max                                  //4-25-06
timestamp $info_mp_current                              //4-25-06
timestamp $info_mp_max                                  //4-25-06
timestamp $info_player_stat                             //4-25-06
timestamp $info_view                                    //4-25-06
timestamp $info_player_gil                              //4-25-06
timestamp $info_Player_posX
timestamp $info_Player_posz
timestamp $info_Player_posy
timestamp $info_Player_posr
timestamp $info_Player_posh
timestamp $info_Limit_Points
timestamp $info_Merit_points
timestamp $info_exp_current                             //4-25-06
timestamp $info_exp_max                                 //4-25-06
timestamp $info_job_main                                //4-25-06
timestamp $info_job_main_lv                             //4-25-06
timestamp $info_job_sub                                 //4-25-06
timestamp $info_job_sub_lv                              //4-25-06

//inv
timestamp $info_inv_itemnum                             //4-25-06
timestamp $info_inv_count                               //4-25-06
timestamp $info_inv_itemName //works with AH also       //4-25-06
timestamp $info_item_stack               //4-25-06

//target
timestamp $info_target_sub //returns true/false         //4-25-06
timestamp $info_target_hp                               //4-25-06
timestamp $info_target_name                             //4-25-06
timestamp $info_target_stat                             //4-25-06
timestamp $info_target_posX                             //4-25-06
timestamp $info_target_posZ                             //4-25-06
timestamp $info_target_posY                             //4-25-06
timestamp $info_target_posH                             //4-25-06

//mise
timestamp $info_shopcraft_quantity           //4-25-06
timestamp $info_shopcraft_quantity_max         //4-25-06

//menu
timestamp $info_menu_help                               //4-25-06
timestamp $info_Menu_TopLeftText                        //4-25-06

//AH
//procedure info_ah_bid using amount //by leggmann      //4-25-06
timestamp $info_AH_itemnum               //4-25-06
timestamp $info_ah_lastprice
timestamp $info_bid_amount                               //4-25-06
timestamp $info_bid_place //1s,10s,100s ect              //4-25-06

//fish
timestamp $info_Fish_RodLocation //by DT 3D09CB
timestamp $info_Fish_MaxHP //by DT
timestamp $info_Fish_CurrentHP //by DT
*)


To use this include you must add this to your script:
CODE

include .\FFXI_info.dat  //or the path if it's not in the same folder

constants
window = FFXiApp - Windower Enabled    //or the name of your ffxi window
end




updated:
5-8: fishing updated i think
4-29" info_gill new memloc
4-25: same .dat forgot to include the zones.xml
4-25: some new memlocs
4-5 added Cgrinds zone code, added zone name
4-5 fixed pos and $info_bid_place
4-4: very much untested
3-30: see list above. I'm sure something isn't working. I need a nap.
3-29: minor bug in target hp
3-28: added tager status. fixed chat last line and menu top left
3-25: rewrite, added inv, target name, and shop/craft quanity. Chat bug fixed


I'd like to thank DT for the great examples in his fishing bot, not sure i would have finished this with out them.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Useful offsets

Draw Distance : 3A537E
Model Detail : 3A536E
Models Displayed : 3A5350 (255 max)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
treymok
ph34r.gif
rzn
At presnt ffxi_info does not have inv_current_item. I have messed with it but the problem is following the inv array for each item. I'm not saying actool can't do it but i haven't been able to make it.
rzn
updated
cgrinds
wow! nice work^^
mrtickels
QUOTE (cgrinds @ Mar 24 2006, 12:50 AM)
wow! nice work^^

very
rzn
eh it does ok a little cpu heavy and i can't figure out why it cuts the last 4-6 chaters off the end of some strings.

i'm still woring on inv stuff so i should have a update in the next few days.
treymok
ph34r.gif
bigswig
QUOTE (treymok @ Mar 24 2006, 03:26 AM)
Inventory Item

CODE
Procedure ItemName
    Call ItemInit 42D600
    Call GetPointer
    Call GetPointer 20
    Call GetPointer 3104
    Call ReadMem CString
    SetConst Result = $memResult
End

ohh, looks to me like thatll help in fixxing the SynthBot /cheers
treymok
ph34r.gif
cgrinds
QUOTE (rzn @ Mar 24 2006, 01:36 AM)
eh it does ok a little cpu heavy and i can't figure out why it cuts the last 4-6 chaters off the end of some strings...

I think its cpu heavy because it tries to process the chatlog. Fortunately (for me, at least) thats the one thing left that FFACT still does, so I just use ffact to handle the chatlog so the script doesnt get bogged down by it all.

Still, I am very impressed with the work you have accomplished so far. Keep it up!
rzn
After spending hours knee deep in memory i have working inventory offsets. That said i now have to rewrite my memory read code so i should have a update with inventory sometime tomorrow.
treymok
ph34r.gif
rzn
Yes all you have to do is include it to use its functions.


CODE

include .\ffxi_info.inc
rzn
updated

should be able to get the synth bots working now

This is a rewrite so there has to be errors. Let me know and i'll update as needed.
treymok
ph34r.gif
eragon
Hi all smile.gif

A little background: I've just started out using AC Tools. I've tried out the FFACT, but it seems it's quite outta date for the time beeing. The only info FFACT gives me atm is the chat log functions. Player name, hp, Target name, hp and stuff is outta order.

Then i came across this interesting thread! I would really love to use this simple include file in my AC Tools macros and invent stuff myself ^^ I've also read all the threads up to this one, but it seems that noone have encountered the problem i'm currently having. When i use the following code (mentioned in the top thread):

CODE

include .\ffxi_info.inc  //or the path if it's not in the same folder

constants
window = 3624    //or the name of your ffxi window
end

Delay 3 sec

Keys $info_chat_last_action


I get the following runtime error when running the macro:

QUOTE

Error: Invalid format for line: _info_strTrim $_info_str!

Module: ffxi_info.inc Line: 58


Am I missing something important here? Sorry if this is a stupid question to you guys. Look forward to hearing from you!
cgrinds
QUOTE (eragon @ Mar 26 2006, 01:30 PM)
QUOTE

Error: Invalid format for line: _info_strTrim $_info_str!

Module: ffxi_info.inc Line: 58


Am I missing something important here? Sorry if this is a stupid question to you guys. Look forward to hearing from you!

Try replacing line 58 in ffxi_info.dat with
CODE
strTrim $_info_str

its a typo on the original file I think...
rzn
I could swear i fixed that once. OP updated thanks

also added $info_Menu_TopLeftText
treymok
ph34r.gif
eragon
Hi again smile.gif Refering to my previously posted thread. Thanks for solving my first problem cgrinds smile.gif However, I've sadly encountered another error message when using the same macro as previously mentioned:

QUOTE

Error: Invalid format for line: _info_strcopy _info_temp = $_info_memresult, 0, $_info_count!

Module: ffxi_info.inc Line: 120


Sorry again if I'm creating alotta mess for you guys...
eragon
While I'm at it. When I run the following code:

CODE

include .\ffxi_info.inc  //or the path if it's not in the same folder

constants
window = 3912    //or the name of your ffxi window
end

Call $info_target_hp


I get the following error message:

QUOTE

Error: Procedure 100 could not be found!

Module: ffxi_info.inc Line: 111


Looking forward to any response at all ^^
eragon
* I'm sorry for my last post. I soon realized that i was trying to call prosedure 100, which in fact was the hp of my target. lol. well. i guess i got the ffxi_info.inc to finally work then ^^

* however my second post still stands (info_chat_last_action still produces an error).

* I also tried out "info_chat_last_line" and this one only returned an empty string. I made sure to check if the chatlog had entries and it did. might it be a wrong offset?

I'm hoping to produce a nice fishing bot to use this include file. If it's a success i'll upload it here of course ^^

Smooth! Cyah!
rzn
i'll go over it when i get home i have to update the upper left menu text pointer also
cgrinds
QUOTE (eragon @ Mar 27 2006, 11:47 AM)
* however my second post still stands (info_chat_last_action still produces an error).

* I also tried out "info_chat_last_line" and this one only returned an empty string. I made sure to check if the chatlog had entries and it did. might it be a wrong offset?

Well, in my PL bot I use FFACT to handle that. FFACT is sooooo much faster at processing the chatlog than any other method that has been discussed, and on top of it - the chatlog is processed in the background so your script is not bogged down by processing it all.

Luckily, this function of FFACT still works for me smile.gif

the FFXI_info include is marvelous! I will likely use it (or some form of it) for my v5 release of the cardian angel.
eragon
First, both of you: rzn and cgrinds, thx for all the help so far ^^

Funny that you should mention the processing speed of FFACT vs ffxi_info cgrinds. I'm using both info_Target_Name and info_target_hp (this one i use multiple time over looping) in my current macro. It seems they are very slow (provided my algorithm isn't crapping everything up). Could it be my algorithm stinks, or is it ffxi_info that's sucking up processing time? I've got a reasonable fast computer. 1GB memory, intel pentium 4 (about 2.8 Ghz cpu speed i think - hyperthreading technology).

For instance, I've just tried a simple while loop like this:

CODE

while 1=1
TimeStamp $info_target_hp
end


This yielded the following timestamp log:

QUOTE

TimeStamp: 03/27/2006 09:07:50:468 pm - 100
TimeStamp: 03/27/2006 09:07:56:437 pm - 100
TimeStamp: 03/27/2006 09:08:02:296 pm - 100
TimeStamp: 03/27/2006 09:08:08:312 pm - 100
TimeStamp: 03/27/2006 09:08:13:578 pm -


Seems it uses about 6 seconds for every call to the info_target_hp-function.
rzn
your script is trying to run too fast. try adding a delay 500 in there.
eragon
thx for the tip rzn smile.gif Sadly it didn't cut down the lag mentionably. I tried minimizing my AC Tool window before running the macro tho, and that cut down the time drastically. I'm going into the process of tweaking now ^^ Hopefully I'll get a bot up and going soon smile.gif
rzn
fixed the last_action error and the chat last line memloc (not well tested tho)

fixed menu_top_left

added target_stat

next update will have the rest of the menu text, exp, gil and whatever cgrinds asks for next.
drewlt
just a thought - offsets greater than 6 chars are usually pointed to (well, everything is pointed to, don't always need to find the pointer) and may not work on other machines or other instances of ffxi.

smile.gif -DT
eragon
sweet rzn smile.gif you're the man!
cgrinds
QUOTE (rzn @ Mar 28 2006, 11:03 AM)
next update will have the rest of the menu text, exp, gil and whatever cgrinds asks for next.

the next version needs to provide coffee 100% of the time that $coffee_cup_volume <= 25%.

oh, and also it should make me pancakes whenever $hunger > 0. The $pancake_syrup should be set to 'maple', and $butter = true.

ROFL
treymok
ph34r.gif
rzn
lmao

I'll see what i can do.
leggmann
Maybe I'm ignorant but what is shopcraftquantity??
eragon
sweetness cgrinds. hahahaha.
rzn
$info_shopcraft_quantity
$info_shopcraft_quantity_max

user posted image
Grubby66
is the whole synth bot workin?
cgrinds
QUOTE (Grubby66 @ Mar 28 2006, 10:26 PM)
is the whole synth bot workin?

discuss this in another topic (or start one for it, if it doesnt exist)
treymok
ph34r.gif
leggmann
I mean what is it?? I don't understand the words shopcraftquantity and how they relate to ffxi.

Oh The picture hadn't loaded before I posted I swear.

So shopcraftquantity is the number that you have selected to purchase, and the max is 5 as shown in that picture?
drewlt
I don't know what it is either, but I can guess. "Shop Craft Quantity" hmm... what does Shop have to do with Craft have to do with Quantity? When I Shop for something, I have to enter a quantity - hmm.... when I Craft, a very similar box pops up asking for quantity.

I'd start there...

smile.gif -DT


edit: Treymok / Treyrok - is that really a good idea to use a sig that pulls your real player name and server on a forum that supports something against the TOS? ... 'less you cheated vanaguide.... Just a thought.
eragon
treymonk. aww man i'm getting jealous of your gif animation
treymok
ph34r.gif
cgrinds
QUOTE (treymok @ Mar 29 2006, 12:30 PM)
I thought about that but then again the sig is against TOS no matter where I post it I guess.

Now THAT is funny
eragon
I think _target_hp offset is missing in the constants list in the bottom of FFXI_info.dat. perhaps i'm wrong, but i got an error message using this. Anyone remember the offset? I got the error message when using the "$info_target_hp" function.
rzn
use $_info_target offset i changed the target stuff to use one offset and forgot to update it
eragon
ahh. cool smile.gif thx again!
Grubby66
QUOTE (eragon @ Mar 29 2006, 03:46 PM)
ahh. cool smile.gif thx again!

where are the bot synth ACtool macro ; ; how am i suppose using this script for?
rzn
Updated ver0.5 full functions list in OP

offsets i need but haven't been able to find

current day
current moon
current time
region control
zone name/id
equipment array //as in where you equip gear
input buffer
and something else i can't remember right now.

If you can give offsets great but i'd rather know how they were found.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.