RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

TMap Rune Library

milva

Sorceror
Thanks for the info will try it again- A Lil N had posted this to some one who had problems getting it to work:
Make sure you have RC0 and make sure your TMaps.txt is in the Data folder. If you changed the path, make sure the TMaps.txt is in the correct path, and make sure the path is put in correct.
So just thought maybe I was missing something :p
 

milva

Sorceror
Ok now I'm lost with this:
Added the RuneLibrary and RuneLibraryTrammel in Custom Folder- Added the TMaps text in [ TMaps.txt into the Data folder. ( C:\RunUO 1.0\Data ) Folder]
Then In game used command : [RuneLibraryTMapsTrammel
And still is not working, am I missing something here yet? Sounds so easy to do. Any info would be much appreciated, thanks!

Also when going threw these with [go
This first location is in the black
the others all water locations
51 NWSWb7 975 1 992 0
52 NWSWb8 990 1 993 0
53 SWNWa3 451 2 053 0
54 SWNWa2 479 2 043 0
55 SWNWa1 493 2 027 0
56 SWNWa4 469 2 087 0
57 SWNWa5 467 2 100 0
 
Just fixed the New Locations on the Treasure map locations

Done 3-24-2006 - Just Updated all the Treasure Map Locations, they should all work perfectly.. if you find any wrong please let me know what # it was so i can get it fixed asap.
 
how to load your TMap Books

Ok heres what you do.
Delete all the Previous TMAP file you downloaded.
ReDownload the new ones as i just updated the t-maps locations.

Drop the Following files in this directory.
C:\RunUO 1.0\Scripts\Custom-RuneLibrary-TMaps
RuneLibraryTMapsFelucca.cs
RuneLibraryTMapsTrammel.cs


Drop the Following files into this directory.
c:\RunUO 1.0\Data
RuneLibraryTMaps.txt

reboot your server and relog in.
go to trammel and type :
[RuneLibraryTMapsTrammel
it will add the treasure hunting runebooks :)
have a blast!
 
Having a Problem with this trying to make it work in RunUO v2.0

this will not run in RunUO v2.0
it has an error with
Errors:
+ Custom-RuneLibrary-TMaps/RuneLibrary.cs:
CS0246: Line 27: The type or namespace name 'CommandEventArgs' could not be found <are you missing a using directive or an assembly reference?>
+ Custom-RuneLibrary-TMaps/RuneLibraryTrammel.cs:
CS0246: Line 27: The type or namespace name 'CommandEventArgs' could not be found <are you missing a using directive or an assembly reference?>
 

Nozgo1

Sorceror
very cool

A_Li_N, Partystuffcloseouts, very cool idea, just d/l t-maps and dungeons.
Thanks tons for all your effort!
 

MadMadDragon

Sorceror
Hi I hope you can help me. I am trying to get the 3-24-2006 Library scripts working. Nothing has been changed in the scripts. I am trying to set them up on servuo.
I put every thing in as it says, but it wont work it gives these two errors.
Code:
Errors:
+ Custom Systems/TmapLibrary/RuneLibraryTMapsFelucca.cs:
    CS0246: Line 36: The type or namespace name `CommandEventArgs' could not be found. Are you missing `Server.Commands' or `System.Web.UI.WebControls' using directive?
+ Custom Systems/TmapLibrary/RuneLibraryTMapsTrammel.cs:
    CS0246: Line 36: The type or namespace name `CommandEventArgs' could not be found. Are you missing `Server.Commands' or `System.Web.UI.WebControls' using directive?
Scripts: One or more scripts failed to compile or no script files were found.


Here is a copy of the Trammel script:
Code:
#region AuthorHeader
// 
//    Runebook Library Changed by Partystuffcloseouts/Soultaker
//  Treasure Hunting Ver. 1.0
// 
//  Based on Runebook T-Hunting Files Original Ideas and code by // A_Li_N // Senior Member
//  Changed Names on Books Only and Name of Files otherwise EXACTLY the Same
// 
#endregion AuthorHeader
using System;
using System.IO;
using System.Collections;
using Server;
using Server.Items;
 
namespace Server.Items
{
    public class RuneLibraryTMapsTrammel : Item
    {
        private static string pathlist = "Data/RuneLibraryTMaps.txt";
        private static string entry = "# Name X Y Z";
        private static string[] mapNums;
        private static string[] mapNames;
        private static string[] xs;
        private static string[] ys;
        private static string[] zs;
        private static int size = 0;
 
        private static ArrayList library;
 
      public static void Initialize()
      {
        Server.Commands.Register( "RuneLibraryTMapsTrammel", AccessLevel.Administrator, new CommandEventHandler( RuneLibraryTMapsTrammel_OnCommand ) );
      }
 
        public static void RuneLibraryTMapsTrammel_OnCommand( CommandEventArgs args )
        {
            Mobile m = args.Mobile;
        RuneLibraryTMapsTrammel rl = new RuneLibraryTMapsTrammel(m);
        }
 
        private static void readLine()
        {
            if( File.Exists( pathlist ) )
            {
                size = 0;
                string nums = "";
                string name = "";
                string x = "";
                string y = "";
                string z = "";
 
                StreamReader f = new StreamReader( pathlist );
                while( (entry = f.ReadLine()) != null )
                {
                    string[] parts = null;
                    parts = entry.Split();
 
                    nums += parts[0]+" ";
                    name += parts[1]+" ";
                    x += parts[2]+" ";
                    y += parts[3]+" ";
                    z += parts[4]+" ";
                    size++;
                }
                f.Close();
 
                mapNums = nums.Split();
                mapNames = name.Split();
                xs = x.Split();
                ys = y.Split();
                zs = z.Split();
            }
        }
 
        [Constructable]
        public RuneLibraryTMapsTrammel (Mobile from)
        {
            library = new ArrayList();
 
            readLine();
            Runebook rb = new Runebook(0);
            int nameStart = 1;
            int nameEnd = 1;
            for( int i=0; i<size; i++ )
            {
                if( rb.Entries.Count == 16 )
                {
                    rb.Name = "Treasure Hunting Maps Trammel " + nameStart + " - " + (nameEnd-1);
                    library.Add(rb);
                    rb = new Runebook(0);
                    nameStart = nameEnd;
                }
                int x = int.Parse(xs[i]);
                int y = int.Parse(ys[i]);
                int z = int.Parse(zs[i]);
                Point3D targ = new Point3D(x, y, z);
                RecallRune rr = new RecallRune();
                rr.Target = targ;
                rr.TargetMap = Map.Trammel;
                rr.Description = mapNums[i] + " " + mapNames[i];
                rr.House = null;
                rr.Marked = true;
                rb.OnDragDrop(from, rr );
                nameEnd++;
            }
            rb.Name = "Treasure Hunting Maps Trammel " + nameStart + " - " + (nameEnd-1);
            library.Add(rb);
 
            int height = 6;
            int offx;
            int offy;
            int offz;
            for(int p=0; p<library.Count; p++)
            {
                Runebook librarybook = (Runebook)library[p];
                librarybook.Movable = false;
                librarybook.MaxCharges = 12;
                librarybook.CurCharges = 12;               
                if(p < 4)
                {
                    offx = from.Location.X-1;
                    offy = from.Location.Y-1;
                    offz = from.Location.Z+height;
                }
                else if(p >= 4 && p < 5)
                {
                    offx = from.Location.X;
                    offy = from.Location.Y-1;
                    offz = from.Location.Z+height+2;
                    height += 2;
                }
                else if(p >= 5 && p < 9)
                {
                    offx = from.Location.X;
                    offy = from.Location.Y-1;
                    offz = from.Location.Z+height;
                }
                else
                {
                    offx = from.Location.X+1;
                    offy = from.Location.Y-1;
                    offz = from.Location.Z+height;
                }
                Point3D loc = new Point3D(offx, offy, offz);
                librarybook.MoveToWorld(loc, from.Map);
                if( height == 0 )
                    height = 8;
                height -= 2;
            }
        }
 
        public RuneLibraryTMapsTrammel( Serial serial ) : base( serial )
        {
        }
 
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
 
            writer.Write( (int) 0 ); // version
        }
 
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
 
            int version = reader.ReadInt();
        }
    }
}
I dont know what to do please help. Thank you
 
Top