Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
OmegaDeus
Apprentice


Joined: 14 Sep 2005
Posts: 121

PostPosted: Fri Nov 11, 2005 4:39 am   

Schoktra's Spelup bot
 
I'm working on a spellup bot, and have a quite extensive list of what i can cast on others for their spellup, and also an extensive list that i can't cast but can scribe for them, and i was wondering, if i put them into stringlist variables or datarecord variables, is there an easy way to sort them from largest in length to the smallest, or will I need to make a function to run them through first.

ex:
Lightning Breath
Call Lightning
Sanctuary
Haste
fly
_________________


Look at me I've got zSKILLS
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Fri Nov 11, 2005 2:04 pm   
 
Omega, check out this. It might help
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=21368
_________________
http://www.Aardwolf.com
Reply with quote
OmegaDeus
Apprentice


Joined: 14 Sep 2005
Posts: 121

PostPosted: Fri Nov 11, 2005 4:36 pm   
 
Well that's good and all, but that is a temporary solution. That will only sort the list externally, what i'm looking for is to permanently rearrange it becuase later i will have to put in a loop that will go through the list an pull ones for each line by going for exact numbers, ex: first line woul be 1, 4, 7, 10, 13 second line 2, 5, 8, 11, 14 etc.
_________________


Look at me I've got zSKILLS
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Sun Nov 13, 2005 8:02 am   
 
Try this link for an idea using %max().

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=12271&highlight=sort+by+length
(<3 LightBulb)
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net