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

How to drop UnicornRibs?

Discussion in 'Script Support' started by ouroboros, Feb 20, 2014.

  1. ouroboros
    Offline

    ouroboros New Member

    Joined:
    Feb 19, 2014
    Messages:
    4
    Likes Received:
    1
    Publish Number:
    54
    I'm brand new to this and attempting to pick my way through the code.

    I am attempting to get the unicorns to drop the purple Unicorn Ribs quest item as either a loot drop or, preferably, a butcher drop.

    I've found the two scripts i need:

    scripts>mobiles>animals>mounts>Unicorn.cs

    and

    scripts>quests>bedlam>mistaken identity>items>UnicornRibs.cs

    And my issue is figuring out how to properly add UnicornRibs as a carve/loot drop. Any pointers would be much appreciated.
     
  2. Ce Jayce
    Offline

    Ce Jayce Member

    Joined:
    Jan 24, 2014
    Messages:
    140
    Likes Received:
    14
    Hi there,
    First welcome to the world of coding! :)
    If you need it let me know and i'll happily post up the finished version but i'll try and walk you through it and give you some pointers on how to do it yourself.
    If you head into SAPixie.cs to use as an example in that script there is an "OnDeath" method that starts like this;
    Code (C#):
    1. public override void OnDeath(Container c)
    Everything inside the two curly brackets { } is part of that method and is exectured OnDeath as the name suggests (The whole code behind this is in much longer but you don't need to worry about that as it simply "calls" that method which states "Do this on death"

    The item that the SA Pixie drops is a PixieLeg you're going to want to change that to UnicornRib you'll also notice that there is some random chance involved I would leave it at the same it currently is as per the SAPixie.cs as the Unicorn Ribs don't drop on every unicorn as per OSI (If you wan't differently then do say so and i'll help you out with that!)

    Let me know how you get on and good luck!
     
    • Like Like x 1
  3. ouroboros
    Offline

    ouroboros New Member

    Joined:
    Feb 19, 2014
    Messages:
    4
    Likes Received:
    1
    That was clear as glass, I now have a successful rib drop.
    I should be able to figure a few more things out now, thank you very much!
     
    • Like Like x 1
Similar Threads: drop UnicornRibs
Forum Title Date
General Discussion Champion Artifact Drops, anyone? Aug 13, 2017
Archived Bug Reports Cora drops antique Bracelet of Protection, it should be normal Aug 10, 2017
Archived Bug Reports Planting - Seed of Renewal -& Whipping Vines Drops Aug 1, 2017
Archived Bug Reports Mondains Legacy Artifact drops [Marties] Jul 30, 2017
Donor only scripts Airships! [ BETA release ] - 99% drag-n-drop Jul 16, 2017
Archived Bug Reports Boura hide drop rate is too high Jul 14, 2017
Archived Bug Reports Dragon Turtle doesn't drop power scrolls and mastery primers Jul 9, 2017