Author Topic: Help with finding a Mod?  (Read 1634 times)

I need the Mod where you can get XP and Level up when you kill people. Anyone know what it's called?

I don't know about XP
but I do know there is a level up mod
I don't have it but I know people who do.

Cat123 has it on his Knife TDM.

the modern warfare pack on rtb has one, it's hidden in the server.cs. i recommend getting someone else to do it for you if you don't know how.



There aren't really any public mods that do this.  All of the people that have mods in which you can level up have usually been scripted by the person that has the mod.  In fact, it's not really a complicated script at all.

It's beginning to piss me off we dont have one.
And it takes 5 seconds to make one
Thats it, making one now.

normaly scripters/modelers like to finish the mod and make sure it's perfect before releasing it
others just keep it for their selves or mod trading, but hey that's their choice

I need a map: Kitchen from 0002 era

Return the map!

uhm, a little lazy to package, if anyone knows how to package mods
heres the server.cs
Code: [Select]
function gameConnection::addEXP(%client,%exp)
{
if(%exp >= mCeil(mSqrt(%client.level) * 3))
{
%client.level += 1;
messageAll('',"<bitmap:base/client/ui/ci/blueRibbon>\c3" @ %client.name @ " \c6has leveled up to level \c3" @ %client.level @ "\c6.");
%client.exp = 0;
}
else
{
%client.exp += %exp;
messageClient(%client,'',"\c6You have obtained \c3" @ %exp @ "\c6 EXP.");
}
}

function serverCmdStats(%client)
{
messageClient(%client,'',"\c3Level\c6: " @ %client.level);
messageClient(%client,'',"\c3EXP\c6: " @ %client.EXP);
}

function gameConnection::saveLevel(%client)
{
%file = new FileObject();
%file.openForWrite("config/server/Levels/" @ %client.bl_id @ ".txt");
%file.writeLine("Level: "@  %client.level);
%file.writeLine("EXP: "@ %client.EXP);
%file.close();
%file.delete();
}

function gameConnection::loadLevel(%client)
{
if(isFile("config/server/Levels/" @ %client.bl_id @ ".txt"))
{
%file = new FileObject();
%file.openForRead("config/server/levels/" @ %client.bl_id @ ".txt");
%client.level = restWords(%file.readLine());
%client.exp = restWords(%file.readLine());
%file.close();
%file.delete();
}
}
package LevelingAndStuff
{
function gameConnection::onClientEnterGame(%client)
{
parent::onClientEnterGame(%client);
if(isFile("config/server/Levels/" @ %client.bl_id @ ".txt"))
%client.loadLevel();
else
{
%client.level = 0;
%client.exp = 0;
}
}
function GameConnection::onDeath(%this, %obj, %sourceObject, %sourceClient, %damageType, %damLoc)
{
parent::::onDeath(%this, %obj, %sourceObject, %sourceClient, %damageType, %damLoc);
if(%this != %soureClient)
{
%this.addEXP(10);
%this.saveLevel();
}
}
function serverCmdMessageSent(%client,%msg)
{
parent::serverCmdMessageSent(%client,%msg);
%client.clanPrefix = "[Level " @ %client.level @ "]";
%client.clanSuffix = "";
}
};activatepackage(LevelingAndStuff);

function saveAllLevel()
{
cancel($saveLevelAll);
for(%i=0;%i<ClientGroup.getCount();%i++)
{
if(%client.level > 0 && %client.exp > 0)
%client.saveLevel();
}
$saveLevelAll = schedule(60000,0,saveAllLevel);
}
saveAllLevel();
Not tested, someone should debug and release, with credits to me of course.
« Last Edit: January 16, 2012, 03:40:41 PM by Brian Smithers »

uhm, a little lazy to package, if anyone knows how to package mods
heres the server.cs
-code-
Not tested, someone should debug and release, with credits to me of course.
I packaged it.
If I named it wrong, just rename it, I don't give a forget

I packaged it.
If I named it wrong, just rename it, I don't give a forget

it'll fix, you made it a .rar
it has to be a .zip silly.

You can't find it because it is a private mod...

it'll fix, you made it a .rar
it has to be a .zip silly.
shiiiit