Particle's Custom RPG

PCRPG Development => Development => Topic started by: eViL on March 14, 2003 01:45 am CST

Title: Boredom Leads To...
Post by: eViL on March 14, 2003 01:45 am CST
$RPGServer::SortByLvl = True;
$RPGServer::SortByZone = False;

function Game::refreshClientScore(%clientId)
{
   dbecho($dbechoMode2, "Game::refreshClientScore(" @ %clientId @ ")");

   // blah blah.. useless crap... then this stuff...

   %z = Zone::getDesc(fetchData(%clientId, "zone"));

   if(%z == -1)
      %z = "unknown";

   if($RPGServer::SortByLvl && !$RPGServer::SortByZone)
      Client::setScore(%clientId, "%n\t" @ %z @ "\t" @ fetchData(%clientId, "LVL") @ "\t" @ getFinalCLASS(%clientId), fetchData(%clientId, "LVL"));
   else if($RPGServer::SortByZone && !$RPGServer::SortByLvl)
   {
      %Num = "";

      if(%z == "unknown")
         %Num = $numZones+15;
      else
      {
         for(%i=1; %i <= $numZones; %i++)
            if($Zone::Desc[%i] == %z)
               %Num = %i;

         if(%Num == "")
            %Num = $numZones+15;
      }

      Client::setScore(%clientId, "%n\t" @ %z @ "\t" @ fetchData(%clientId, "LVL") @ "\t" @ getFinalCLASS(%clientId), %Num);
   }
}

yea, that code is untested, but thats what boredom leads to, eViL coding more useless code ....
Title:
Post by: Knyght on March 14, 2003 11:05 am CST
So what
Title:
Post by: eViL on March 14, 2003 04:58 pm CST
knyght, in this forum, any code is usefull, dont be a dick and rip things down just because you feel jealous because you can't code.  thats why this forum is titled Development.
Title:
Post by: Knyght on March 15, 2003 12:59 am CST
Quote from: "eViL"
knyght, in this forum, any code is usefull, dont be a dick and rip things down just because you feel jealous because you can't code.  thats why this forum is titled Development.


Me being a dick isn't because I'm jealous, it's because you're a cocky faggot.
Title:
Post by: Particle on March 15, 2003 02:26 am CST
Don't argue here Knyght.  This is for development, if you can't stay on the topic then just SHUT UP.
Title:
Post by: Vorter_X_ on March 15, 2003 07:14 pm CST
you forgot a ; at the end lol