DarkTamer

Member
hello
i found this code and i want to spawn 1174 on a dragon at low chance
it gives error when i do it like this at dragon.cs
error : control cannot fall through one case label <case 0;>

double rate = Utility.RandomDouble();
if (rate <= 0.005)
{
switch (Utility.Random(3))
{
case 0:
this.Hue = 1174


}
}
 
ok got this clip from the tiger file to spawn a rare white tiger maybe it will help Il add above and below lines
If You figure out how to get the rare hued to have better stats Im interested :)


this.Name = "a Tiger";

switch (Utility.Random(2))
{
case 0:
{
BodyValue = 1254;
ItemID = 16071; //male
break;
}
case 1:
{
BodyValue = 1255;
ItemID = 16072; //female
break;
}

}

//Add a low chance of the tiger being a white tiger
int hueValue = Utility.Random(500);

if (hueValue <= 1)
{
this.Hue = 0x481;
}

this.SetStr(1200, 1250);// change stats here
this.SetDex(150, 180);
this.SetInt(250, 285);

this.SetHits(1010, 1275);// changew hits here

this.SetDamage(20, 30);//change damage here
 
Last edited:
ok got this clip from the tiger file to spawn a rare white tiger maybe it will help Il add above and below lines

this.Name = "a Tiger";

switch (Utility.Random(2))
{
case 0:
{
BodyValue = 1254;
ItemID = 16071; //male
break;
}
case 1:
{
BodyValue = 1255;
ItemID = 16072; //female
break;
}

}

//Add a low chance of the tiger being a white tiger
int hueValue = Utility.Random(500);

if (hueValue <= 1)
{
this.Hue = 0x481;
}

this.SetStr(1200, 1250);
this.SetDex(150, 180);
this.SetInt(250, 285);

this.SetHits(1010, 1275);

this.SetDamage(20, 30);
thanks
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back