Hi Wulf,
nice plugin. this fit perfectly my server concept for roleplay.
now - a little question. I moded your mod a little bit like this and I don't know if it's so ok for the programming. hope you can help me a little bit. :)
var arg = args.Length > 0 ? args[0] : "1";
int dice;
if (int.TryParse(arg, out dice))
{
if (dice == 2) {
if (dice >= 3) dice = 1;
var roll_1 = random.Next(1, 21);
Broadcast("PlayerRolled", player.Name + " würfelt mit 1W20", random.Next(1, 21));
var roll_2 = random.Next(1, 7);
Broadcast("PlayerRolled", player.Name + " würfelt 1W6", roll_2);
}
else {
var roll_3 = random.Next(1, 21);
Broadcast("PlayerRolled", player.Name, roll_3);
}
//if (dice >= 1000) dice = 1;
//var roll = random.Next(1, dice * 21);
//Broadcast("PlayerRolled", player.Name, roll);My goal:
/dice Würfelt einen 1W20
/dice 2 Würfelt einen 1W20 und einen 1W6
/dice 3 Würfelt einen 3W6
/dice 6 Würfelt einen 1W6
How can I solve this? The Output like: Player rooled a X and a Y.
thanks and thanks for the nice plugin. keep on your work