1561
Modification Help / Re: Incorrect script, need fixing
« on: January 10, 2012, 10:09:07 AM »
Do people seriously develop Add-Ons in .ZIP format?
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.
Nothing is wrong with the code, its packaged incorrectly or not enabled or something similar.You do not need to package new functions, only when overwriting existing ones.
function serverCmdRollDice(%client)
{
%rand = getRandom(1, 6);
switch(%rand)
{
case 6:
case 5:
case 4:
case 3:
case 2: messageClient(%client, '', "\c6You rolled a 2! LOL!"); %client.player.kill();
case 1:
default: messageClient(%client, '', "\c6What kind of die is that?");
}
}function serverCmdTest(%client)
{
%rand = getRandom(0, 9);
if( (%rand % 3 == 0) && (%rand != 0) )
{
messageClient(%client, '', "You rolled a" SPC %rand @ ", which is evenly divisible by 3.");
}
}