|
Post by magnumxl on Jan 14, 2006 1:51:36 GMT -5
I just couldn't seem to get the target_GetTargetDistance( ) function to work for me. So i fired up the TargetInfo.lua that comes with Lunar and i notice that the number this function returns is alot higher than i expected (its like 439.899225) and that it updates ok when my target moves but not when i move. I'll post the code for TargetInfo even though we all already have it...
TargetInfo.lua
MyText=Graphics.text_CreateObject() Graphics.text_SetColor(255,255,255,255,MyText) Graphics.text_SetPosition(100,100,MyText) Graphics.text_SetFont("Arial",10,MyText) Graphics.text_SetVisibility(1,MyText)
while true do
Name=FFXI.target_GetName() X=FFXI.target_GetXPos() Y=FFXI.target_GetYPos() Z=FFXI.target_GetZPos() Heading=FFXI.target_GetHeading() Bearing=FFXI.target_GetBearing() BearingP=FFXI.target_GetBearingToPlayer() HPP=FFXI.target_GetHPPercent() Distance=FFXI.target_GetTargetDistance()
Output=string.format("TargetName: %s HP Percent: %i\r\nPosition: %f,%f,%f Heading: %f\r\nBearing: %f\r\nBearingToPlayer: %f Distance: %f",Name,HPP,X,Y,Z,Heading,Bearing,BearingP,Distance)
Graphics.text_SetText(Output,MyText) Windower.script_Sleep(1000) end
I did search the forums for the function but found nothing. Is this function currently working or have i somehow done something wrong?
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 14, 2006 4:43:10 GMT -5
The FFXI update on Dec 12, 2005 broke some functions and this one may have gone too. Tiny's working on getting a new release into running condition that has the all the new memlocs and more.
|
|
|
Post by TinyTerror on Jan 14, 2006 11:47:04 GMT -5
Yeah, ffxiread.dll is kinda hosed at the moment. I think starhawk is updating it, but I'm not 100% sure. Lunar wont be using it for long anyway.
|
|
|
Post by magnumxl on Jan 15, 2006 12:49:47 GMT -5
ok,np. as long as i know that it wasnt me, lol
|
|