![]() |
List of skills (highest to lowest) - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: List of skills (highest to lowest) (/Thread-List-of-skills-highest-to-lowest) |
List of skills (highest to lowest) - Soulless - 07-22-2012 09:34 PM Can anyone see a better way of creating this script? it def will lag the player if they did it often. I just got it all working, i think im just having a dumb day, but if anyone can do this better please feel free to chime in. Code: [function rankskill] //compare 1 skill to the other 48 and return ranking RE: List of skills (highest to lowest) - Soulless - 07-22-2012 11:10 PM EDIT: i removed this reply because its no longer necessary since the error has been resolved. But if anyone can please help optimize the above code i would really appreciate it. thanks. RE: List of skills (highest to lowest) - Shaklaban - 07-23-2012 01:15 AM you can use skillbest function: PHP Code: [dialog sb_test] RE: List of skills (highest to lowest) - Soulless - 07-23-2012 02:26 AM Thanks Shaklaban. Even though i feel so stupid for writing such a ridiculous function to sort the skills. it will come in handy someday with something else. i very much appreciate your hepl ![]() RE: List of skills (highest to lowest) - Shaklaban - 07-23-2012 05:44 AM no problem, thanks to sugarcube we have this function. RE: List of skills (highest to lowest) - Anarch Cassius - 07-23-2012 06:53 AM Yeah, that function just helped a bunch with my quasi-champ system. |