|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
The crazy hue robe can change hues so fast you would swear it was animation.
It also can change hues so slow that the mountains change faster. I made this script to learn about timers. ( Also, i was wanting to see if i could stress the server. ) Edit: There are now two versions of CrazyHue. These two versions will exist together in the same server with no difficulties. The original CrazyHueRobe's description can be found in the black text. The prupose of the new version is to allow you to easily create CrazyHue versions of all the constructable types available in game. I have basified the code for CrazyHue into each of the following types and provided example scripts showing how easy it is to make CrazyHue types. CrazyHueBaseArmor - Examples: CrazyPlateChest, CrazyBoneGloves CrazyHueBaseClothing - Examples: CrazyOuterTorso, CrazyGildedDress CrazyHueBaseItem - Examples: CrazyBaseFloor, CrazyStonePaversLight CrazyHueBaseMobile - Example: CrazyBlackBear CrazyHueBaseWeapon - Examples: CrazyBaseMeleeWeapon, CrazyBaseSword, CrazyBroadSword Each example is commented on the changes required to make a CrazyHue version of any constructable available. I have tried to make this as easy as my current level of c# knowledge allows. Please let me know if you have any troubles or suggestions at all. If you modify anything on any script i have ever created, Please, please feel free to share it! Edit #2: There are now 3 versions of CrazyHue. This red text is about the third version- [1.0]CrazyHueBaseTypes.zip As the name suggests this version is exactly the same as version 2 (blue) except it is for RunUO 1.0 Hope you enjoy! Doubleclick CrazyHueRobe while wearing it to start the hue changing. This robe has a gump that is available via context menu to set the item's current hue, start and stop hues, speed, and if it keeps going from the start hue when it reaches the end hue. For those shard admins that prefer the speed of the hue to be ...eye bending, i have included a bool on the item "AllowsFastSpeed" Set it to true and you have a very, very speedy hue changer on your hands...err body. I want to thank the people and the shards that beta tested this for me. I have heard it got passed around a bit.... But guess what... this script is now about 10x bigger and it isn't comments ![]() Err, that is to say that while every line is commented, that isn't what i was meaning by 10x bigger.... sigh, anyways....it was bedtime about 6 hours ago... Night! No mods needed [add CrazyHueRobe Feedback/Improvements welcome of course! ![]() p.s. I personally like the hue 1184 (non-changing) even stoped there, when you walk it looks like the blue shimmers on the black... really cool effect
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. Last edited by Ashlar; 08-13-2006 at 10:54 AM. Reason: Added new version |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
Ugh!
I can't believe you scripted this mess! What a complete waste of time! *cough*wishesihadthoughtofitfirst*cough* Anyone who would download this is crazy! You should be stripped of your rank and flogged! But seriously, the great thing about RunUO is the portability and cross-polination of ideas. Case in point. Someone else may see this and say, "Cool, a coat that changes colors!....um....ok." I see this, and say, "Hmmmm....what about a coat that changes with your mood? How about a coat that changes depending on if you are standing, sitting, walking or running? What if we made a coat that would change colors depending on the wearers Fame, Karma, STR, INT or wealth!?!?" ![]() |
|
|
|
|
|
#4 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
Trinexx56-
Really glad you like it I might be wrong, but i believe that the hanging effect you see is actually that the hues.mul has large sections of black in them, and so, while the hue doesn't appear to change, it does.... If you hold your pointer over the robe as it is changing color, i have it set to show the current hue number in the properties. You should see it changing at whatever speed you have the delay set, even if what it changing through is just black. As for a full hue suit... There are a LOT of different wearable tiles and i really don't want to do them all, but i will make a couple example scripts that inherit this and basearmor and baseclothing so you can make whatever you want easily... give me a couple hours though, my wife is wanting me to go with her to the store... ----------------------------------------------------------------------- Quote:
Thanks for making my wife and i laugh It was a good start to the day.Actually, i didn't think of it first... A little more than a year ago my wife showed me a script that someone had done... ( I knew who it was at the time, but the script didn't have a header on it so i do not know now who it was... ) The script unfortunately had several largish problems... It was fast, faster than this one and once it reached the max number it turned black and couldn't be restarted. Worse, once the server saved and then reloaded it would flash back and forth between black and invis for a while and then disappear, but would still be taking up the layer it was on. I couldn't do anything with the code in it... ( I did not and still do not understand floats ) So, i started from scratch and scripted it using methods that i did understand, keeping only the original idea. If the person who wrote the origianl script reads this let me say... Please let me know so i can put your name in the credit header instead of the apology that is there currently and.. I am majorly sorry i don't remember who you are! I truely agree with what you said about RunUO, Lokai. I love how much this community has taught me about c# and how it has given me a supportive outlet for creative thoughts and ideas. I love your ideas for this, I would love to see how the changes based on character movement and actions could be scripted... i am drawing a blank on how to do that atm... I have heard about several other really cool uses for this code that shards are implimenting For myself, This code is forming the basis of my project: Custom Art display and purchase. The idea is that instead of changing the Hue, I change the itemid in a slow enough way that when you doubleclick the item you get a purchase gump for it ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. |
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Newbie
|
Quote:
Nah, that wasn't it. My connection has a very bad habit of flickering on and off whenever it rains in a 50 mile radius -_- |
|
|
|
|
|
|
#7 (permalink) |
|
Forum Newbie
Join Date: May 2005
Age: 19
Posts: 11
|
lol im playing with it now, i have it set to .01 second delay, its crazy..
I love this script xD set hue min to 1060 and max to 1100, it looks AWESOME lol what would I modify to change it from a robe to a shroud? Last edited by Deathbringer-hybrid; 08-05-2006 at 03:34 AM. |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
I am planning on releasing in this thread a couple addons that will allow you to use this for multiple clothing or armor pieces easily a bit later tonight...
If you are just wanting to change the one that you have in game; just add a shroud and get the itemid from it in-game with props and then set it on the crazyrobe. If you are wanting to do it in the script, just take that itemid and change the itemid to it in the script ( 0x1F03 is the robe...I don't remember the shroud ItemId atm) public CrazyHueRobe() : base( 0x1F03 ) P.s. You are still going slow at 0.1 sec delay ..... 0.0000000000001 or 0 works too... ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. |
|
|
|
|
|
#15 (permalink) |
|
Forum Newbie
Join Date: May 2006
Posts: 30
|
haha, wow this is a great script! try turning the robes into different articles of clothing and set their layers for the right spots and set em all running and you really get eyebending lol.
Thanks for the script i love it!
__________________
Shard Owner = World Of Wizardlord Shard "In view of the fact that God limited the intelligence of man, it seems unfair that he did not also limit his stupidity." -- Konrad Adenauer |
|
|
|
|
|
#16 (permalink) | |
|
Forum Novice
Join Date: Jun 2006
Age: 29
Posts: 615
|
Quote:
What happened in previous versions I have seen is that it wrks great some times hangs as mentioned due to the hue file but when the server is restarted it will stop changing hues forever. For some reason it just wont start changing hues again on its own once the server is rebooted. I believe it may have been a serialization error or maybe needed a bit more code to tall it once the server restarted that it should begin switching hues but it simply stopped working. This is why I asked does this one do the same. If so oh well if not it would be excellent though. |
|
|
|
|
|
|
#17 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
I promise you Midnightdragon, the problems that existed with that script are completely fixed
![]() The only thing that i know of that remains is that I want to add support for BaseClothing, BaseArmor, BaseWeapon, and all Item s. You can currently change the robe to anything in-game and it will work... as long as you wear it to start it and then change it. I am working it around to where you can make any of the types have the crazyhue effect but not need all the code that is in CrazyHueRobe on each item. I have the scripts all together, but i am still debuging them and working out some odd effects on a couple things. It turned out to be a bigger job than i thought to get this and the ReminderTimer all set up. Daat was kind enough to point out some improvements with the ReminderTimer, but i am going to wait until i finish the crazy stuff here before reminding myself of the timer there ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. |
|
|
|
|
|
#18 (permalink) |
|
Forum Novice
Join Date: Aug 2003
Location: Malas
Age: 41
Posts: 242
|
I dont use 2.0 and have yet to learn how to change something from 2.0 to 1.0 but after reading the comments I knew I had to have a copy of this to help me to better understand scripting and to learn from so I say thank you for this wonderful work you have taken the time to put together.
__________________
Save the flames for your own personal life |
|
|
|
|
|
#19 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
This is to let everyone know that i have updated this script into a second version that adds the ability to add CrazyHue function to any constructable type available in-script and examples showing how easy it is to do so.
I hope it was worth the wait for you all! Cyndrz- I am not positive, but the only things in these scripts that are not RunUO 1.0 compatable is the HasGump bool and the List<ContextMenuEntry> list thing. . Since i originally started this before 2.0 came out... I am pretty sure that you can convert it backwards to 1.0 quite easily. If you try and have difficulty, please feel free to let me know as i would be happy to help. ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. Last edited by Ashlar; 08-09-2006 at 06:19 PM. |
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
err, well, that isn't possible right now....
This is more to make it much easier to script a CrazyHue item, mobile, armor, weapon, or clothing. As far as i know, the way to be able to suprise a player like you are saying is either to: Add the CrazyHueItem.cs to the core and have Item.cs inherit it, or to create a staff command to 'copy' the properties and flags of the item that the player is currently wearing onto a CrazyHue item and then replace the players item with the crazy one. Sorry i wasn't more clear! I have put pretty detailed info on what this is in an edit on the original submission post... Hope this clears it up.. Really good idea though! Might have to work on that if no-one beats me to it ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. |
|
|
|
|
|
#23 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
hrmmmm.....
Why is it that i am starting to feel like my todo list is never going to get smaller.... I thought i had the reminder timer done, then Daat offered suggestions that are too good to possibly avoid attempting and David suggests something so fundimental that it MUST be implimented..... Then, just when i thought i finished CrazyHue for the second time... *starts wondering if this is why most people seem to only work on one or two things at a time...* ![]()
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. |
|
|
|