1
Modification Help / Re: Client Command
« on: February 16, 2013, 11:02:35 PM »Yes, but people here go apestuff on you if you make even a single client-sided forward-slash-based function.
Why is that?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Yes, but people here go apestuff on you if you make even a single client-sided forward-slash-based function.
then how dos any one know how to create addons?
I dint see how any bugs were fixed but just added more bugs:Shaders may not work because of your graphics card.
duplicator only hits you, /duplicator doesn't bring it up and neither does Admin menu,
All bots are plain white
JVS doors have no events, unrendered and no longer work
And did i mention Shaders still dont work?
package EXP
{
function GameConnection::onDeath(%Client, %KillerPlayer, %Killer, %damageType, %a)
{
Parent::onDeath(%Client, %KillerPlayer, %Killer, %damageType, %a);
%Killer.Xp += 50;
}
function AiPlayer::onDeath(%Client, %KillerPlayer, %Killer, %damageType, %a)
{
Parent::onDeath(%Client, %KillerPlayer, %Killer, %damageType, %a);
%Client.Xp += getRandom( 1, 10 );
}
function GameConnection::OnClientEnterGame(%Client)
{
%Client.Schedule(1500,0, SendXpMessage);
Parent::OnClientEnterGame(%Client);
}
function SendXpMessage(%Client)
{
if(%Client.Xp > %Client.Level*100)
{
%Client.Xp -= %Client.Level*100;
%Client.Level++;
SendXpMessage(%Client);
return;
}
%Client.MaxXp = %Client.Level*100;
BottomPrint(%Client,"Level:" @ %Client.Level @ " Xp:" @ %Client.Xp @ "/" @ %Client.MaxXp,7);
%Client.Schedule(2000,0,SendXpMessage);
}
};
ActivatePackage(EXP);
EDIT- all this crap doesnt work im starting over.
A player is not an AIPlayer. Do not remove the gameConnection part.Im looking for AIPlayer... on a bot killed it will give you random XP