|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#76 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
|
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 |
|
|
|
|
|
#77 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
|
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));
}
}
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 |
|
|
|
|
|
#79 (permalink) |
|
Forum Novice
Join Date: Jan 2009
Posts: 238
|
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;
|
|
|
|
|
|
#80 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
|
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 |
|
|
|
|
|
#82 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
|
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 |
|
|
|
|
|
#84 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Location: Deep in the forests of Whispering Pines
Posts: 257
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|