Search found 529 matches

by noobbotter
Wed Mar 13, 2013 11:02 pm
Forum: Runes of Magic
Topic: Script to detect number keypad input
Replies: 6
Views: 1614

Script to detect number keypad input

I'm working on a script that I can use while running one character (who will be a party leader), with a different script for party member, where I can go questing with the lead and the follower bot will follow, accept quests I accept, turn in quests, etc.. I've got the basic communications figured o...
by noobbotter
Tue Mar 12, 2013 8:46 am
Forum: Userfunctions, waypoint scripts, etc.
Topic: Rock5's QuestLog Class
Replies: 61
Views: 22354

Re: Rock5's QuestLog Class

Excellent. I'll look into that and see what I can figure out. thanks.
by noobbotter
Tue Mar 12, 2013 7:53 am
Forum: Userfunctions, waypoint scripts, etc.
Topic: Rock5's QuestLog Class
Replies: 61
Views: 22354

Re: Rock5's QuestLog Class

Hey Rock, I didn't see anything in this class but was wondering if there is already a way, or if you would be able to figure out a way, where when you manually accept a quest, the quest name could be either logged or put into a variable? I didn't see anything in the QuestLog Class that would do that...
by noobbotter
Sat Mar 09, 2013 12:27 pm
Forum: Runes of Magic
Topic: How to Add info to a table?
Replies: 8
Views: 1793

Re: How to Add info to a table?

That's a good point. Why run checkbags() on every onleavecombat when I can just run it at the one waypoint where I check it? Thanks for clearing up the variable declaration thing. I've always had trouble with that. Once side question here... I'm trying to use a carpentry encyclopedia inside my house...
by noobbotter
Sat Mar 09, 2013 8:37 am
Forum: Runes of Magic
Topic: How to Add info to a table?
Replies: 8
Views: 1793

Re: How to Add info to a table?

Thanks everyone. I'll resume working on this once I figure out this other little issue I'm having. In my onload section, I have a custom onLeaveCombat function which among other things will call my checkBags() function. Basically, if bags 1 thru 3 are full at the time of leave combat it will set var...
by noobbotter
Fri Mar 08, 2013 3:04 pm
Forum: Runes of Magic
Topic: How to Add info to a table?
Replies: 8
Views: 1793

Re: How to Add info to a table?

