|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jan 2005
Age: 40
Posts: 17
|
I'm starting by learning to read and modify (slightly) existing scripts before trying to build my own.
I have 2 small questions that will help me understand changes that are possible. First is in the BaseVendor.cs script. Code:
public virtual TimeSpan RestockDelay
{
get
{
return TimeSpan.FromHours( 1 );
}
}
Second is about the sound when items are dropped say on the floor or in a pack / box etc. I've looked in just about every script I can think of trying to find an example of how to make a sound happen on drag-drop. Can anyone tell me how to make a sound happen when I drop an item into a custom book or box etc? Thanks a lot for your help. |
|
|
|
|
|
#2 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
I can answer your first question easily..
Code:
TimeSpan.FromMinutes( 15 );
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
|
#3 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
Your second question really depends on what specific circumstances you're dealing with. If you're working on a container that inherits from BaseContainer, then you can just specify it by overriding DefaultDropSound, as seen in all the containers in Scripts\Items\Containers\Container.cs
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
|
#5 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
That's why this is the New Join forum.
![]() You're welcome. ![]()
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Jan 2005
Age: 40
Posts: 17
|
Thanks for all this. I've found the PlaySound examples now.
This brought up another question though. When you open a spell book you hear a "Book Opening" sound which I would expect to be defined in a DoubleClick area. There's no sound info that I can find though. I've checked the items/books and don't see any open book sound there either. Is the sound being inherited from someplace else? I'm trying to be as independant as possible but it's sort of like learning to crawl and then walk, isn't it? |
|
|
|
|
|
#7 (permalink) | |
|
Account Terminated
|
Quote:
Code:
EventSink.OpenSpellbookRequest += new OpenSpellbookRequestEventHandler( EventSink_OpenSpellbookRequest ); |
|
|
|
|
|
|
#8 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
A lot of the code pertaining to the spellbooks is located within the core, and some of it is handled by the client.
Edit: Phantom ninja'd my reply! ![]()
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
|
#10 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
Ack! Everywhere I go I'm either being ninja'd or running into ninjas!
![]()
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
|
#12 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
*sniff* *sniff*
Yeah.. that must be it. ![]()
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|