Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to publish them under the GPL licensing terms. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 06-13-2007, 04:52 PM   #1 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default [1.0][2.0]Lokai's Master Runebook

Lokai's Master Runebook

OK. It's shameless of me to put my name on it, eh?

But, hey, I only put my name on about 3% of the scripts I write. And this one needed a little pizzazz in the name anyway.

Props to Ozzy (a.k.a. Timothyisreal) for coming up with some of the concepts, and some brainstorming ideas. (My head still hurts.)

What is it?

51 Runebooks squeezed into 1 book.

How to use it?

It's called MasterRunebook. Create one, open it. Enjoy.

- Main screen lets you rename each Internal Runebook.
- From there, you select the Runebook you want to view.
- In the runebook, you do almost everything you normally do.
- In addition, you can add locations by clicking the Rune and targeting a marked recall rune in your pack. (It consumes runes.)
- You can add charges by clicking the scroll and targeting recall scrolls.
- As a GM, you can click the rune, and target yourself to mark a new spot.
- You can drop recall scrolls onto the book to add charges, up to 816 scrolls!
- You can drop recall runes, and they will enter the first free spot.
- You can drop entire runebooks, and they will take the first available place with all entries empty!
- You can also extract a runebook by clicking the "remove" button.

Installation:

Drop in customs and go.
Use v1.0 for 1.0 shards.
Use v2.0 for RC1 or SVN shards.
ALL WERE TESTED!

CHANGES:

6/27/2007

- Removed scripts with bug, pointed out by oiii88, where Gate Travel (and Sacred Journey) would not work on the 16th entry of the InternalRunebook. (I had used options 96 and 97 in the Gump twice.)
- Added back the scripts with fixes.
- Also posting optional InternalRunebookGump.cs. This file has the changes if you just want the one file. Also, this version of the file uses the Inscription skill to remove Runebooks from the MasterRunebook. It requires the usual materials, and will not take any materials from you unless you have all the necessary materials present in your pack.
Attached Files
File Type: zip Master Runebook RunUO1.0.zip (8.4 KB, 196 views)
File Type: zip Master Runebook RunUO 2.0.zip (8.4 KB, 763 views)
File Type: zip InternalRunebookGump.zip (4.5 KB, 551 views)

Last edited by Lokai; 06-27-2007 at 12:47 PM. Reason: Attachments replaced.
Lokai is offline   Reply With Quote
Old 06-13-2007, 06:08 PM   #2 (permalink)
Forum Novice
 
Join Date: Jul 2006
Age: 30
Posts: 746
Default

Nice man just tested it in my rc1 works fine. Will save a lot of hassle for gm's from dealing with 20 separate rune books.
oiii88 is offline   Reply With Quote
Old 06-13-2007, 08:21 PM   #3 (permalink)
Forum Novice
 
seltor's Avatar
 
Join Date: Nov 2003
Location: North Carolina
Age: 37
Posts: 293
Send a message via Yahoo to seltor
Default

This is an awesome idea. I am putting it in right now to play with it. I have about 10 books in my bag right now so I got room to grow Thanks again
seltor is offline   Reply With Quote
Old 06-13-2007, 09:22 PM   #4 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,210
Send a message via Yahoo to Lord_Greywolf
Default

so this is really a book that holds books then
but it auto dectects free spots, etc for placing stuff in
sweet - good job!!!!!!

questions - up to 816 scrolls can be added in for charges?
a) why the weird number
b) can that be edited and where?

question set 2 lol
21 books?
a) why 21 not 20 (just wondering)
b) can that number be changed also?

also by chance - does this wirk with the other travel spells besides just the noemal recall, gate, etc - does it include the possibily of using the ones from like lucids system, etc?

last one
each book holds the normal 16 spots?

Thanks - and again - great job
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 06-13-2007, 11:06 PM   #5 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Lord_Greywolf View Post
so this is really a book that holds books then
but it auto dectects free spots, etc for placing stuff in
sweet - good job!!!!!!

