+  Particle's Custom RPG
|-+  PCRPG Development» Development» Boredom Leads To...
Username:
Password:
Pages: [1]
  Print  
Author Topic: Boredom Leads To...  (Read 552 times)
0 Members and 2 Guests are viewing this topic.
eViL
Uber Menace
*******

Reputation: +0/-0
Posts: 1,022



View Profile
« on: March 13, 2003 07:45 PM PST »

$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 ....
« Last Edit: December 31, 1969 04:00 PM PST by eViL » Logged

Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.
Knyght
b4nz0r3d!!!
Orc Thrasher
***

Reputation: +0/-0
Posts: 192


View Profile
« Reply #1 on: March 14, 2003 05:05 AM PST »

So what
« Last Edit: December 31, 1969 04:00 PM PST by Knyght » Logged
eViL
Uber Menace
*******

Reputation: +0/-0
Posts: 1,022



View Profile
« Reply #2 on: March 14, 2003 10:58 AM PST »

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.
« Last Edit: December 31, 1969 04:00 PM PST by eViL » Logged

Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.
Knyght
b4nz0r3d!!!
Orc Thrasher
***

Reputation: +0/-0
Posts: 192


View Profile
« Reply #3 on: March 14, 2003 06:59 PM PST »

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.
« Last Edit: December 31, 1969 04:00 PM PST by Knyght » Logged
Particle
Chief Codemonger
Administrator
Centurian Lord
**********

Reputation: +14/-4
Posts: 5,870



View Profile WWW
« Reply #4 on: March 14, 2003 08:26 PM PST »

Don't argue here Knyght.  This is for development, if you can't stay on the topic then just SHUT UP.
« Last Edit: December 31, 1969 04:00 PM PST by Particle » Logged

The last clear was 2,739 days ago as of March 28, 2012.  We're more or less eternal by this point.

Light from our sun has been to all three stars in the Centauri system since, passed Barnard's star years ago, and will be visiting Wolf 359 this July (2012).
Vorter_X_
Centurian Lord
********

Reputation: +2/-0
Posts: 2,687



View Profile
« Reply #5 on: March 15, 2003 01:14 PM PST »

you forgot a ; at the end lol
« Last Edit: December 31, 1969 04:00 PM PST by Vorter_X_ » Logged

Pages: [1]
  Print  
 
Jump to:  

Page created in 0.081 seconds with 17 queries.