Gold Panning SVN/ 2.0/2.1?

Discussion in 'Custom Script Releases [ARCHIVE]' started by Hammerhand, Jan 4, 2011.

  1. Hammerhand

    Hammerhand Knight

    Messages:
    8,107
    Gold Panning system
    Created by Hammerhand & Milva

    Gold panning, or simply panning, is a form of placer mining that extracts gold
    from a placer deposit using a pan. The process is one of the simplest ways to extract gold,
    and is popular with geology enthusiasts because of its cheap cost and the relatively
    simple and easy process involved. It is the oldest method of mining gold.
    Now you can do it to, from the comfort of your desk chair.
    Requires one edit to the SBMiner so that players can buy the gold pans.
    Add(new GenericBuyInfo(typeof(GoldPan), 500, 20, 0x9D7, 0));
    This panning kit comes complete with ..
    Small, Medium & Large gold nuggets, gold bricks, a GoldPan & a Nugget Trader.
    Trade 5 Small nuggets for 1 Medium, 3 Medium nuggets for 1 Large,
    2 Large nuggets for 1 Gold Brick & a bankcheck, currently set for
    $250k for 2 Gold Bricks (amount can be changed to suit). Works out to
    120 small nuggets for that bankcheck. All amounts can be changed to suit.
    Players also have a 2% chance of getting the ML Bonus Resource Gems
    while panning (with CoreML of course). Only works with shallow water,
    so you'll need to create some small streams & rivers coming off the mtns using
    deco water tiles. Could also have them in mining caves. GoldPan price is set for 500
    (can be changed to suit). Simply drop in, make the 1 change to the SBMiner and your good to go.
    Nuggets & Bricks are stackable & can be separated into smaller amounts like food or regs.
    Works directly off the Fishing skill. Animation for panning is the avatar bowing, just to
    add a bit more to it.
    Happy Panning!

    *Edit* Redid the uploads. Both now reflect changes made earlier.

    Attached Files:

    Chief Cowtipper likes this.
  2. Felladrin

    Felladrin Sorceror

    Messages:
    753
    Great idea! Thanks for sharing!
  3. IronFists

    IronFists Sorceror

    Messages:
    20
    Bummer I get a error in the goldnuggets.cs

    RunUO - [www.runuo.com] Version 2.1, Build 4014.32885
    Core: Running on .NET Framework Version 2.0.50727
    Core: Optimizing for 2 64-bit processors
    Scripts: Compiling C# scripts...failed (1 errors, 1 warnings)

    Errors:
    + Customs/GoldPanning/GoldNuggets.cs:
    CS0539: Line 13: 'ICommodity.Description' in explicit interface declaration
    is not a member of interface
    CS0535: Line 11: 'Server.Items.SmallGoldNugget' does not implement interface
    member 'Server.Items.ICommodity.IsDeedable'
    CS0539: Line 64: 'ICommodity.Description' in explicit interface declaration
    is not a member of interface
    CS0535: Line 62: 'Server.Items.MediumGoldNugget' does not implement interfac
    e member 'Server.Items.ICommodity.IsDeedable'
    CS0539: Line 112: 'ICommodity.Description' in explicit interface declaration
    is not a member of interface
    CS0535: Line 110: 'Server.Items.LargeGoldNugget' does not implement interfac
    e member 'Server.Items.ICommodity.IsDeedable'
    CS0539: Line 164: 'ICommodity.Description' in explicit interface declaration
    is not a member of interface
    CS0535: Line 162: 'Server.Items.GoldBrick' does not implement interface memb
    er 'Server.Items.ICommodity.IsDeedable'
    Scripts: One or more scripts failed to compile or no script files were found.
    - Press return to exit, or R to try again.
  4. Hammerhand

    Hammerhand Knight

    Messages:
    8,107
    Added a separate GoldNuggets.cs to original post. Tested & works for 2.1.
  5. dazedmouse

    dazedmouse Sorceror

    Messages:
    146
    Is there something missing because it isnt working here. compiled with no errors. But when panning it just ask what water do you want to pan in. Tried on player and didnt work.
  6. Hammerhand

    Hammerhand Knight

    Messages:
    8,107
    It wont work with the standard water areas that are default on the map. As I said in the 1st post, you'll need to create small streams & rivers using the water deco tiles (GroundTiles in Pandoras Box).
  7. milva

    milva Sorceror

    Messages:
    2,824
    I found out the beach in Magincia works -guess the water being so close to the beach. So could
    check other beach areas also :)
  8. Pure Insanity

    Pure Insanity Sorceror

    Messages:
    2,804
    Water in the streams within Britian also work...so there are plenty of places you can visit already in game to do this at.
  9. Liacs

    Liacs Sorceror

    Messages:
    3,179
    this is a very cool idea! thank you, Hammerhand! ;)
  10. Stygian Stalker

    Stygian Stalker Sorceror

    Messages:
    2,422
    ummmmmm...

    who sells the gold pan?

    I see no sell buy info. and guess I could make it drag and drop to accept 500 coins but currently I see now way to buy the pan.
  11. Stygian Stalker

    Stygian Stalker Sorceror

    Messages:
    2,422
    Simply drop in, make the 1 change to the SBMiner and your good to go.

    doh!
  12. Pure Insanity

    Pure Insanity Sorceror

    Messages:
    2,804
    Eh, I've tried looking myself...just can't seem to figure out how to make it work.

    I love this system, as do my players. The only thing I don't like about it, is the fact that you can't gain the skill by using panning. Anyone know how to make it so you could gain in fishing just like you would if you were fishing, but with this gold panning system? If I find anything before someone helps me out, I'll be sure to post it.
  13. Hammerhand

    Hammerhand Knight

    Messages:
    8,107
    On the server I staff on, I had them change the fishing skill levels a bit to be able to gain above the 100. Just go into Fishing.cs, line 83 and change the 100
    Code:
    new HarvestResource( 00.0, 00.0, 100.0, 1043297, typeof( Fish ) )
    to 120
    Code:
    new HarvestResource( 00.0, 00.0, 120.0, 1043297, typeof( Fish ) )
    Allows gains past 100 with a PS. Default skill is set at 100 for highest and so wont gain past it. Our players have been gaining on fishing skill while panning.
  14. Stygian Stalker

    Stygian Stalker Sorceror

    Messages:
    2,422
    not to be a downer, but......

    I couldn't find anywhere to pan for gold, until, i went on some docks. and then off on a boat. everywhere but shoreline, and no messages while standing on land, except "what water do you want to pan in" and "target cannot be seen".

    Works fine on docks and boats tho.
  15. Pure Insanity

    Pure Insanity Sorceror

    Messages:
    2,804
    Go to the area west of Brit Bank, you can do it in the stream there. The entire stream I believe. It's all shallow water and the right water type. You could always add the deep water types if you want players to be able to use that water type.
  16. milva

    milva Sorceror

    Messages:
    2,824
    Yes, this is not suppose to work in deep water, true gold panning is done with shallow water :)
    Any "beach will work" there are alot of beaches and as James420 stated, shallow water by brit bank will work. Also be sure not to click to far out in the water. Hope this helps some!
    One other note, we wanted this system for an "extra to fishing skill" a "bonus" to those who did work the skill, since you do make gold with it and pretty good amount.
  17. Stygian Stalker

    Stygian Stalker Sorceror

    Messages:
    2,422
    Please allow me to explain a bit more.

    I use Version 2.0, Build 2959.20979
    Core: Running on .NET Framework Version 2.0.50727

    I installed the package. Got no errors.

    I then tested.

    On no beach was I able to pan for gold. Next to no streams. And not next to any waterfalls. But I could from boats, or on docks. Only open water.

    Then I looked in the script package and came across this....

    Code:
      private static int[] m_WaterTiles = new int[]
      {
        0x00A8, 0x00A9,
                    0x00AA, 0x00AB,
        0x0136, 0x0137,
        #region SA
      // Static Targets fix for SA
      // Adding 0x8000 instead of 0x4000 for static harvest targets
        0x9797, 0x979C,
        0xB46E, 0xB485,
        0xB490, 0xB4AB,
        0xB4B5, 0xB528 // Last value was 0x35D5 (converted), aka crystal housing items. Fixed
        #endregion
    the // Static Targets fix for SA

    Is this a client issue? I'm running client 6.0.10.0
  18. koluch

    koluch Sorceror

    Messages:
    2,946
    Nice Idea!
    I actually was thinking about this some time ago and never did anything, good job!

    Koluch :]
  19. koluch

    koluch Sorceror

    Messages:
    2,946
    If you are using the latest SVN and want to make these commodity deedable<--ok not a word, but you know what I mean hehe :]
    This script works.
    Hammerhand & Milva I hope it is ok I post this. Really like your script :]

    koluch

    Attached Files:

  20. Hammerhand

    Hammerhand Knight

    Messages:
    8,107
    Ok, for the RunUO 2.1 version I had forgotten about the SA tile bit.. change those to
    Code:
            private static int[] m_WaterTiles = new int[]
                {
                    0x00A8, 0x00AB,
                    0x0136, 0x0137,
                    0x5797, 0x579C,
                    0x746E, 0x7485,
                    0x7490, 0x74AB,
                    0x74B5, 0x75D5
                };
    and you should be ok.
    I also noticed that on either version, I had the skills wrong (my bad). I had intended to make it harder than what it is, so in the GoldPanningSystem.cs starting at line 84, change them to
    Code:
                        new HarvestResource( 75.0, 70.0, 125.0, "You put a small gold nugget in your pack.", typeof( SmallGoldNugget ) ),
                        new HarvestResource( 90.0, 75.0, 135.0, "You put a medium gold nugget in your pack.", typeof( MediumGoldNugget ) ),
                        new HarvestResource( 105.0, 90.0, 145.0, "You put a large gold nugget in your pack.", typeof( LargeGoldNugget ) )
    Which would set the min skill needed to 70 to get a small nugget. They are harder to get and you get skill gains as well. When testing, I gained .4 in fishing skill in the time it took to get 11 small nuggets. Just make sure you arent at your overall skillcap. I was able to pan next to the river outside of Trinsic as well as the bay at Cove. I cant seem to do anything about being able to pan from a boat... there really arent any "shallow water" tiles. But this should help with gains & whatnot.

Share This Page