Go Back   RunUO - Ultima Online Emulation > RunUO > General Discussion

General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT!

Reply
 
Thread Tools Display Modes
Old 03-16-2004, 11:20 AM   #1 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 145
Send a message via AIM to Lord_Seston
Default Delays.. (Timers) and how to make them..

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)
Lord_Seston is offline   Reply With Quote
Old 03-16-2004, 12:14 PM   #2 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

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
XxSP1DERxX is offline   Reply With Quote
Old 03-16-2004, 10:23 PM   #3 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 145
Send a message via AIM to Lord_Seston
Default

Quote:
Originally Posted by XxSP1DERxX
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


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..
Lord_Seston is offline   Reply With Quote
Old 03-16-2004, 11:00 PM   #4 (permalink)
Forum Expert
 
Join Date: Oct 2002
Posts: 1,126
Default

1 & 2:

If you're talking about scripts:
Code:
m.Hue = 0x26;
If you're talking in-game:
Quote:
[set property value
3:
See the town crier script. It does just this.
Aenima is offline   Reply With Quote
Old 03-16-2004, 11:35 PM   #5 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline   Reply With Quote
Old 03-17-2004, 01:48 AM   #6 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 145
Send a message via AIM to Lord_Seston
Default

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?
Lord_Seston is offline   Reply With Quote
Old 03-17-2004, 01:45 PM   #7 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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:
Originally Posted by David
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
David is offline   Reply With Quote
Reply

Bookmarks


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