questions - up to 816 scrolls can be added in for charges?
a) why the weird number
b) can that be edited and where?
51 x 16 = 816
51 books times 16 charges max (fixed but can be changed using the scripts) = 816 scrolls.

Quote:
Originally Posted by Lord_Greywolf
question set 2 lol
21 books?
a) why 21 not 20 (just wondering)
51. Just came out that way with 3 pages of 17. Really, it could almost an infinite number, but you have to stop somewhere, right?

Quote:
Originally Posted by Lord_Greywolf
b) can that number be changed also?
In the scripts, yes. But if you do, just remember that the gumps and everything are looking for that number for positioning.

Quote:
Originally Posted by Lord_Greywolf
also by chance - does this wirk with the other travel spells besides just the noemal recall, gate, etc - does it include the possibily of using the ones from like lucids system, etc?
I just copied the Runebook gump for the most part, so it includes using charges, casting recall, gate, and using chivalry.

Quote:
Originally Posted by Lord_Greywolf
last one
each book holds the normal 16 spots?

Thanks - and again - great job
Each book holds 16 spots.
Lokai is offline   Reply With Quote
Old 06-13-2007, 11:15 PM   #6 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,210
Send a message via Yahoo to Lord_Greywolf
Default

Quote:
51 x 16 = 816
51 books times 16 charges max (fixed but can be changed using the scripts) = 816 scrolls
so each book holds its own charges then, it is not a total for them to draw from?
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 06-13-2007, 11:20 PM   #7 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Lord_Greywolf View Post
so each book holds its own charges then, it is not a total for them to draw from?
Actually, I never explained this very well, but it's kinda slick.

Recall Scrolls work just like Recall Runes do.

If you add them from the Internal Book pages they add directly to that book. So, if you are looking at Book #37, and click the scroll button, then target scrolls, it will let you add up to the total of 16 charges for the book.

If you drop scrolls on the book, it will start filling internal books until it runs out of scrolls, so if you drop 58 scrolls on it, it will put 16 in the first, 16 in the second, and 16 in the third, then 10 in the fourth book. If the third book already has 12 charges, it will only add 4 more there, so it will drop 16 in the fourth, and 6 in the fifth.
Lokai is offline   Reply With Quote
Old 06-13-2007, 11:29 PM   #8 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,210
Send a message via Yahoo to Lord_Greywolf
Default

cool
I will be adding this in on my next restart
just have to figure out how much crap & skill will be needed to make this thing

one one question:
you said can extract a runebook
is that just runes only or the book with runes in it?
does it totaly remove it form the list then (and same when extracting runes)?

and if it is the books - where is that at in the scripts - i might make an option where you have to have materials in pack for doing that (like an empty book)
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 06-13-2007, 11:38 PM   #9 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Lord_Greywolf View Post
cool
I will be adding this in on my next restart
just have to figure out how much crap & skill will be needed to make this thing

one one question:
you said can extract a runebook
is that just runes only or the book with runes in it?
does it totaly remove it form the list then (and same when extracting runes)?

and if it is the books - where is that at in the scripts - i might make an option where you have to have materials in pack for doing that (like an empty book)
InternalRunebookGump:

Code:
 
            if (buttonID == 96)
            {
                from.CloseGump(typeof(InternalRunebookGump));
                from.SendGump(new OKTargetGump("Remove Runebook?", 16777215,
                    "Are you sure you want to remove this Runebook?",
                    16777215, 300, 300, new GenericOKCallback(RemoveRunebook_Callback), m_MasterBook, m_Book, m_BookNum));
            }
Thats where the Gump calls it, but the actual extraction occurs down further in the script, in the RemoveRunebook_Callback method.

This extraction takes the runes and the name and creates a Runebook in your pack. It removes them from the MasterRunebook.

One thing I forgot to do was handle the charges, both coming in and going out. If you drop a Runebook onto the MasterRunebook, you lose whatever charges you had left. If you extract the Runebook, you lose the charges there too. (I get em coming AND going. hehe)
Lokai is offline   Reply With Quote
Old 06-13-2007, 11:44 PM   #10 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,210
Send a message via Yahoo to Lord_Greywolf
Default

