Author Topic: XP mod  (Read 1128 times)

Ok,i have made alot of edits to this and it doesnt show the XP and stuff on the bottomprint like it should,i searched a players client and player and couldnt find the exp or level variables anywhere inside them

Code: [Select]
package functions
{
function GameConnection::onDeath(%this, %sourceObject,%sourceClient,%damageType,%damLoc)
{
%sourceobject.exp += %this.level;
parent::onDeath(%this,%sourceObject,%sourceClient,%damageType,%damLoc);
startStats(%sourceobject);
}
function GameConnection::onClientEnterGame(%client)
{
startstats(%client.name);
parent::onClientEnterGame(%client);
}
};
activatePackage("functions");
function startStats(%a)
{
commandtoClient(findclientByName(%a),'bottomprint',"<color:FFFF00>level:<color:FFFFFF>"SPC findclientByName(%a).level SPC"<color:FFFF00>EXP:<color:FFFFFF>"SPC findclientByName(%a).level);
schedule(1000,0,"startStats",%a);
}

Ok, no need to use HTML Colors.
\c3  < Yellow
\c6
< White

« Last Edit: April 11, 2009, 06:33:57 PM by massa900 »

bottomPrintClient(%client,%message);

Why use startstats(%client.name);
then
findclientbyName(%a) in startstats?
Why not take out .name and findclientbyname?

Just a suggestion.

Ok, no need to use HTML Colors.
\c3  < Yellow
\c6
< White


They're not HTML colors, just used in HTML. They're called HEX, a number system of letters A-F and 0-9, totaling 16 in all.

Tom

They're not HTML colors, just used in HTML. They're called HEX, a number system of letters A-F and 0-9, totaling 16 in all.
HEX colors is mostly used for HTML

HEX colors is mostly used for HTML
Yes, I know they are Hexadecimal, I just couldn't think of the name of the top of my head.

HEX colors is mostly used for HTML
HEX colors are used for a lot of things.

Ok, no need to use HTML Colors.
\c3  < Yellow
\c6
< White


Here are some more:
\c0 - Red
\c1 - Blue
\c2 - Green
\c3 - Yellow
\c4 - Cyan
\c5 - Violet
\c6 - White
\c7 - Gray
\c8 - Black

Here are some more:
\c0 - Red
\c1 - Blue
\c2 - Green
\c3 - Yellow
\c4 - Cyan
\c5 - Violet
\c6 - White
\c7 - Gray
\c8 - Black
I love how we are all getting off topic. Lol