|
Post by X-Drop on Dec 5, 2005 23:41:39 GMT -5
Nothing special here. I just modified the sample script that came with Lunar. The script will now display the last 5 chat lines and your player's current status code. I like to run this script to get a better understanding of the relationship between your character's onscreen activities and the associated chat codes and player codes. --ChatLine.lua 12/3/2005 Xdrop
LineNumber={} Type={} Chat={}
MyText=Graphics.text_CreateObject() Graphics.text_SetColor(255,255,255,255,MyText) Graphics.text_SetPosition(140,380,MyText) Graphics.text_SetFont("Arial",10,MyText) Graphics.text_SetVisibility(1,MyText)
while true do
for i=1,5,1 do LineNumber[i]=FFXI.chat_GetNewestLineNumber()-(i-1) Type[i]=FFXI.chat_GetLineType(LineNumber[i]) Chat[i]=FFXI.chat_GetLine(LineNumber[i]) end
Status=FFXI.player_GetStatus() ChatLine=string.format("Line: %i Type: %s Chat: %s\r\nLine: %i Type: %s Chat: %s\r\nLine: %i Type: %s Chat: %s\r\nLine: %i Type: %s Chat: %s\r\nLine: %i Type: %s Chat: %s\r\nPlayer Status: %i\r\n",LineNumber[5],Type[5],Chat[5],LineNumber[4],Type[4],Chat[4],LineNumber[3],Type[3],Chat[3],LineNumber[2],Type[2],Chat[2],LineNumber[1],Type[1],Chat[1],Status) Graphics.text_SetText(ChatLine,MyText) end
A few new codes to note, Player Status: 50 - Player is Fishing Line Types: 88 - character is logging out message 00 - character enters a new area - chatting with moogle 8c - clock info The list goes on and on... so go check 'em out.
|
|