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 02-08-2009, 11:21 PM   #76 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
Default

Lokai, the optional InternalRunebookGump file (the one that requires inscription skill) seems to have been corrupted. Do you happen to have another copy?

Thanks,
GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-24-2009, 09:47 PM   #77 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
Default

Lokai, I fixed my issues with InternalRunebookGump and found and incorporated your RC2 changes as well. All of that seems to be working well.

There seems to be a high failure for extraction, even with 120 Inscription, and I was wondering if the chance could somehow be improved the closer one gets to 120, with no failure at 120+?

This seems to be the relevant code from InternalRuneBookGump.ps

Code:
   public static void RemoveRunebook_Callback(Mobile from, bool okay, MasterRunebook master, InternalRunebook book, int id)
        {
            if (okay)
            {
                Container pack = from.Backpack;
                if (pack == null || pack.Deleted)
                {
                    from.SendMessage("Unable to find a backpack in which to place a new Runebook.");
                    return;
                }
                int count = book.Entries.Count;
                if (count > 0)
                {
                    if (from.AccessLevel < AccessLevel.GameMaster)
                    {
                        if (from.Backpack.ConsumeTotal(new Type[] { typeof(BlankScroll), typeof(RecallScroll), typeof(GateTravelScroll) },
                            new int[] { 10, 1, 1 }) >= 0)
                        {
                            from.SendMessage("You do not have the materials needed to create the runebook.");
                            return;
                        }
                        if (from.CheckSkill(SkillName.Inscribe, 100, 120))
                        {
                            from.SendMessage("You failed to extract the book. Some materials were lost.");
                            return;
                        }
                    }
                    
                    Runebook runebook = new Runebook(book.MaxCharges);
                    for (int x = 0; x < count; x++)
                    {
                        RunebookEntry rbe = new RunebookEntry(
                            ((RunebookEntry)book.Entries[0]).Location, ((RunebookEntry)book.Entries[0]).Map,
                            ((RunebookEntry)book.Entries[0]).Description, ((RunebookEntry)book.Entries[0]).House);
                        runebook.Entries.Add(rbe);
                        book.Entries.RemoveAt(0);
                    }
                    runebook.CurCharges = book.CurCharges;
                    runebook.Name = book.Name;
                    book.Name = string.Format("Book #{0}", ((int)(id + 1)).ToString());
                    pack.DropItem(runebook);
                    from.SendMessage("Runebook extracted. Some materials were used.");
                }
                else
                {
                    from.SendMessage("You cannot remove an empty Runebook.");
                }
                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));
            }
        }
with the line in red where the check is now made.

Thanks!
GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-25-2009, 12:48 AM   #78 (permalink)
Forum Novice
 
Join Date: Jan 2009
Posts: 238
Default

going to try this tomorrow.

so, can you create player access books (normal size) out of the master?
PBPBPB is offline   Reply With Quote
Old 08-25-2009, 08:13 AM   #79 (permalink)
Forum Novice
 
Join Date: Jan 2009
Posts: 238
Default

loaded the script and got

line 103: cannot implicitly convert type 'system.collections.generic.list(server.items.rune bookentry)' to 'system.collections.arraylist'


this is the internalrunebookgump.cs
line 103 that errored.

code:

Code:
 // List of entries
            ArrayList entries = m_Book.Entries;
PBPBPB is offline   Reply With Quote
Old 08-25-2009, 02:00 PM   #80 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
Default

PBPBPB, are you using RC2 or better? If so, see Lokai's updated post :

[RunUO 2.0 RC2] *Updated* Master Runebook

This thread and files are for the RC1 version.
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-25-2009, 02:48 PM   #81 (permalink)
Forum Novice
 
Join Date: Jan 2009
Posts: 238
Default

ah, i thought it said updated for RC2... misread.
PBPBPB is offline   Reply With Quote
Old 08-25-2009, 04:54 PM   #82 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
Default

No worries, those files in his other post should get ya going.
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-29-2009, 08:20 PM   #83 (permalink)
Forum Novice
 
prplbeast's Avatar
 
Join Date: Oct 2006
Posts: 285
Send a message via Yahoo to prplbeast
Default

Does this still add all the runebooks to the internal maps?
prplbeast is offline   Reply With Quote
Old 08-30-2009, 04:44 PM   #84 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
Default

Yes, it does. But only for the books that are actually in use. If you delete a book, it does seem to now remove it from the internal map (assuming you made the script changes suggested on pages 3 and 4 of this thread).

GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey 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