|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
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.
__________________
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. |
|
|
|
|
#3 (permalink) | |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Quote:
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
|
#6 (permalink) | |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,814
|
Quote:
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) |
|
|
|
|
|
#7 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
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 |
|
|
|
|
#11 (permalink) |
|
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. |
|
|
|
|
|
#12 (permalink) | ||
|
Try this.
Code:
PackItem( new NetBook () );
__________________
Quote:
Quote:
My Website |
|||
|
|
|
|
#13 (permalink) | |
|
Quote:
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 ![]() |
||
|
|
|
|
#14 (permalink) | ||
|
Try this.
Code:
NetBook book = new NetBook(); AddItem( book );
__________________
Quote:
Quote:
My Website |
|||
|
|
|
|
#15 (permalink) | |
|
Quote:
- 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? |
||
|
|
|
|
#16 (permalink) | ||
|
Ok if this does not work.
Code:
PackItem( new NetBook () );
__________________
Quote:
Quote:
My Website |
|||
|
|
|
|
#17 (permalink) | ||
|
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. 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. Code:
PackItem( new NetBook () );
__________________
Quote:
Quote:
My Website |
|||
|
|
|
|
#19 (permalink) | |
|
Quote:
![]() |
||
|
|
|
|
#20 (permalink) | ||
|
np.
__________________
Quote:
Quote:
My Website |
|||
|
|
|
|
#21 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
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 |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|