|
||
|
|||||||
| 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:
These scripts provide a simple way to add story books as a scripted object which can be used as loot. Description: This is two stories told in six books. Lovers Lament is the story of a couple cursed to spend eternity apart--told from two viewpoints. The Death of Rhan is one story told in four volumes (intended to be increasingly rare.) 1.0 Notes: This script works fine in 1.0, moving from Archives to Submissions on 05/05/06. Installation: Extract to your Scripts\Custom folder 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; 05-05-2006 at 02:24 AM. |
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Age: 41
Posts: 163
|
I was trying to add a book for instructions to new people and this is the messages I got:
Scripts: Compiling C# scripts...failed (5 errors, ) - Error: Scripts\Customs\TheBook\InstructionBook.cs: CS1502: (line 16, column 4 ) The best overloaded method match for 'Server.Items.BaseBook.BaseBook(int, stri ng, string, int, bool)' has some invalid arguments - Error: Scripts\Customs\TheBook\InstructionBook.cs: CS1503: (line 17, column 4 2) Argument '1': cannot convert from 'string' to 'int' - Error: Scripts\Customs\TheBook\InstructionBook.cs: CS1503: (line 17, column 5 7) Argument '3': cannot convert from 'int' to 'string' - Error: Scripts\Customs\TheBook\InstructionBook.cs: CS1503: (line 17, column 6 4) Argument '4': cannot convert from 'bool' to 'int' - Error: Scripts\Customs\TheBook\InstructionBook.cs: CS1503: (line 17, column 7 4) Argument '5': cannot convert from 'int' to 'bool' Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. Thanks deryk |
|
|
|
|
#3 (permalink) | |
|
Quote:
Hmm,... I'm sitting on the work at the moment and can't test it but it could be that the "style" have to be the first argument. It should be "int, string, string, int, bool" and at the moment it is "string, string, int, bool, int". You could also try to change this part in the script: Code:
using System;
using Server;
namespace Server.Items
{
public class InstructionBook : BaseBook
{
private const string TITLE = "Instruction Book";
private const string AUTHOR = "Deryk";
private const int PAGES = 11;
private const bool WRITABLE = false;
private const int STYLE = 0xFF1 ;
// books: Brown 0xFEF, Tan 0xFF0, Red 0xFF1, Blue 0xFF2,
// OpenSmall 0xFF3, Open 0xFF4, OpenOld 0xFBD, 0xFBE
[Constructable]
public InstructionBook() : base( TITLE, AUTHOR, PAGES, WRITABLE, STYLE )
Code:
using System;
using Server;
namespace Server.Items
{
public class InstructionBook : BrownBook
{
[Constructable]
public InstructionBook() : base( "Instruction Book", "Deryk", 11, false )
- Hudel - |
||
|
|
|
|
#5 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
The STYLE constant should be the first argument in the constructor not the last.
Code:
public InstructionBook() : base( STYLE, TITLE, AUTHOR, PAGES, WRITABLE )
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
#7 (permalink) |
|
Join Date: Jul 2003
Posts: 95
|
Nice idea but:
Code:
Scripts: Compiling C# scripts...failed (6 errors, 0 warnings) - Error: Scripts\A0-Custom\A0 - Books\RahnBook.cs: CS0133: (line 13, column 21) The expression being assigned to 'Server.Items.RhanBook1.STYLE' must be constant - Error: Scripts\A0-Custom\A0 - Books\RahnBook.cs: CS0133: (line 78, column 21) The expression being assigned to 'Server.Items.RhanBook2.STYLE' must be constant - Error: Scripts\A0-Custom\A0 - Books\RahnBook.cs: CS0133: (line 182, column 21 ) The expression being assigned to 'Server.Items.RhanBook3.STYLE' must be constant - Error: Scripts\A0-Custom\A0 - Books\RahnBook.cs: CS0133: (line 325, column 21 ) The expression being assigned to 'Server.Items.RhanBook4.STYLE' must be constant - Error: Scripts\A0-Custom\A0 - Books\LoversLamentBook.cs: CS0133: (line 12, column 21) The expression being assigned to 'Server.Items.LoversLamentBook.STYLE' must be constant - Error: Scripts\A0-Custom\A0 - Books\LoversLamentBook.cs: CS0133: (line 194, column 21) The expression being assigned to 'Server.Items.GerthlandBook.STYLE' must be constant Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again.
__________________
![]() If homosexuality is a disease, let's all call in queer to work. "Hello, can't work today. Still queer." - Robin Tyler |
|
|
|
|
#8 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
oops. Try it again. That was a feature enhancement gone bad.
__________________
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 | |
|
|