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

How to make custom Items drop with bod rewards?

Discussion in 'Script Support' started by Opywang, Nov 14, 2017.

  1. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    Hey there I am making a shard that use token system that players can earn to get rewards, and prize from vendor stone, and I realized that bodder should have a fair oppiturity to earn token, and I would like to make token drop on rewards that they get. I would like to fix it where each rewards have chance to drop while other rewards give 1 token, or more with two slot that says 100% chance, or and how many if possible.

    Here this is from smith reward so I see how it is, but I thought I share with the community, and maybe the community can help me get this sort out if possible.

    new RewardGroup(50, new RewardItem(45, SturdyShovel), new RewardItem(45, SturdyPickaxe), new RewardItem(10, MiningGloves, 1)),

    See this line above me it says a chance of one of each, but what I want is when they get the reward it will also drop tickets, and I don't want players just turn in barbed kits, and get tickets instead.

    Thank you in advance!
     
  2. arvoreen
    Offline

    arvoreen Member

    Joined:
    Aug 20, 2014
    Messages:
    70
    Likes Received:
    1
    You should try some stuff and show what you tried, if you want to learn how to code. Plus you'll be much more likely to get help if you have code and/or errors for people to look at.

    Otherwise, it's kinda like you're asking someone to write it for you.

    Don't get hung up on using existing systems for your stuff. If the RewardGroup class doesn't do things the way you want, just do it your own way, that's the beauty of having all the code and being able to modify it. While there is a "right" way to do a lot of things, it doesn't mean you have to do all your stuff exactly the same way the existing code is done.

    And, if you're still really new to C#, learn some of the basics, classes, methods, inheritance, polymorphism, properties, interfaces, you should understand all of these terms and know how they apply to C#.
     
    • Agree Agree x 1
  3. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    LOL. I am not a coder at all, but I do get the basic, and I've been working on this for over 10 years off, and on so I get the basic. I've helped on a few player run shard, and even run my own shard, but even after all that it doesn't mean I'm a qualify coder.

    I know things are so simple, and basic so I only ask for stuff that is simple which is probably has been done before, and of course sometime I can ask for complicated stuff.

    I would love to know how to make it drop barbed kits, and other items at the same time, and it has to be something simple, and it shouldn't be too hard.
     
Similar Threads: custom Items
Forum Title Date
General Discussion Adding custom items to Cleanup Britannia system May 6, 2017
ServUO Discussion Custom Items/Maps Updater Feb 15, 2016
Custom Releases Lots of Custom Set Items May 26, 2015
Shards Looking For Players Maelstrom UO-Shard with level and custom weaps-RW like Monday at 10:34 PM
Bug Reports customize house problem Dec 2, 2017
Script Support help? trying make custom horse Nov 22, 2017
Script Support Custom sistems for RP shard. Nov 19, 2017