Post by voltage on Dec 15, 2005 0:31:24 GMT -5
The following is unfinished due to a couple snags ive come across.
I'm trying to figure out the exact syntax for posting my variables to the text box (when i run this no text shows at all). And I also would like to know what type of value string.find returns... is it just true/false? Any help would be good... I learn from example best and not so well from the documentation ; ; Ive tried.
I'm trying to figure out the exact syntax for posting my variables to the text box (when i run this no text shows at all). And I also would like to know what type of value string.find returns... is it just true/false? Any help would be good... I learn from example best and not so well from the documentation ; ; Ive tried.
-- volt 12/14/05
s=true
box1=Graphics.primitive_CreateObject()
Graphics.primitive_SetColor(200,100,220,255,box1)
Graphics.primitive_SetPosition(300,400,box1)
Graphics.primitive_SetSize(200,100,box1)
Graphics.primitive_SetVisibility(1,box1)
txt=Graphics.text_CreateObject()
Graphics.text_SetColor(255,220,125,125,txt)
Graphics.text_SetPosition(300,400,txt)
Graphics.text_SetFont("Arial",10,txt)
Graphics.text_SetVisibility(1,txt)
while s==true do
newlinenum=FFXI.chat_GetNewestLineNumber()
newline=FFXI.chat_GetLine(newlinenum)
linetype=FFXI.chat_GetLineType(newlinenum)
end
if linetype==81 then-- Linetype 81 denotes a skillup line.
p1=string.find(newline,"Skill rises .1")
p2=string.find(newline,"Skill rises .2")
p3=string.find(newline,"Skill rises .3")
p4=string.find(newline,"Skill rises .4")
p5=string.find(newline,"Skill rises .5")
--
alchemy=string.find(newline,"Alchemy")
leather=string.find(newline,"Leatherworking")
gold=string.find(newline,"Goldsmithing")
cloth=string.find(newline,"Clothcraft")
smithing=string.find(newline,"Smithing")
wood=string.find(newline,"Woodworking")
bone=string.find(newline,"Boneworking")
fishing=string.find(newline,"Fishing")
cooking=string.find(newline,"Cooking")
end
--
while s==true do
Output=string.format("P1- %p1/nP2- %p2/nP3- %p3")
--set TextDisplay
Graphics.text_SetText(Output,txt)
end