View Single Post
  #5  
Old 12-03-2012, 02:27 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
It's just a chatbox like any other MMORPG out there. So I have categories for All, /Tells, /mass, /guild, and system messages.

I'm not trying to be a jerk or unwilling to do it differently. Does storing it in the weapon flag, db npc, or client var change anything?

The array is because it adds to all players for things like a mass or players in a guild or a tell to a player, so the array holds all the info like the sender, message, and timevar. Doing those separate would be much more cumbersome I would guess.

Again, it could be stored in a txt file, db npc, or as I do it now a client array, but I don't see how it really changes where it is stored because each message contains more than just one value so it would have to be an array at least per my logic, and the location of that array doesn't seem to change too much.

Do you see any reason in my code why it would only show up some of them, and then not in timevar order when leaving the category and going back to it?

Also I updated the code in first post with comments so it shows what I'm at least trying to do...

I'm not great on terminology but I'm pretty sure all I need is a bubble sort, along with a swap holding so it sorts correctly, I just can't seem to wrap my head around it.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 12-03-2012 at 03:29 AM.. Reason: code update on OP
Reply With Quote