Jezika

Member
Jezika submitted a new resource:

HermanTheCrafter - Quite difficult mini boss(?) that guarantees a crafting powerscroll drop 115+

Code:
/*
*  Scripter : Jezika
*  Created at :  7/12/2013 12:39:37 PM
*/
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Mobiles
{
    [CorpseName( "Herman" )]
    public class Herman : BaseCreature
    {
        [Constructable]
        public Herman() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.6, 0.4 )
        {
            this.Name = "Ghost of Herman The Crafter";
            this.Hue = 2032;
            this.Body = 146;...

Read more about this resource...
 
A Small Note to your code :

Code:
                        double random = Utility.RandomDouble();

                        if (2.50 >= random)
                            level = 120;

                        else
                            level = 115;
I´m not sure if this ever could be 115 PS because Randomdouble normally returns a value between 0.0 and 1.0
means if your chance is 2,5% it should be 0.025 instead of 2.5.

Suggestion :
Code:
  if(0.98 >= Utility.RandomDouble())
  {
  int level = 115;
  if (0.025 > Utility.RandomDouble())
  level = 120;
  SkillName Skill = SkillName.Blacksmith;
  switch(Utility.RandomMinMax(0,6))
  {
  case 0 : Skill = SkillName.Blacksmith;break;
  case 1 : Skill = SkillName.Tailoring;break;
  case 2 : Skill = SkillName.Carpentry;break;
  case 3 : Skill = SkillName.Tinkering;break;
  case 4 : Skill = SkillName.Alchemy;break;
  case 5 : Skill = SkillName.Inscribe;break;   
  case 6 : Skill = SkillName.Fletching;break;
  }
  AddToBackpack(new PowerScroll(Skill, level));
  }
I also could be total wrong, nevermind me if this is the case :)
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back