Search found 13 matches

by runensammler
Thu Dec 02, 2010 3:52 am
Forum: Runes of Magic
Topic: Question for Rock5
Replies: 8
Views: 3928

Re: Question for Rock5

I'm not used with tags and here in the Office i have no runes or bot installed but i think the solution could look like this: (dont'n beat me if the syntax isn't correct) If you have the desired amount of items the bot will "Continue", "else" it will do it "Again". <!--...
by runensammler
Tue Nov 09, 2010 4:28 pm
Forum: Runes of Magic
Topic: active char
Replies: 3
Views: 1452

Re: active char

Hi.

Code: Select all

accountname = RoMScript("GetAccountName();");
gives you the - yes right - the accountname :D

and in

Code: Select all

player.Name
ist the name of the actual player stored.
by runensammler
Wed Nov 03, 2010 6:46 am
Forum: Runes of Magic
Topic: "While-loop" problem
Replies: 6
Views: 2281

Re: "While-loop" problem

ad Problem 2 I think its because the bot finishes the waypoint and then goes to the indexed one No, the code for the waypoint will be completed. Thtas what i meant with finishing the waypoint :D Also you can use the new function waitForLoadingScreen() instead of the player:rest(30) command. It will...
by runensammler
Tue Nov 02, 2010 3:04 pm
Forum: Runes of Magic
Topic: Improve code for the elfs daily quest
Replies: 85
Views: 32407

Re: Improve code for the elfs daily quest

swietlowka wrote:it happedns that the bot stops there for no reason, i used a loop that check if the q is done and if not the target again
I do the same - but i check if the questitem is there and if not i repeate ;)
by runensammler
Tue Nov 02, 2010 3:01 pm
Forum: Runes of Magic
Topic: "While-loop" problem
Replies: 6
Views: 2281

Re: "While-loop" problem

ad Problem 1 while (inventory:itemTotalCount(203038) >= 30) -- PROBLEM 1 I experienced some problems with >= so i always use only the > try this one while (inventory:itemTotalCount(203038) > 29) -- PROBLEM 1 ad Problem 2 I think its because the bot finishes the waypoint and then goes to the indexed ...
by runensammler
Tue Nov 02, 2010 6:45 am
Forum: Runes of Magic
Topic: writing special data into file
Replies: 13
Views: 4862

Re: writing special data into file

Personalausweis wrote:tried it with:
do i need to "load" this file when starting the waypoints?
No - there's no load needed.

Can someone else test this if it works?

Maybe some speciality of my client so it works only for me ???
by runensammler
Mon Nov 01, 2010 12:28 pm
Forum: Runes of Magic
Topic: Improve code for the elfs daily quest
Replies: 85
Views: 32407

Re: Improve code for the elfs daily quest

Hi.
Try this code instead

Code: Select all

while 1 > inventory:getItemCount(204840) do
	player:target_Object(112976,500);
	yrest(100);
end;
by runensammler
Mon Nov 01, 2010 12:24 pm
Forum: Runes of Magic
Topic: writing special data into file
Replies: 13
Views: 4862

Re: writing special data into file

Hi.

Have you put the the Write_tokens() function in Addon_something.lua under Scripts\rom\userfunctions?
by runensammler
Fri Oct 29, 2010 1:05 pm
Forum: Runes of Magic
Topic: writing special data into file
Replies: 13
Views: 4862

Re: writing special data into file

But that's the right way.

just before you end the bot you add

write_tokens();

in your waypoint file

Caution: if you are using W7 start the bot as admin to have suffitiant rights.

hope it helps.
by runensammler
Thu Oct 28, 2010 1:34 pm
Forum: Runes of Magic
Topic: writing special data into file
Replies: 13
Views: 4862

Re: writing special data into file

sry - but it's no good to post untested code - espatially if u worked whole day :shock: function write_tokens() accountname = RoMScript("GetAccountName();"); mmfolder = "c:\\temp" os.execute("mkdir "..mmfolder.."\\logs\\"..accountname); logfile = assert(io.ope...
by runensammler
Wed Oct 27, 2010 4:33 pm
Forum: Runes of Magic
Topic: writing special data into file
Replies: 13
Views: 4862

Re: writing special data into file

Hi. Create a file addon_writetokens.lua in the userfuntions Copy the code in the file function write_tokens() servername = RoMScript("GetServerName();"); accountname = RoMScript("GetAccountName();"); mmfolder = getExecutionPath(); os.execute("mkdir "..mmfolder.."//...
by runensammler
Mon Oct 25, 2010 2:25 pm
Forum: Runes of Magic
Topic: Waiting for loading screen function.
Replies: 14
Views: 5717

Re: Waiting for loading screen function.

Both the Worldframe and the Player exists methods are nice, but i use the pointer for my
Autoit steering programm.
I control the about 7 Accounts (=56 chars) and most of the chars have different waypoints for different tasks.
by runensammler
Sun Oct 24, 2010 12:18 pm
Forum: Runes of Magic
Topic: Waiting for loading screen function.
Replies: 14
Views: 5717

Pointer changed - but i got it :)

Hi rock. What do you think? I love your pointer. I use it inside some Rombot scripts and in my steering program (written in Autoit) Currently it looks like this. function waitForLoadingScreen() if memoryReadBytePtr(getProc(), 0x00A08960, 0x0C) == 0 then -- wait for loading screen repeat yrest(1000) ...