Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 08-23-2008, 04:33 PM   #1 (permalink)
Lurker
 
Join Date: Jul 2008
Posts: 5
Default Addon Hue

First things, I'm french so my english is not perfect.

Second, I've got a big trouble scripting somethings, the heck is that the shard I'm working on is on RC1 so it's difficult to find help.

Here my prob, I've made custom wood for my shard, all work great except one things: I've try to modify addon because i want them to keep hue from the wood they are create from. The deed is always in the good hue but when it's comme to put the deed on the map, the bed (just an exemple) stay the same colour.

I suppose I need to do a "GetHue" but i've difficulty programming it.

Also another guys on my shard have try to make a flip system for addon. The heck is that he delete the item and add another to make the flip, so i need to make another "get hue" that make the new item the same color of the old one.

Thanks a lot to help me

Opakoi a scripter in need
opakoi is offline   Reply With Quote
Old 08-23-2008, 05:28 PM   #2 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: Lincoln, IL
Age: 35
Posts: 147
Send a message via MSN to Mad Clown
Default

im sorry but im a bit confused as you what your asking if your looking for a script that will allow you to have players type [gethue here this is i dont remember who did this but you can find it on here
Attached Files
File Type: cs gethue.cs (1.1 KB, 7 views)
Mad Clown is offline   Reply With Quote
Old 08-23-2008, 06:09 PM   #3 (permalink)
Lurker
 
Join Date: Jul 2008
Posts: 5
Default

in fact i need help modifying the base addon script

i've already manage to make the deed having the right hue and resource

and also to make the addon hue to change if we change is resource in his proprety

the only things i'm needing is to know how to make the system transfer the resource of the deed to the addon component
opakoi is offline   Reply With Quote
Old 08-23-2008, 07:06 PM   #4 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,777
Send a message via Yahoo to Lord_Greywolf
Default

look in baseaddon and the baseaddon deed

in there yopu can add in for the item to take on a certain hue when placed, if hue other than 0 is used
(remember addons that are colored different hues will then also take on new hue)

also there is a spot in there for the deed to retain the hue of the addon, when it is chopped up (it is a true/false setting), so it goes back to the same hue again
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 08-23-2008, 10:21 PM   #5 (permalink)
Lurker
 
Join Date: Jul 2008
Posts: 5
Default

thanks for the trouble but the problem is that I have more than one type of wood so I cannot says directly which hue to take.

I juste need to make the addon take the resource of the addondeed but I don't know how
opakoi is offline   Reply With Quote
Old 08-23-2008, 10:25 PM   #6 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,777
Send a message via Yahoo to Lord_Greywolf
Default

look in baseaddon
when it makes the addon, set it so if the hue of the deed is other than 0, the addon will take the color of the deed
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 08-23-2008, 10:44 PM   #7 (permalink)
Lurker
 
Join Date: Jul 2008
Posts: 5
Default

I'm a noob^^

I know how to make the first part ( if Hue = !0)
but the second I have no idea how to make it..

Last edited by opakoi; 08-23-2008 at 10:49 PM.
opakoi is offline   Reply With Quote
Old 08-23-2008, 10:48 PM   #8 (permalink)
Newbie
 
Pantoute's Avatar
 
Join Date: Aug 2008
Location: Québec
Posts: 45
Default

Does it work Opakoi?

Edit: Why did you Edit Opakoi?, now my post does not make any sense... :P

Last edited by Pantoute; 08-23-2008 at 10:52 PM.
Pantoute is offline   Reply With Quote
Old 08-24-2008, 11:13 PM   #9 (permalink)
Lurker
 
Join Date: Jul 2008
Posts: 5
Default

no, I've add the lines below but it's not working,

if m_Deed.Hue != 0
Hue = m_Deed.Hue
opakoi is offline   Reply With Quote
Old 08-25-2008, 04:06 AM   #10 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,777
Send a message via Yahoo to Lord_Greywolf
Default

ok you need these lines added:


Code:
		public virtual bool RetainDeedHue{ get{ return true; } }
		public virtual bool ShareHue{ get{ return true; } }
right above the onchop methoed works good
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Reply

Bookmarks

Tags
addon, deed, hue, resource, wood


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5