cost of the change over - loosing stored charges

ok - now to get to work on requireg stuff in the backpack
that would be the place to have it done at

edited - for those interested - here is what to add/change to require certain skill level and 1 type of item to be used in removing a runebook:

change this:
Code:
			if (buttonID == 96) //origional before mods edited by Greywolf
			{
				from.CloseGump(typeof(InternalRunebookGump));
				from.SendGump(new OKTargetGump("Remove Runebook?", 16777215,
					"Are you sure you want to remove this Runebook?",
					16777215, 300, 300, new GenericOKCallback(RemoveRunebook_Callback), m_MasterBook, m_Book, m_BookNum));
			}
to this:
Code:
			if (buttonID == 96) // edited version for requiring scrolls added by greywolf
			{
				if ( from.Skills.Inscribe.Base < 100 )
				{
					from.SendMessage("You do not have the skill required to extract the book");
				}
				else if ( !from.Backpack.ConsumeTotal( typeof( BlankScroll ), 10 ) )
				{
					from.SendMessage("You do not have the blank scrolls needed to creat the book from");
				}
				else
				{
					from.CloseGump(typeof(InternalRunebookGump));
					from.SendGump(new OKTargetGump("Remove Runebook?", 16777215,
						"Are you sure you want to remove this Runebook?",
						16777215, 300, 300, new GenericOKCallback(RemoveRunebook_Callback), m_MasterBook, m_Book, m_BookNum));
				}
			}
again great script !!!
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)

Last edited by Lord_Greywolf; 06-14-2007 at 12:54 AM.
Lord_Greywolf is online now   Reply With Quote
Old 06-14-2007, 12:59 AM   #11 (permalink)
andrewd
Guest
 
Posts: n/a
Default i added and got seven errors

errors
Code:
 - Error: Scripts\custom\Master rune book\InternalRunebook.cs: CS1501: (line 52,
 column 33) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 542, column 45) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 579, column 38) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 495, column 52) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 614, column 36) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\MasterRunebook.cs: CS1501: (line 93, c
olumn 54) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\MasterRunebook.cs: CS1501: (line 127,
column 58) No overload for method 'RunebookEntry' takes '4' arguments
btw im running 1.0
  Reply With Quote
Old 06-14-2007, 05:26 AM   #12 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

I tested this on a clean 1.0 install.

Here is the code straight from Runebook.cs:

Code:
  public RunebookEntry( Point3D loc, Map map, string desc, BaseHouse house )
  {
   m_Location = loc;
   m_Map = map;
   m_Description = desc;
   m_House = house;
  }
What do you have for RunebookEntry in your Runebook.cs script? Are you using a custom version?
Lokai is offline   Reply With Quote
Old 06-14-2007, 08:39 AM   #13 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

Well , I thought I would be useing this but.... lol , I already had the Moongate Library d/l and as you know you have to add each ruune book to the Moongate. well when i downloaded the master Rune Book.. which i Liked also..props to yall, but.. it deletes the locations off of the moongate when i add the runebook to master rune book. I'll re-download after this fix... I like both... but the Moongate Library comes first and is player involement verses be just haveing multi books and being neat. I'll await the fix.. Thanks again guys, HotShot... AkA Cherokee/Mule II
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 06-14-2007, 11:17 AM   #14 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

I dont know what this did... But everytime i go through Monngate Library it crashes system even after i deleted your Master Runbook script. If this was drop and restart... I dont see why this did this. got me &%&*%&*%&* put two and two together... any Ideas anyone ?
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 06-14-2007, 12:22 PM   #15 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

