• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

NPC Info Location

ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Hey,

I was just wondering if the locations are still the same ?
If i where to list the current locations of the npc's
Could we use that ? if so what would be the best format to save the npc info ?
like id,level,name,location,actions etc etc and should it be in mysql format ?

And if the locations have changed aka the grid of runescape.
Could we convert it ?

Let me know what you think i might write a script and run around towns to collect npc information :).
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
Hmm well for format, why not save it in XML, as it's pretty much bog standard to be able to convert into any other format we require?

Also brilliant idea, as I would love to have a decent mapping of npcs, however porting these back into a 317 will be rather tricky I imagine, as they changed a few things I think between them...

Try and grab as much data as possible, but keep it all the same, I hate seeing lists where there's randomly more data that no other mob in the game has, it makes me Q.Q
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Well if you could give me basic info for the xml standard we could create.
I can actually start if wanted will first just make a small list to show a sample.

Although as npc's move mobs etc.
It will give duplicates will check if i can see if a npc is killable.
And if it moves.

btw there is also a message a npc can say random messages.
those should also be saved so in the xml format there should be room for more then 1 msg.

you could do if y > newY -5 etc and the id + info = the same merge the npc.
But should should be done after a decent list has been build.
So we can merge different lists into 1 big list containing most npc's.
will check if i can get the region as that would also help :).

Code:
writeOut.write("INSERT INTO npcList VALUES('"
								+ newNPC.getID() + "','" + newNPC.getName()
								+ "','" + newNPC.getLevel() + "','"
								+ newNPC.getLocation() + "','" + actionList
								+ "','" + newNPC.getMessage() + "','"
								+ newNPC.getOrientation() + "')\n");
not quite sure yet what orientation is for.
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
I'm pretty damn sure, orientation was for the mob facing direction if it was a static mob, in otherwords it never moved, then this is the direction it was meant to be facing.

As for the XML, i'll see what I can do when I'm back from uni, kinda running a touch late >.> damn staying up till 4am, and expecting to get up at 8am perfectly okay! xD

You just want the XML structure then?
 
right + down + X
Loyal Member
Joined
May 25, 2006
Messages
1,688
Reaction score
298
Orientation is it's facing (N,S,E,W, etc)


And by this you mean going to official runescape and logging this? If that's what you mean, it's not possible. Every major city is different now

---------- Post added at 10:49 AM ---------- Previous post was at 10:43 AM ----------

As for the XML Stricture, what you're thinking would be

Code:
<npclist>
    <npc>
        <posX>
           3400
        </posX>
        <posY>
            2356
        <posY>
        <posZ>
            0
        </posZ>
        <initOrientation>
            S
        </initOrientation>
        <randomSay>
            Varrock City news 5gp!
        </randomSay>
        <randomSay>
            Get yer news here! 5GP for tha happenings of Gelionor!
        </randomSay
    </npc>
</npclist>
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Hey ghost that looks cool a bit more to be added and btw the orient seems to be a int value that gives around 0 to 270 in my last log..
guess i just log as much as possible.
 
right + down + X
Loyal Member
Joined
May 25, 2006
Messages
1,688
Reaction score
298
Degree rotation?

0 South?
90 East
180 North
270 West?

I'm honestly not too sure, never paid attention. As per the npc thing, that was just a proof of concept
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
Hmm the i believe in the actual client the directions are given as 0 90 etc... however in the server, the directions are handled as 0 1 2 3, or something like that!

So that could be an interesting map back, and also literally what Ghost posted is what I would have had for a XML. Just that kind of idea Thugie :sleep:
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Before i begin.
Anybody have a plan to delete duplicates from xml files ?
As i don't plan to store the xml in memory or file and checking the file each time i add a new npc.

So there will be loads of duplicates.
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
I'm sure we could write a little piece of code to run through the XML's and delete suspected duplicates :wink: I want to know how you're actually managing to log this stuff? :p If you don't want it known publicly, feel free to PM :D:
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Well i simply use a bot you probably heard of the mass hacking etc of runescape accounts of users that used a specific bot ?

I use the same bot although i just use the svn so i can run tru the code :).
And code my own scripts to collect npc data :p.
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
Hmm interesting.. though I haven't heard of this bot before! I wonder what we could do witgh that, like what else could be gathered :p

But yeah, i'm sure me and Daniel can work out something for parsing the XML and removing duplicates :D:
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Hey sorry for the lack of posts and info.
But pretty busy with looking for a job.
Got bills so high i got into some trouble..

now i could post the script for the bot but i guess that would be useless.

Just posting so you guys know i havent forgotten.
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
Good stuff Thugie, annd seriously don't worry about it, I currently know the feeling.. not getting paid enough to pay rent and poop >.>

Besides i'm waiting till i get my latest batch of uni work out of the way before starting.
 
Back
Top