Thanks for giving me a place to start with that. I created a rough function to check nearby players and add them into a table. The table construct is basically going to look like this: playerTable = { "Someguy" = {foundtime = time found , updatetime = time updated }, "Anotherplayer&qu...
by noobbotter
Fri Mar 08, 2013 1:47 pm
Forum: Runes of Magic
Topic: How to Add info to a table?
Replies: 8
Views: 1793

How to Add info to a table?

I'm creating my own custom function that will check for any nearby players within a certain distance. If found, and that player isn't already in the table, I want to add that player's name to a table along with the time the player was found. My end goal here is that the bot will compare the table wh...
by noobbotter
Fri Mar 08, 2013 8:29 am
Forum: Runes of Magic
Topic: Help need to make questbot
Replies: 49
Views: 11489

Re: Help need to make questbot

I came across this old thread and just happened to be doing a waypoint last night where I would leave the house and this is what I used: NPCTeleport("Housekeeper", "Leave the house"); Seemed to work pretty well. Of course, this requires the Teleporter helper function found here ....
by noobbotter
Wed Mar 06, 2013 1:30 pm
Forum: Runes of Magic
Topic: Using the for command
Replies: 4
Views: 1231

Re: Using the for command

Oh, sweet. I didn't know that function would do partial patches because I couldn't find any examples of that function where someone used partials. That will also prevent me from having to do "Fearless I", "Fearless II, "Potential I", "Potential II", etc.... Thanks ...
by noobbotter
Wed Mar 06, 2013 12:19 pm
Forum: Runes of Magic
Topic: Using the for command
Replies: 4
Views: 1231

Re: Using the for command

Thanks for the good explanation Rock. So then what I am looking for would be something like this? function move_to_bank() for i, v in pairs(bankitems) do itemObj = inventory:findItem(v) if itemObj then itemObj:moveTo("bank") end end end Another question... In a separate table I'll be using...
by noobbotter
Wed Mar 06, 2013 11:21 am
Forum: Runes of Magic
Topic: Using the for command
Replies: 4
Views: 1231

Using the for command

I'm working on building a function to call to deposit certain items from my backpack into my bank. I'm not exactly certain how the "for" command works with using a table. For example, I build a table with the names or IDs of the items I want to deposit into my bank, let's call this table &...
by noobbotter
Thu Feb 21, 2013 11:39 pm
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Re: Problems with quests with particular NPC

It was having weird issues so I decided to revert to using the ID for targeting him. Once I did that, it cleared up any problems of completing that one quest. For anyone interested, here's how I finally got it to work. Very simple, actually. player:target_NPC(117632); AcceptQuestByName("Family ...
by noobbotter
Thu Feb 21, 2013 6:48 am
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Re: Problems with quests with particular NPC

Well, initially, it seemed the visibility flag worked, but on a later quest at that same person, I found that even using that invisibility flag, it would find the NPC twice in one run through the loop, so I'm not really sure now if it's working or if I got lucky the first time I tried it. It will ta...
by noobbotter
Wed Feb 20, 2013 10:53 pm
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Re: Problems with quests with particular NPC

Ok, new question. I had the above workign but ran into a new questing problem. On quests where you accept the quest, then you talk to that person, then turn in quest, I normally just use target NPC to talk to them. However, on this one, when you target them, it brings up the dialogue window containi...
by noobbotter
Wed Feb 20, 2013 9:59 am
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Re: Problems with quests with particular NPC

That does look a lot better. I'll try the one for checking for invisibility. Thanks again. edit: Ok, how does this look? Of course, I can't test it until I get home later. function findQuestNPC(npcname,questname,AcceptorComplete) curnpcid = 0; local objectList = CObjectList(); objectList:update(); f...
by noobbotter
Wed Feb 20, 2013 8:27 am
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Re: Problems with quests with particular NPC

Thanks Rock. Getting the visible one's ID and use that in the script sounds like the easy way to go. Then again, thinking about it, it might not be too hard to implement something that would find the nearest NPC with that name, try to accept quest (or check to see if he has that quest), and if not, ...
by noobbotter
Tue Feb 19, 2013 10:44 pm
Forum: Runes of Magic
Topic: Problems with quests with particular NPC
Replies: 10
Views: 2068

Problems with quests with particular NPC

NPC Shaman Fogg in Lyonsyde Tribe in CoO is giving me troubles. He won't let my bot turn in or accept quests. I'm using: player:target_NPC("Shaman Fogg"); CompleteQuestByName("Test Results"); yrest(1000); AcceptQuestByName("Go to"); yrest(1000); For some reason, when th...
by noobbotter
Mon Feb 18, 2013 6:48 pm
Forum: Runes of Magic
Topic: Create and read from logfile?
Replies: 11
Views: 2525

Re: Create and read from logfile?

I've kinda changed my mind. Instead of tracking it by quest, I'm going to track the bot's progress by logging waypoints so if I need to resume, I can resume straight from the last waypoint I left off at. I'm planning on doing regular quests (not dailies unless needed to fill in missing xp to get to ...
by noobbotter
Mon Feb 18, 2013 4:17 pm
Forum: Runes of Magic
Topic: Create and read from logfile?
Replies: 11
Views: 2525

Re: Create and read from logfile?

That was easy. Ok Rock, one final question on this topic. Variable type manipulation... If I wanted to store a number in that log, if a variable was a number would it write that number to the log just as it does text? I know when I go to read that number out from the log, it will store it into whate...
by noobbotter
Mon Feb 18, 2013 1:43 pm
Forum: Runes of Magic
Topic: Create and read from logfile?
Replies: 11
Views: 2525

Re: Create and read from logfile?

Thanks, Rock. That's perfect. I'll use that method. However, I've decided to change the way it's going to keep track of where the bot was at. I'm instead going to track it by which waypoint file he was running, and what the last major waypoint was. Of course, with that, I'm also going to have to tra...