I have delete4d everything that had any contact with the master runebook aND my server still crashes evertime a player level tries to go through the moongate library , i created new runes, runebooks, library gates and remarked all the rune... and no luck , crash , crash crash, crash... about 10 times, below is what happened after i downloaded tried your master rune book and will not stop crashing even after i deleted what i downloaded.
Quote:
Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 6/14/2007 11:01:22 AM
Mobiles: 3370
Items: 110434
Clients:
- Count: 1
+ 172.162.225.78: (account = craig) (mobile = 0x50B 'Cherokee [ Shard Owner ]')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.MoongateLibraryGump.OnResponse(NetSta te state, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse( NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 06-14-2007, 12:38 PM   #16 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

I am not familiar with the Moongate Library. Can you post that?
Lokai is offline   Reply With Quote
Old 06-14-2007, 12:53 PM   #17 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

I had to resort to restoring to an earlier point/back up. not sure what it did...
but i'm pretty carefull and pay close attention to where i put things and reading instructions. I just have a little work i have to redo... this seems cool, hopefully it wil compile with CEO's Moongate Library <~ Awesome Script, anyways... back to redoing my shard. thanks again for effort, i'll await fix or update. I'm not sure if CEO would appreciate me posting his script. just put in Moongate Library for search.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 06-14-2007, 01:01 PM   #18 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Hotshot View Post
Well , I thought I would be useing this but.... lol , I already had the Moongate Library d/l and as you know you have to add each ruune book to the Moongate. well when i downloaded the master Rune Book.. which i Liked also..props to yall, but.. it deletes the locations off of the moongate when i add the runebook to master rune book. I'll re-download after this fix... I like both... but the Moongate Library comes first and is player involement verses be just haveing multi books and being neat. I'll await the fix.. Thanks again guys, HotShot... AkA Cherokee/Mule II
I am still not quite sure I understand. These are not "normal" runebooks, I gather, right? If not, then I am not able to support them without seeing them.
Lokai is offline   Reply With Quote
Old 06-14-2007, 01:15 PM   #19 (permalink)
Forum Novice
 
jumpnjahosofat's Avatar
 
Join Date: Jun 2005
Age: 33
Posts: 516
Send a message via MSN to jumpnjahosofat Send a message via Yahoo to jumpnjahosofat
Default

Nifty script! I'll have to make a quest for it or something.
__________________
It's the hardest questions that have the easiest answers. "Your name freaks me out - unknown"
jumpnjahosofat is online now   Reply With Quote
Old 06-14-2007, 01:59 PM   #20 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

They are normal, well it said at top ceo moongate library... but as i look in script it says Lokai's World Omniporter 2.0, so who ever the credit goes to...? you or him.. both ? i like it, as i said ealier though... when i put all the books from the moongate library into the Master Rune Book... it deleted all the destinations from the moongate and crashed... not sure why ? and you being one of the authers/scripters or the scripter of the World Teleporter/Omni , i'm sure you have it on your shard and wonder if you have this same problem...? check and see...lol If not... i dont know.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself.
Hotshot is offline   Reply With Quote
Old 06-14-2007, 02:39 PM   #21 (permalink)
andrewd
Guest
 
Posts: n/a
Default yep i added hued runes

here is what i have
Code:
		public RunebookEntry( Point3D loc, Map map, string desc, BaseHouse house, int hue )
		{
			m_Location = loc;
			m_Map = map;
			m_Description = desc;
			m_House = house;
			m_Hue = hue;
		}
  Reply With Quote
Old 06-14-2007, 03:09 PM   #22 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Hotshot View Post
They are normal, well it said at top ceo moongate library... but as i look in script it says Lokai's World Omniporter 2.0, so who ever the credit goes to...? you or him.. both ? i like it, as i said ealier though... when i put all the books from the moongate library into the Master Rune Book... it deleted all the destinations from the moongate and crashed... not sure why ? and you being one of the authers/scripters or the scripter of the World Teleporter/Omni , i'm sure you have it on your shard and wonder if you have this same problem...? check and see...lol If not... i dont know.
You are totally confusing me. I wrote Lokai's World Omniporter, but it has NOTHING to do with the Moongate Library.
Lokai is offline   Reply With Quote
Old 06-14-2007, 03:10 PM   #23 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by andrewd View Post
here is what i have
Code:
        public RunebookEntry( Point3D loc, Map map, string desc, BaseHouse house, int hue )
        {
            m_Location = loc;
            m_Map = map;
            m_Description = desc;
            m_House = house;
            m_Hue = hue;
        }
OK, well that looks easy enough. Just look through the code where RunebookEntries are created, and add one more 'int' value to the end. That should do the trick. Just remember, you will only get normal Runebooks back, so keep that in mind.
Lokai is offline   Reply With Quote
Old 06-14-2007, 03:40 PM   #24 (permalink)
andrewd
Guest
 
Posts: n/a
Default ok got it down to 2 errors i cant figure out

Code:
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 579, column 38) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 614, column 36) No overload for method 'RunebookEntry' takes '4' arguments
this is line 579
Code:
        public static void TargetPoint3D_Callback(Mobile from, bool okay, MasterRunebook master, InternalRunebook book, int id)
        {
            if (okay)
            {
                if (book.Entries.Count < 16)
                {
                    book.Entries.Add(new RunebookEntry(from.Location, from.Map, "", null));
                    from.SendMessage("Enter the description for this location.");
                    from.Prompt = new DescriptionPrompt(master, book, id);
                }
                else
                {
                    from.SendLocalizedMessage(502401); // This runebook is full.
                    from.CloseGump(typeof(InternalRunebookGump));
                    from.SendGump(new InternalRunebookGump(from, book, master, id));
                }
            }
            else
            {
                from.CloseGump(typeof(InternalRunebookGump));
                from.SendGump(new InternalRunebookGump(from, book, master, id));
            }
        }
