1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Keeper of the skill mount 2013-12-14

mounts and boss.

  1. jase giffin
    Offline

    jase giffin Active Member

    Joined:
    Sep 14, 2013
    Messages:
    253
    Likes Received:
    72
    jase giffin submitted a new resource:

    Keeper of the skill mount - mounts and boss.

    Read more about this resource...
     
    • Like Like x 2
  2. Exale
    Offline

    Exale Active Member

    Joined:
    Mar 2, 2014
    Messages:
    180
    Likes Received:
    15
    Looks awesome but wanted to let you know there is a lot of errors.

    Code (C#):
    1.  
    2. Errors:
    3.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountBeetle.cs:
    4.     CS0115: Line 16: 'Server.Items.SkillMountBeetle.OnAdded(object)': no suitabl
    5. e method found to override
    6.     CS0115: Line 33: 'Server.Items.SkillMountBeetle.OnRemoved(object)': no suita
    7. ble method found to override
    8.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountChimera.cs:
    9.     CS0115: Line 17: 'Server.Items.SkillMountChimera.OnAdded(object)': no suitab
    10. le method found to override
    11.     CS0115: Line 35: 'Server.Items.SkillMountChimera.OnRemoved(object)': no suit
    12. able method found to override
    13.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountCuShide.cs:
    14.     CS0115: Line 17: 'Server.Items.SkillMountCuShide.OnAdded(object)': no suitab
    15. le method found to override
    16.     CS0115: Line 34: 'Server.Items.SkillMountCuShide.OnRemoved(object)': no suit
    17. able method found to override
    18.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountDaemon.cs:
    19.     CS0115: Line 20: 'Server.Items.SkillMountDemon.OnAdded(object)': no suitable
    20.  method found to override
    21.     CS0115: Line 37: 'Server.Items.SkillMountDemon.OnRemoved(object)': no suitab
    22. le method found to override
    23.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountHorse.cs:
    24.     CS0115: Line 17: 'Server.Items.SkillMountHorse.OnAdded(object)': no suitable
    25.  method found to override
    26.     CS0115: Line 34: 'Server.Items.SkillMountHorse.OnRemoved(object)': no suitab
    27. le method found to override
    28.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountKirin.cs:
    29.     CS0115: Line 16: 'Server.Items.SkillMountKirin.OnAdded(object)': no suitable
    30.  method found to override
    31.     CS0115: Line 33: 'Server.Items.SkillMountKirin.OnRemoved(object)': no suitab
    32. le method found to override
    33.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountLlama.cs:
    34.     CS0115: Line 16: 'Server.Items.SkillMountLlama.OnAdded(object)': no suitable
    35.  method found to override
    36.     CS0115: Line 33: 'Server.Items.SkillMountLlama.OnRemoved(object)': no suitab
    37. le method found to override
    38.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountOstard.cs:
    39.     CS0115: Line 16: 'Server.Items.SkillMountOstard.OnAdded(object)': no suitabl
    40. e method found to override
    41.     CS0115: Line 33: 'Server.Items.SkillMountOstard.OnRemoved(object)': no suita
    42. ble method found to override
    43.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountPolarBear.cs:
    44.     CS0115: Line 20: 'Server.Items.SkillMountPolarB.OnAdded(object)': no suitabl
    45. e method found to override
    46.     CS0115: Line 37: 'Server.Items.SkillMountPolarB.OnRemoved(object)': no suita
    47. ble method found to override
    48.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountRidgeback.cs:
    49.     CS0115: Line 16: 'Server.Items.SkillMountRidgeback.OnAdded(object)': no suit
    50. able method found to override
    51.     CS0115: Line 33: 'Server.Items.SkillMountRidgeback.OnRemoved(object)': no su
    52. itable method found to override
    53.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountSwampDragon.cs:
    54.  
    55.     CS0115: Line 16: 'Server.Items.SkillMountSwampDragon.OnAdded(object)': no su
    56. itable method found to override
    57.     CS0115: Line 33: 'Server.Items.SkillMountSwampDragon.OnRemoved(object)': no
    58. suitable method found to override
    59.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMounts/SkillMountUnicorn.cs:
    60.     CS0115: Line 16: 'Server.Items.SkillMountUnicorn.OnAdded(object)': no suitab
    61. le method found to override
    62.     CS0115: Line 33: 'Server.Items.SkillMountUnicorn.OnRemoved(object)': no suit
    63. able method found to override
    64.  + Custom/Mobiles/Skill Mounts/Skill Mount/SkillMount.cs:
    65.     CS0115: Line 17: 'Server.Items.SkillMount.OnAdded(object)': no suitable meth
    66. od found to override
    67.     CS0115: Line 34: 'Server.Items.SkillMount.OnRemoved(object)': no suitable me
    68. thod found to override
    69. Scripts: One or more scripts failed to compile or no script files were found.
    70.  - Press return to exit, or R to try again.
    71.  
     
  3. jase giffin
    Offline

    jase giffin Active Member

    Joined:
    Sep 14, 2013
    Messages:
    253
    Likes Received:
    72
    I'm driving in from LA today I'll look at this issue soon as I'm home tonight
     
    • Two Thumbs Up Two Thumbs Up x 1
  4. Xen
    Offline

    Xen Member

    Joined:
    Mar 10, 2013
    Messages:
    70
    Likes Received:
    5
    what should it do?
     
  5. Exale
    Offline

    Exale Active Member

    Joined:
    Mar 2, 2014
    Messages:
    180
    Likes Received:
    15
    It looks like its a mobile that you kill that can drop one of the included mounts that give you some skills on mount randomly. Pretty neat looking file but Those errors happen on compile.
     
  6. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,422
    Likes Received:
    385
  7. Exale
    Offline

    Exale Active Member

    Joined:
    Mar 2, 2014
    Messages:
    180
    Likes Received:
    15
    They are indeed set with the ondeath method Milva. So no worries there. I hope you don't mind Jase but I went ahead and fixed all the errors. I just had to go into each script and change:

    public override void OnAdded( object parent ) & public override void OnRemoved( object parent ) to the newer
    public override void OnAdded( IEntity parent ) & public override void OnRemoved( IEntity parent )

    Here is the updated script package if you would like to update the resource.

    Now if only I could figure out how to make it not exceed the players skill cap. Right now a skill that is capped at 120.0 can go higher with the mount.
     

    Attached Files:

    • Two Thumbs Up Two Thumbs Up x 2
  8. jase giffin
    Offline

    jase giffin Active Member

    Joined:
    Sep 14, 2013
    Messages:
    253
    Likes Received:
    72
    that isn't a problem. great work. im glad good scripts havnt died completely. and if something I posted doesn't work please share your error. I may not run a shard anymore but I do still play with my own shard and work. so I don't ind helping to solve issues that these systems encounter. good on ya. ill update that.
     
    • Two Thumbs Up Two Thumbs Up x 2
  9. jase giffin
    Offline

    jase giffin Active Member

    Joined:
    Sep 14, 2013
    Messages:
    253
    Likes Received:
    72
    • Two Thumbs Up Two Thumbs Up x 2
  10. Wyli
    Offline

    Wyli New Member

    Joined:
    Mar 6, 2016
    Messages:
    4
    Likes Received:
    2
    hello,
    this is an awesome addon! thank you for posting it.
    I've modified him a bit on my server and made him into a mini-champion boss with the rain of gold and harrower skull when you kill him.
    however, I would like to make him drop a random skull. I've tried this:

    public override ChampionSkullType SkullType
    {
    get
    {
    switch (Utility.Random(6))
    {
    case 0: return ChampionSkullType.Venom; break;
    case 1: return ChampionSkullType.Greed; break;
    case 2: return ChampionSkullType.Power; break;
    case 3: return ChampionSkullType.Death; break;
    case 4: return ChampionSkullType.Pain; break;
    case 5: return ChampionSkullType.Enlightenment; break;
    }
    }
    }

    but when I reboot my server, I get a fatal error saying that not all paths lead to a result.

    if I do:
    public override ChampionSkullType SkullType
    {
    get
    {
    return ChampionSkullType.Venom;
    }
    }
    he will drop that single skull. so, I know the function works with him. I just can't get it to randomize.

    thank you again for this and thank you for any help.
     
    • Like Like x 1
  11. Fraz
    Offline

    Fraz Active Member

    Joined:
    Apr 2, 2015
    Messages:
    224
    Likes Received:
    28
    It will have to look something like this..

    Code (C#):
    1.  
    2. public override ChampionSkullType SkullType
    3.   {
    4.   get
    5.   {
    6.   switch (Utility.Random(6))
    7.   {
    8.   case 0: return ChampionSkullType.Venom;
    9.   case 1: return ChampionSkullType.Greed;
    10.   case 2: return ChampionSkullType.Power;
    11.   case 3: return ChampionSkullType.Death;
    12.   case 4: return ChampionSkullType.Pain;
    13.   case 5: return ChampionSkullType.Enlightenment;
    14.   default: break;
    15.   }
    16.   return ChampionSkullType.Death; // or something to default..
    17.   }
    18.   }
    19.  
    --- Double Post Merged, May 12, 2016 ---
    or even this, if you are careful not to exceed the enumeration..(a little bit less control over which items though)

    Code (C#):
    1.  
    2.   public override ChampionSkullType SkullType
    3.   {
    4.   get
    5.   {
    6.   return (ChampionSkullType) Utility.Random(6);
    7.   }
    8.   }
    9.  
     
    #11 Fraz, May 12, 2016
    Last edited: May 12, 2016
    • Helpful Helpful x 1
  12. PyrO
    Online

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    697
    Likes Received:
    30
    Less nice looking I guess but this one would make it so you can add new skulls at it remains to use all types.
    Code (C#):
    1. public override ChampionSkullType SkullType
    2. {
    3.     get
    4.     {
    5.         return (ChampionSkullType) Utility.Random(Enum.GetNames(typeof(ChampionSkullType)).Length);
    6.     }  
    7. }
    Now if you want to go with the switch you can do it in multiple ways too
    Code (C#):
    1. public override ChampionSkullType SkullType
    2. {
    3.     get
    4.     {
    5.         switch (Utility.Random(6))
    6.         {
    7.             case 0: return ChampionSkullType.Venom;
    8.             case 1: return ChampionSkullType.Greed;
    9.             case 2: return ChampionSkullType.Power;
    10.             case 3: return ChampionSkullType.Death;
    11.             case 4: return ChampionSkullType.Pain;
    12.             default: return ChampionSkullType.Enlightenment;
    13.         }
    14.     }
    15. }
    Or the way Fraz mentioned :)
     
    • Two Thumbs Up Two Thumbs Up x 1
    • Helpful Helpful x 1
  13. Wyli
    Offline

    Wyli New Member

    Joined:
    Mar 6, 2016
    Messages:
    4
    Likes Received:
    2
    thank you both very much. I got it working using PyrO's first suggestion. :)
    having the flexibility to add new skulls later and not having to remember to come back and edit this seemed appealing.
     
    • Like Like x 1
Similar Threads: Keeper skill
Forum Title Date
Archived Bug Reports Hamato (the keeper of Bushido) Dec 11, 2016
Script Support Error: Lighthouse Keeper Quest Jul 23, 2016
Custom Releases The Gate Keeper [Deleted] Mar 28, 2014
Custom Releases Keeper of Bushido & Keeper of Ninjitsu Feb 9, 2014
Script Support Modification of jewelry skills and adds...... Yesterday at 1:54 AM
Archived Bug Reports NPC "andric" trains improper skill Aug 7, 2017
ServUO Discussion Skills won't stay at 120 after server restart Jul 29, 2017