Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Perfect World
You last visited: Today at 04:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sorted Lists

Discussion on Sorted Lists within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Sorted Lists

So, I got everything to work (thank you Interest, and Swoosh for helping me with the problems I had).

Now I am wondering about some optimization, so I can release a good performance bot some time.

I am currently using a loop to read 0 - 769 for both the resources and mobs, I realize there is a npc/resource count ptr but how exactly does this work?

As far as I am aware (int i = 0; i < npc_count; i++) would not work for not every index is a valid ptr (NULL).

In simple terms, is there a better way to read out the index?
Shortpants is offline  
Old 05/08/2012, 00:27   #2
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
Unfortunately there is no sorted list for resources.. IIRC there is a count though, so you can loop through the list just ignoring any null pointers and stop when you reach the count - that'll at least save you some CPU cycles.
NPC list should be linear - There are two lists though, one sorted, one unsorted. Perhaps you're reading the unsorted list which has null pointers?
The NPC count is [[[[[baseCall]+0x1C]+0x1C]+0x24]+0x14]
The sorted list is [[[[[baseCall]+0x1C]+0x1C]+0x50]+i*0x4]
I think the unsorted list is at
[[[[[baseCall]+0x1C]+0x1C]+0x88]+i*0x4]
or somewhere around there.
dumbfck is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
important please can i have armor codes sorted ^^
11/17/2011 - Rappelz Private Server - 2 Replies
Hello guys i am new in this forum but i am good at pserver ^^ plz give me the codes of sorted armors and thanks
[Release]List of sorted and working Cash Shop Items - New Shops for your server
09/09/2011 - Rappelz - 12 Replies
I compiled a list and created new shops for my own server (which isnt public, dont ask). In that rar file you'll find anything you need to use them. Mostly CS items and a lot of other useful stuff. UPDATE 08/09/11: The list and shops have been updated to NCarbon/Arcadia's latest repack v1.2. The lists are now easier to read and use. Detailed information and instructions are given in the readme. Mirror 1: item_lists_and_shops.rar (252.66 KB) - mediafire.com Mirror 2:...
Anyone Got Lists?
01/26/2010 - CO2 Private Server - 3 Replies
hey i was wondering if anyone here has, or has a link to a list or lists containing NPC ID's, Monster ID's, Map ID's etc.. and before anyone says i've already searched :P but havent come across anything! thanks guys :)
NEED MORE SKILL LISTS
06/23/2008 - Lineage 2 - 1 Replies
i need more skill lists to my char how i can get tht in elite private server



All times are GMT +1. The time now is 04:46.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.