|
||
|
|||||||
| General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
|
Im not looking for support on any custom scripts or anything like that, im just looking for a few answers:
1. What function do you call to set the SpeechHue of an NPC? 2. What function do you call to set the Hue of an NPC? (so their entire body is a different color, i know it doesnt work in 3D but it should still in 2D) 3. Most importantly: What function for the following do I call? : How do you make a delay (timer) so the NPC doesnt say everything all at once (I have him set to say a lot of lines, but i dont want them all to appear at once because then the person has to look in their journal to see what it said.. which defeats the purpose) The NPC is a bear template (only a bit modified) |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
1) SpeechHue is the property you set
2) Hue is the property you set 3) That is difficult to explain, for each NPC its in a different place. For the first two, you could always consult the docs. They are held at docs\types\Mobile.html |
|
|
|
|
|
#3 (permalink) | |
|
Forum Novice
|
Quote:
Yes but: Those are the methods to GET the SpeechHues and Hues.. how do you actually "SET" them? I dont need accessors, i need mutators.. |
|
|
|
|
|
|
#5 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
There is a code segment in this thread that will help... General Question
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
|
I didnt realize that the properties were inherited sorry...
All I see is a DeleteTimer class... Is there any already built in class (for RunUO) that can be instantiated? So I can just make an object and use it right away..? Like Timer timer = new Timer(); timer.pause(10000); or something to that effect? |
|
|
|
|
|
#7 (permalink) | |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Most of RunUO executes in a single thread. Timers do not. When you start a timer, the rest of your script continues merrily on its way while the timer runs. What you can do with timers is call a static method in your calling class, or pass a referance to the instance of the calling class to your timer and call a public method. There is no Pause() method because the entire shard would pause, not just the calling script.
However if you would read the thread I refered you too, I addressed the exact same question with a scripted solution. Quote:
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|