Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 02-20-2004, 11:11 PM   #1 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default [1.0-2.0] NetBook

Summary:
Compatible with RunUO 1.0 and 2.0
Book that opens to a web page.

Description:
This is a book object that opens the Players web browser to a given URL. When the book is double clicked a gump appears as an open book which offers the Player the chance to cancel. The URL may be set in [Props and defaults to null. The default may be changed in line 11 of the script. Note that if the URL is null, the book will not open. Also, the book must be in the Players pack, or the Player must be within one tile to open the book. The [Flip command may be used to cycle through several book styles.

This is useful for creating books with dynamic content or as a way to direct users to a rules or help page.

Notes:
Remember, if the URL is null the book will not open.
This script works without modification in RunUO 2.0.

Installation:
Extract the file to your Scripts/Custom directory and restart the server.
Attached Files
File Type: zip NetBook.zip (1.1 KB, 598 views)
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2

Last edited by David; 06-18-2006 at 07:02 PM.
David is offline  
Old 02-21-2004, 02:12 AM   #2 (permalink)
Forum Novice
 
Join Date: Feb 2004
Posts: 110
Send a message via AIM to JetBoom
Default

Can you set the itemid to change to a stone or somthing?
JetBoom is offline  
Old 02-21-2004, 11:54 AM   #3 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Originally Posted by JetBoom
Can you set the itemid to change to a stone or somthing?
Sure. The gump will still appear as a book though...
__________________
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  
Old 02-21-2004, 07:51 PM   #4 (permalink)
Forum Novice
 
Join Date: Feb 2004
Posts: 110
Send a message via AIM to JetBoom
Default

Quote:
Originally Posted by David
Sure. The gump will still appear as a book though...
Fine with me.
JetBoom is offline  
Old 02-25-2004, 10:05 PM   #5 (permalink)
 
Join Date: Feb 2003
Posts: 145
Default

This script has already been created, unfortunetly for the stupid A** new runuo thingy it has been deleted so please give credit where credit is due.
nospoon1 is offline  
Old 02-25-2004, 10:09 PM   #6 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,814
Default

Quote:
Originally Posted by nospoon1
This script has already been created, unfortunetly for the stupid A** new runuo thingy it has been deleted so please give credit where credit is due.
Disabling aos ? how do i do it?

Yes... David posted it...
__________________
psz
Demise' Creator (Retired)
The RunUO.com Forum Moderator Team
Former Official RunUO Scripter (Retired)
Websites:
My 360 Blog
My Gaming Site(Old Link)
My Gaming Site(New Link)
psz is offline  
Old 02-25-2004, 10:59 PM   #7 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

ROFL... All sorts of analogies about light bulbs and sharp knives come to mind...

Nospoon1, I'll just leave it at refering you to the Search link on the top of each page. Perhaps you may find it useful in the future?
__________________
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  
Old 02-25-2004, 11:00 PM   #8 (permalink)
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 44
Posts: 311
Send a message via ICQ to Zulu
Default

Quote:
Originally Posted by psz
Yes... David posted it...
Man, that's funny!
Zulu is offline  
Old 02-25-2004, 11:13 PM   #9 (permalink)
 
Join Date: Feb 2003
Posts: 269
Default

Wow... looks like someone forgot to do some research.
thegrandmystic is offline  
Old 02-26-2004, 09:11 AM   #10 (permalink)
Forum Newbie
 
Join Date: Apr 2003
Location: Manila, Philippines
Age: 31
Posts: 99
Default

Oops! hehe Btw, would it ever be possible to open a browser window within a gump? hehe just dreaming.
raffy is offline  
Old 03-18-2004, 07:59 PM   #11 (permalink)
 
Join Date: Feb 2004
Posts: 58
Send a message via ICQ to Alatariel
Question Add to pack in char. creation?

Hello,
I would like to avoid having to pass this item out, and I definitely want all players to have a copy but I have not been able to add a working copy to the pack in char creation. I get a book and it says 'a worn book' but I haven't been able to get it any farther upon a variety of attempts. Could someone show me the proper way to add David's NetBook to new chars backpacks?

Thankyou in advance.
Alatariel is offline  
Old 03-18-2004, 08:06 PM   #12 (permalink)
 
Join Date: Jan 2004
Posts: 753
Send a message via ICQ to Crack177 Send a message via AIM to Crack177 Send a message via Yahoo to Crack177
Default

Try this.
Code:
PackItem( new NetBook () );
__________________
Quote:
psz wrote:
You can't block an account because someone doesn't know what they're doing... If the devs did, there'd be, what, 100 accounts instead of ~42000...
Quote:
Phantom wrote:
dieirlthnxbye
The two best quotes I have seen so far on this forum.
My Website
Crack177 is offline  
Old 03-19-2004, 12:49 AM   #13 (permalink)
 
Join Date: Feb 2004
Posts: 58
Send a message via ICQ to Alatariel
Default That methood doesn't work :(

Quote:
Originally Posted by Crack177
Try this.
Code:
PackItem( new NetBook () );
Thanks for the reply, but that was the first way I tried and the book appears in the pack but doesn't connect to a website. The second way I tried was this:

NetBook book = new NetBook();
pack.DropItem( book );

it also had the effect of putting the NetBook in the new char pack without its ability to open the brouser to the website.

there must be a way to do this, but I have been unable to figure it out so I send out another call for help with this issue
Alatariel is offline  
Old 03-19-2004, 02:35 AM   #14 (permalink)
 
Join Date: Jan 2004
Posts: 753
Send a message via ICQ to Crack177 Send a message via AIM to Crack177 Send a message via Yahoo to Crack177
Default

Try this.
Code:
NetBook book = new NetBook();
AddItem( book );
__________________
Quote:
psz wrote:
You can't block an account because someone doesn't know what they're doing... If the devs did, there'd be, what, 100 accounts instead of ~42000...
Quote:
Phantom wrote:
dieirlthnxbye
The two best quotes I have seen so far on this forum.
My Website
Crack177 is offline  
Old 03-19-2004, 03:20 AM   #15 (permalink)
 
Join Date: Feb 2004
Posts: 58
Send a message via ICQ to Alatariel
Default

Quote:
Originally Posted by Crack177
Try this.
Code:
NetBook book = new NetBook();
AddItem( book );
Crack, that didn't work either as it comes up with the following error:

- Error: Scripts\Misc\CharacterCreation.cs: CS0103: (line 43, column 4) The name 'AddItem' does not exist in the class or namespace 'Server.Misc.CharacterCreation'

*sigh* I can't believe I'm the first one to try to add this to a new chars pack. Well, thats three methods that don't work... anyone have any more ideas?
Alatariel is offline  
Old 03-19-2004, 03:28 AM   #16 (permalink)
 
Join Date: Jan 2004
Posts: 753
Send a message via ICQ to Crack177 Send a message via AIM to Crack177 Send a message via Yahoo to Crack177
Default

Ok if this does not work.
Code:
PackItem( new NetBook () );
That does not mean there is something wrong with the way you added it. It means there is something wrong with you NetBook.cs script.
__________________
Quote:
psz wrote:
You can't block an account because someone doesn't know what they're doing... If the devs did, there'd be, what, 100 accounts instead of ~42000...
Quote:
Phantom wrote:
dieirlthnxbye
The two best quotes I have seen so far on this forum.
My Website
Crack177 is offline  
Old 03-19-2004, 03:46 AM   #17 (permalink)
 
Join Date: Jan 2004
Posts: 753
Send a message via ICQ to Crack177 Send a message via AIM to Crack177 Send a message via Yahoo to Crack177
Default

Your problem is that when you add the book to the pack there is no URL in the distro version of the book. So to make it to where you just have to add it instead of waiting for every character that is made and change the URL. Go to you NetBook.cs script and find this line. Should be right at the top.
Code:
		// private string i_url = "www.RunUO.com"; // set default url here or 
		private string i_url; // use this instead for default of null.
What you want to do is change it to this.
Code:
		 private string i_url = "WHAT EVERY URL YOU WANT HERE"; // set default url here or 
		//private string i_url; // use this instead for default of null.
Now in your CharcterCreation.cs add this.
Code:
PackItem( new NetBook () );
It will work like a dream now.
__________________
Quote:
psz wrote:
You can't block an account because someone doesn't know what they're doing... If the devs did, there'd be, what, 100 accounts instead of ~42000...
Quote:
Phantom wrote:
dieirlthnxbye
The two best quotes I have seen so far on this forum.
My Website
Crack177 is offline  
Old 03-19-2004, 03:55 AM   #18 (permalink)
 
Join Date: Feb 2004
Posts: 58
Send a message via ICQ to Alatariel
Default

Ahhh! that looks like the ticket, hehe -I'll get back and let ya know how it goes in a wee bit, Thanks!
Alatariel is offline  
Old 03-19-2004, 04:34 AM   #19 (permalink)
 
Join Date: Feb 2004
Posts: 58
Send a message via ICQ to Alatariel
Default

Quote:
Originally Posted by Alatariel
Ahhh! that looks like the ticket, hehe -I'll get back and let ya know how it goes in a wee bit, Thanks!
Well shucks, I feel a bit silly for missing that, but miss it I did. Thanks for your help, it's working like a dream now as you said it would, hehe. Hope this helps someone else too
Alatariel is offline  
Old 03-19-2004, 04:37 AM   #20 (permalink)
 
Join Date: Jan 2004
Posts: 753
Send a message via ICQ to Crack177 Send a message via AIM to Crack177 Send a message via Yahoo to Crack177
Default

np.
__________________
Quote:
psz wrote:
You can't block an account because someone doesn't know what they're doing... If the devs did, there'd be, what, 100 accounts instead of ~42000...
Quote:
Phantom wrote:
dieirlthnxbye
The two best quotes I have seen so far on this forum.
My Website
Crack177 is offline  
Old 06-18-2006, 07:03 PM   #21 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

This script works without modification in RunUO 2.0.

enjoy.
__________________
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  
 

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