Search found 6 matches

by Gautman
2005-05-10 15:04:02
Forum: Help
Topic: Another question
Replies: 9
Views: 1775

I never used arrays before, but I will try. Thanks :wink:
by Gautman
2005-05-10 02:20:28
Forum: Help
Topic: Another question
Replies: 9
Views: 1775

I want to loop because the file is kinda short and I want the script running 24/7/365 :lol:

But your previous answer was right, It now works perfectly.
Thanks for your help !
by Gautman
2005-05-09 18:12:58
Forum: Help
Topic: Another question
Replies: 9
Views: 1775

I didn't explained the problem well...
The script works prefectly one time, but when arrived at the end of file and coming back at the begining, its hangs on the f.open() instruction and send the "runtime error, invalid file". However, i'm sure that the f.close() instruction has been executed.

I ...
by Gautman
2005-05-09 15:12:53
Forum: Help
Topic: Another question
Replies: 9
Views: 1775

Oups, using repeat as a label wasn't a good idea :lol:

But it doesn't work, I got an "runtime error, invalid file" when it come back at the "f.Open()" instruction...
by Gautman
2005-05-09 00:07:43
Forum: Help
Topic: Another question
Replies: 9
Views: 1775

Another question

I am working on this script to macro my carpentry skill. The script works but there remain a little problem :


sub main()

Var Treetype
Var Treex=0
Var Treey=0
Var Treez=0
Var f=file("records.txt")

repeat:

f.Open()

beginlumberjack:

If NOT f.EOF ...
by Gautman
2005-05-07 01:40:27
Forum: Help
Topic: Is there a way to check if a player or gm arrived
Replies: 1
Views: 894

Is there a way to check if a player or gm arrived

Injection is a great tool, I've made some wonderfull scripts to gain skills, gold, etc.
But I have a problem with gamemasters who are everywere on my shard and don't allow macroing while not in front of screen. So here's my question :
Can I check if someone like a player or a gm appear on my ...