this is line 614
Code:
            public override void OnResponse(Mobile from, string text)
            {
                int index = m_Book.Entries.Count - 1;
                m_Book.Entries.RemoveAt(index);
                m_Book.Entries.Add(new RunebookEntry(from.Location, from.Map, text, null));
                from.SendMessage(text);
                from.CloseGump(typeof(InternalRunebookGump));
                from.SendGump(new InternalRunebookGump(from, m_Book, m_Master, m_Id));
  Reply With Quote
Old 06-14-2007, 04:04 PM   #25 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by andrewd View Post
Code:
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 579, column 38) No overload for method 'RunebookEntry' takes '4' arguments
 - Error: Scripts\custom\Master rune book\InternalRunebookGump.cs: CS1501: (line
 614, column 36) No overload for method 'RunebookEntry' takes '4' arguments
this is line 579
Code:
 
        public static void TargetPoint3D_Callback(Mobile from, bool okay, MasterRunebook master, InternalRunebook book, int id)
        {
            if (okay)
            {
                if (book.Entries.Count < 16)
                {
                   book.Entries.Add(new RunebookEntry(from.Location, from.Map, "", null));
                    from.SendMessage("Enter the description for this location.");
                    from.Prompt = new DescriptionPrompt(master, book, id);
                }
                else
                {
                    from.SendLocalizedMessage(502401); // This runebook is full.
                    from.CloseGump(typeof(InternalRunebookGump));
                    from.SendGump(new InternalRunebookGump(from, book, master, id));
                }
            }
            else
            {
                from.CloseGump(typeof(InternalRunebookGump));
                from.SendGump(new InternalRunebookGump(from, book, master, id));
            }
        }
this is line 614
Code:
            public override void OnResponse(Mobile from, string text)
            {
                int index = m_Book.Entries.Count - 1;
                m_Book.Entries.RemoveAt(index);
               m_Book.Entries.Add(new RunebookEntry(from.Location, from.Map, text, null));
                from.SendMessage(text);
                from.CloseGump(typeof(InternalRunebookGump));
                from.SendGump(new InternalRunebookGump(from, m_Book, m_Master, m_Id));

OK, so something like this for the first one:

Code:
                   book.Entries.Add(new RunebookEntry(from.Location, from.Map, "", null, 0)); //replace 0 with your color if you need to.
And like this for the 2nd:

Code:
               m_Book.Entries.Add(new RunebookEntry(from.Location, from.Map, text, null, 0)); //replace 0 with your color if you need to.
Lokai 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 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5