Particle's Custom RPG
PCRPG Development => Development => Topic started 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 ....
-
So what
-
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.
-
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.
-
Don't argue here Knyght. This is for development, if you can't stay on the topic then just SHUT UP.
-
you forgot a ; at the end lol