Search found 436 matches

by BillDoorNZ
Thu Sep 20, 2012 6:13 pm
Forum: Runes of Magic
Topic: Trouble with my table...
Replies: 3
Views: 766

Re: Trouble with my table...

doh! you are missing comma's on the end of each line: zoneTable = { {zoneindex="1", ZoneId="1", myzone="1000", nodename="Logar", Npcname="Snoop the Stubborn", ZNpcID="111256", Npcx="-1163", Npcy="-5535", Npcz="36"}, {zoneindex="2", ZoneId="2", myzone="2000", nodename="VaranasSnoop", Npcname="Snoop t...
by BillDoorNZ
Thu Sep 20, 2012 6:11 pm
Forum: Runes of Magic
Topic: Trouble with my table...
Replies: 3
Views: 766

Re: Trouble with my table...

your gonna need to post your file, or everything from the start of the file till the end of your table.
by BillDoorNZ
Thu Sep 20, 2012 2:41 pm
Forum: Runes of Magic
Topic: Search nearest NPC until match found?
Replies: 14
Views: 1789

Re: Search nearest NPC until match found?

First thing I picked up on, this looks wrong. if ( settings.profile.options.PARTY == true ) and (settings.profile.options.PARTY_ICONS == true) then sendMacro('SetRaidTarget("target", 1);') if (settings.profile.options.PARTY_ICONS ~= true) then printf("Raid Icons not set in character profile.\n") en...
by BillDoorNZ
Thu Sep 20, 2012 5:16 am
Forum: Runes of Magic
Topic: Search nearest NPC until match found?
Replies: 14
Views: 1789

Re: Search nearest NPC until match found?

lisa wrote:if it was me I would just do the object search
ya see...thats your whole problem right there lisa...you aren't lazy enough ;)
by BillDoorNZ
Wed Sep 19, 2012 9:13 pm
Forum: Runes of Magic
Topic: Search nearest NPC until match found?
Replies: 14
Views: 1789

Re: Search nearest NPC until match found?

np :) you might want to use something like the code below to convert your table too: __npcDatabase = { 1={name="Snoop the Stubborn", x=123, y=987, z=456} 2={name="Mishlor", x=321, y=789, z=654} } local npcsToSeachFor = {}; for k,npc in pairs(__npcDatabase) do table.insert(npcsToSearchFor, npc.name);...
by BillDoorNZ
Wed Sep 19, 2012 8:13 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: useGoodie
Replies: 62
Views: 16589

Re: useGoodie

lisa wrote:
rock5 wrote:Edit: Oh look, I did post a version. I forgot all about it. My memory is not what it used to be.
yup your getting old, all down hill from here ;)
the plus side of that of course, is that its much easier going downhill ';)
by BillDoorNZ
Wed Sep 19, 2012 8:11 pm
Forum: Runes of Magic
Topic: Search nearest NPC until match found?
Replies: 14
Views: 1789

Re: Search nearest NPC until match found?

I would like to have a part of my code where it will search friendly NPCs starting from closest one to bot and keep searching until the NPC name(or ID) matches one in a list (or specifically, a table). I was wondering if someone could set me in the right direction for this? Thanks. check out the CP...
by BillDoorNZ
Wed Sep 19, 2012 4:12 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: useGoodie
Replies: 62
Views: 16589

Re: useGoodie

lol...you must have been in the zone when you did that ;)

the gods only know how often I've written code I cant remember writing :)

or, I deny writing anyway ;)
by BillDoorNZ
Wed Sep 19, 2012 3:48 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: Rock5's QuestLog Class
Replies: 61
Views: 13351

Re: Rock5's QuestLog Class

any chance you saw the address offsets for gold, xp and tp for the quest in there too Rock? :) Once I have all that, then that pretty much replaces all the calls I make to Rom. Which will be fantastic! I tend to disable my Quest Book updating when I play as it takes it too long to get all the quest ...
by BillDoorNZ
Wed Sep 19, 2012 3:29 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: Rock5's QuestLog Class
Replies: 61
Views: 13351

Re: Rock5's QuestLog Class

Finally had some time to start fiddling with this. I'm adding the following method to the CQuest class (as I use something like it ALL the time). It was a right pain to do this, as the 2 types of goals are held in separate tables. I might refactor a bit and amalgamate the two tables into 1 with a go...
by BillDoorNZ
Wed Sep 19, 2012 2:53 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: useGoodie
Replies: 62
Views: 16589

