Heamo Goblin submitted a new resource:

Hue Center - A New Way To Hue Items

This was first posted by @jase giffin but was scripted to work for his shard.

So i went ahead and made it work for any shard where it takes the gold from the players bank box instead of the gold ledger.

I also fixed his uni tub script to delete on use and allow players to dye any item in the shard including pets!

This system is drag-n-drop just restart your shard.

I do not know who the original scripter is but credits to him thanks for this awesome system!

Read more about this resource...
 
Last edited:
Banker.Withdraw/Deposit and related methods do get routed through the TOL gold account system, so this shouldn't need further changes to make it compatible.

If it uses an actual reference to mob.BankBox to find and remove physical gold, then that should be converted to use Banker.Withdraw, etc.
 
Banker.Withdraw/Deposit and related methods do get routed through the TOL gold account system, so this shouldn't need further changes to make it compatible.

If it uses an actual reference to mob.BankBox to find and remove physical gold, then that should be converted to use Banker.Withdraw, etc.

I changed BankBox to Banker, and got the following error. I'm suprised it didnt even check my backpack, because even with 100k on me Id get the message before making changes I didnt have enough gold. Heres the error after changing bankbox to Banker:

Errors:
+ Customs/Hue Center/HueListGumpGold.cs:
CS1061: Line 160: 'Server.Mobile' does not contain a definition for 'Banker' and no extension method 'Banker' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly reference?)
 
I went ahead and updated the hue system for the new currency system everything should work flawlessly now with the new servuo publish! Sorry for the delay and wait i have been vary busy but enjoy!


What if I want to make the stone free to use? I tried changing code to this:

if (from.BankBox.ConsumeTotal( typeof( Gold ), 0 ))

Still get message that there wasn't enough gold to withdraw.



Tried using the updated file from 07/18/2017 and setting to 0 as well, but my servuo errors out before I can even test it

Errors:
Custom/Hue Center/HueListGumpGold.cs:
CS1501: Line 153: No overload for method 'Withdraw' takes 3 arguments
Scripts: One or more scripts failed to complie or noscript files were found.



Thanks!
 
What if I want to make the stone free to use? I tried changing code to this:

if (from.BankBox.ConsumeTotal( typeof( Gold ), 0 ))

Still get message that there wasn't enough gold to withdraw.



Tried using the updated file from 07/18/2017 and setting to 0 as well, but my servuo errors out before I can even test it

Errors:
Custom/Hue Center/HueListGumpGold.cs:
CS1501: Line 153: No overload for method 'Withdraw' takes 3 arguments
Scripts: One or more scripts failed to complie or noscript files were found.



Thanks!
So sorry for the late reply i am just now coming back after health issues and trying to support everything that i had released but what you are wanting to adjust in the script HueListGumpGold is removing lines 153,162,163,164, and line 165 to remove the gold costs.

So then it would look like this.

Gold Cost Removal:
Expand Collapse Copy
if (info.ButtonID >= 4000 && info.ButtonID < 7001)
{
                int hueselection = info.ButtonID - 3999;
                int pageHueFound = (hueselection)/maxItemsPerPage;
    {
        UniversalDyeTub rdt = new UniversalDyeTub();
        rdt.Hue = hueselection;
        state.Mobile.AddToBackpack(rdt);
 
        state.Mobile.SendMessage("You purchase a one use rare dye tub with hue {0}.", hueselection.ToString());
        state.Mobile.SendGump(new HueListGumpGold(state.Mobile, pageHueFound));
    }
                break;

-edit i would also change the state.Mobile.SendMessage as well to reflect your changes!
This is also working with ServUo Publish 58!
 
Is there anyway I can adjust this to offer certain hues instead of all hues?
Sorry for the late response code work has kept me off the forums a bit recently.

but to answer your question yes you can do this in more ways then one so it would depend on what you wanted it to do, did you wanna run a set of hues such as ie 1400, 1401, etc or more spiritic like 1523, 1346, etc depending on that would depend on how you would make your list and then have it populate to the gump!

but take a look at line 23 public const int TOTAL_HUES = 3000; that will get you started also look at what all that line references in the script post your results learning to code is all about trial and error!
 

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back