Search found 436 matches
- Thu Sep 20, 2012 6:13 pm
- Forum: Runes of Magic
- Topic: Trouble with my table...
- Replies: 3
- Views: 1302
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&qu...
- Thu Sep 20, 2012 6:11 pm
- Forum: Runes of Magic
- Topic: Trouble with my table...
- Replies: 3
- Views: 1302
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.
- Thu Sep 20, 2012 2:41 pm
- Forum: Runes of Magic
- Topic: Search nearest NPC until match found?
- Replies: 14
- Views: 3096
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 ...
- Thu Sep 20, 2012 5:16 am
- Forum: Runes of Magic
- Topic: Search nearest NPC until match found?
- Replies: 14
- Views: 3096
Re: Search nearest NPC until match found?
ya see...thats your whole problem right there lisa...you aren't lazy enoughlisa wrote:if it was me I would just do the object search
- Wed Sep 19, 2012 9:13 pm
- Forum: Runes of Magic
- Topic: Search nearest NPC until match found?
- Replies: 14
- Views: 3096
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(npcsToS...
- Wed Sep 19, 2012 8:13 pm
- Forum: Userfunctions, waypoint scripts, etc.
- Topic: useGoodie
- Replies: 62
- Views: 25020
Re: useGoodie
the plus side of that of course, is that its much easier going downhill ';)lisa wrote:yup your getting old, all down hill from hererock5 wrote:Edit: Oh look, I did post a version. I forgot all about it. My memory is not what it used to be.
- Wed Sep 19, 2012 8:11 pm
- Forum: Runes of Magic
- Topic: Search nearest NPC until match found?
- Replies: 14
- Views: 3096
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...
- Wed Sep 19, 2012 4:12 pm
- Forum: Userfunctions, waypoint scripts, etc.
- Topic: useGoodie
- Replies: 62
- Views: 25020
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
the gods only know how often I've written code I cant remember writing
or, I deny writing anyway
- Wed Sep 19, 2012 3:48 pm
- Forum: Userfunctions, waypoint scripts, etc.
- Topic: Rock5's QuestLog Class
- Replies: 61
- Views: 22339
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 ...
- Wed Sep 19, 2012 3:29 pm
- Forum: Userfunctions, waypoint scripts, etc.
- Topic: Rock5's QuestLog Class
- Replies: 61
- Views: 22339
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...
- Wed Sep 19, 2012 2:53 pm
- Forum: Userfunctions, waypoint scripts, etc.
- Topic: useGoodie
- Replies: 62
- Views: 25020
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 ...
- Wed Sep 19, 2012 2:14 pm
- Forum: Runes of Magic
- Topic: Call function using variable in function name?
- Replies: 8
- Views: 2137
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...
- Wed Sep 19, 2012 2:38 am
- Forum: Guild Wars 2
- Topic: knowledge from beta weekend
- Replies: 33
- Views: 17359
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...
- Wed Sep 19, 2012 2:18 am
- Forum: Guild Wars 2
- Topic: knowledge from beta weekend
- Replies: 33
- Views: 17359
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.
- Tue Sep 18, 2012 11:52 pm
- Forum: Runes of Magic
- Topic: Call function using variable in function name?
- Replies: 8
- Views: 2137
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"} {my...
- Tue Sep 18, 2012 11:45 pm
- Forum: Runes of Magic
- Topic: Call function using variable in function name?
- Replies: 8
- Views: 2137
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...
- Tue Sep 18, 2012 7:25 am
- Forum: Runes of Magic
- Topic: Monitor chat ... if event XYZ, then load WP/file
- Replies: 26
- Views: 9570
Re: Monitor chat ... if event XYZ, then load WP/file
the .. concatenates the two strings together
- Sun Sep 16, 2012 10:25 pm
- Forum: Runes of Magic
- Topic: Pretty Sick of "waiting on aggressive enemies"
- Replies: 37
- Views: 7980
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
and an app called 'Everything' which searches all files on comp, blindingly fast
- Fri Sep 14, 2012 9:10 am
- Forum: Runes of Magic
- Topic: Help for complete script
- Replies: 14
- Views: 4046
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.
- Thu Sep 13, 2012 7:03 pm
- Forum: Runes of Magic
- Topic: Help for complete script
- Replies: 14
- Views: 4046
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 ...