Re: useGoodie

heyas, I made some changes to rocks version of this a while back and have been meaning to post it in case anyone finds it useful. I'm inherently lazy so I tend to write more code to allow me to write less :). The code below are the comments from the top of the file explaining its usage: -- All this ...
by BillDoorNZ
Wed Sep 19, 2012 2:14 pm
Forum: Runes of Magic
Topic: Call function using variable in function name?
Replies: 8
Views: 1230

Re: Call function using variable in function name?

I have a couple quick questions about the information you gave me. In this: for k,v in pairs(table) do --this is 1 way to iterate over the table records if (v) then --just being safe and testing that v is no null - should prolly check for table too but am being lazy if (v.Npcname == npcToFind) then...
by BillDoorNZ
Wed Sep 19, 2012 2:38 am
Forum: Guild Wars 2
Topic: knowledge from beta weekend
Replies: 33
Views: 9154

Re: knowledge from beta weekend

heh...yeah, I got al lthat...thats not the grind for me... the whole game is just...a bit boring :) its seems more like an arcade game (e.g. Gauntlet for us older players ;) with better graphics and other than that, theres nothing particularly interesting about the game. Yes, I can switch weapon com...
by BillDoorNZ
Wed Sep 19, 2012 2:18 am
Forum: Guild Wars 2
Topic: knowledge from beta weekend
Replies: 33
Views: 9154

Re: knowledge from beta weekend

gl with that :) I might have a dabble at that too...just need to build some motivation...actually playing GW2 seems to have sucked out a lot of my motivation to do anything with it....am forcing my self to play to level ap, but ye gods is it a grind / effort to play. Ah well.
by BillDoorNZ
Tue Sep 18, 2012 11:52 pm
Forum: Runes of Magic
Topic: Call function using variable in function name?
Replies: 8
Views: 1230

Re: Call function using variable in function name?

Also, suppose I have a table with multiple information in it for each record, how would I pull specific information for each record? for example, if I had: table = { {myindex="1", Npcname="Snoop the Stubborn", Npcx="123", Npcy="987", Npcz="456"} {myindex="2", Npcname="Mishlor", Npcx="321", Npcy="78...
by BillDoorNZ
Tue Sep 18, 2012 11:45 pm
Forum: Runes of Magic
Topic: Call function using variable in function name?
Replies: 8
Views: 1230

Re: Call function using variable in function name?

function pointers are always fun...but they are made easy by lua :) given: function Func1() --do some stuff end; function Func2() --do some stuff end; function Func3() --do some stuff end; function Func4() --do some stuff end; method1: local myFunctionPointer = nil; if (someTest) then myFunctionPoin...
by BillDoorNZ
Tue Sep 18, 2012 7:25 am
Forum: Runes of Magic
Topic: Monitor chat ... if event XYZ, then load WP/file
Replies: 26
Views: 5996

Re: Monitor chat ... if event XYZ, then load WP/file

the .. concatenates the two strings together
by BillDoorNZ
Sun Sep 16, 2012 10:25 pm
Forum: Runes of Magic
Topic: Pretty Sick of "waiting on aggressive enemies"
Replies: 37
Views: 3768

Re: Pretty Sick of "waiting on aggressive enemies"

lol...I use notepad++ too...brilliant prog that one.

and an app called 'Everything' which searches all files on comp, blindingly fast :)
by BillDoorNZ
Fri Sep 14, 2012 9:10 am
Forum: Runes of Magic
Topic: Help for complete script
Replies: 14
Views: 2374

Re: Help for complete script

dont know that bank will work for you either...given its the guild bank, not a normal bank. Rock may know how that one works or have implemented stuff already.
by BillDoorNZ
Thu Sep 13, 2012 7:03 pm
Forum: Runes of Magic
Topic: Help for complete script
Replies: 14
Views: 2374

Re: Help for complete script

please put code and waypoint xml in code tags!!! makes it easier to read not sure who "Gildentresor-Schalter" is - assume bank npc? What you need to do is: 1) talk to the bank npc and get them to open your bank bag (Use the ChoiceOptionByName helper method) 2) use rocks item stuff to find the item y...