Post Reply Home » Forums » Vanguard » VGExtreme General Discussion

chat log : VGExtreme General Discussion

Posted: April 19th, 2007
User avatar
Total Posts:527 Joined:2005
Stay = 1
Do While (Stay = 1)
Do While Not (Infile.atEndOfStream ) ' do while not EOF
Line = Infile.ReadLine ' Read a Line from InFile
If Instr (Line, "is already over") Then
Stay = 0
end if

Ok my problem is that the scipt makes the log file but it dosn't enter the if statement when the text is true.

The text is in the log.txt but it just seems its not reading it..

BTW i copyed this block from someone else script

danzar
Posted: April 19th, 2007
gheezer
Danzar, try:

If Instr(Line, "is already over") > 0 Then

or

If Instr(1, Line, "is already over") > 0 Then
Posted: April 27th, 2007
User avatar
Total Posts:527 Joined:2005
I have figured out what i am doing wrong.. My script it reads the whole text file everytime i start the the script. So i need to knwo how to make it just read like the last 3 lines or just theres abouts.

thanks
danzar
Posted: April 27th, 2007
User avatar
Total Posts:527 Joined:2005
i got it figured out. i had a sleep delay killing me in a if statement that was making me think it wasnt responding right..

Danzar
Posted: April 28th, 2007
User avatar
Total Posts:527 Joined:2005
how would i make it so that the read line would not reread the same line twice?
Posted: April 28th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
HMm.. i looked at it. The problem is it needs a small update.

It is missing the chat channel. Ie [General], [Combat] etc at the very beginning of the line. As a temp fix, remove duplicate messages from each channel. I should have fix up by tomorrow though.

I would not read the whole log every time. I would use a FSO file object (or the built in xum log reading commands) so that it only reads "NEW" lines. You can call it over and over, and it will return "" unless there is new text.

_________________
Use Search first, ask questions later!
Posted: April 28th, 2007
User avatar
Total Posts:527 Joined:2005
Ok Awsome thank you for your help.

Danzar
BTW get my account back tomorrow woohoo
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
May 1, 2007 - VGExtreme v1.10

-- Bugfix VG chat log now logging the correct chat window name
-- Added Crafting:

Crafting functions are starting to go in. Most are self explanatory. But, holler if you need help!

'Function Crafting_State
'Function Crafting_StepHealth(step)
'Function Crafting_ComplicationHealth(step)
'Function Crafting_StageCount
'Function Crafting_StepCount
'Function Crafting_Stage
'Function Crafting_ActionPointsMax
'Function Crafting_ActionPointsLeft
'Function Crafting_Quality
'Function Crafting_QualityLetter
'Function Crafting_CurrentStageHealth
'Function Crafting_RecipeId
'Function Crafting_RecipeSectionName
'Function Crafting_RecipeNumUses
'Function Crafting_RecipeDescription
'Function Crafting_RecipeName
'Function Crafting_ActionDescription(step)
'Function Crafting_RemedyDescription(step)
'Function Crafting_ToolTipDescription
'Function Crafting_ToolTipName

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
User avatar
Total Posts:527 Joined:2005
AWSOME MAN!!~
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 6 guests
Post Reply