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

A_Li_N

Knight
TMap Rune Library

I decided to whip up this little script to make the rune library. It's based off the locations/names/numbers of UOAM 8+, so it should be accurate. This is my first submission, so please comment. It will read a txt file, making a rune for each entry, then it will make runebooks to fill. It will then move the books and stack them 1 square north of you, in order.

Directions :
Place RuneLibrary.cs into your customs folder (or wherever in the scripts folder)
Place TMaps.txt into the Data folder.

Restart Server, then type [RuneLibrary
Enjoy!

Any suggestions/comments are greatly appreciated, and I will probably be making it more versatile later, to encorperate other lists, like hunting, taming etc.

PS, if you want to play with the text, the way the script reads is :
# Name X Y Z
# and Name get put together into one for the name of the rune, X Y Z ... self explanitory. Needs ONE space in between each


I have changed the RuneLibrary.cs to be for Felucca, and have uploaded a new cs for Trammel.

I have upped the latest tweak to all three files. If you were getting crashes, it was due to there being a blank line in the TMaps.txt. I've changed some of the code in each cs file, but it should work fine with the old ones as well.
 

Attachments

  • TMaps.txt
    4.8 KB · Views: 352
  • RuneLibrary.cs
    3.6 KB · Views: 343
  • RuneLibraryTrammel.cs
    3.6 KB · Views: 296

Dian

Sorceror
Dunno how I missed this submission, but what a cool idea, Nice work :)

Have you done any further work to the script, or is this still a current version?

Thanks for sharing
 

A_Li_N

Knight
I believe they are all trammel, but I think that tram and fel are same locations, so you could probably just copy the script and change the map to fel. And yes, that is final version, although I did find that having the location go directly to the chest doesn't work, since it is 'blocked' by the chest. I have updated the txt file with coords that are x+1, so they should work. If you find a blocked one, just change that entry in the txt file. (and maybe post about it here :) )
 
C

chrisjones

Guest
Ya East Enough

I hint maybe for the next time be very easy for ya to dupe files and set fel in scripts and send pack together....But Looks Great ty
 

Gandy897

Wanderer
lol I wish i had this before i made a set manually .. but at least its good if im feeling generous to be able to whip a set up for a player without much fuss.. Great script and great idea :)
 

carrbrooke

Wanderer
When i enter the command [RuneLibrary nothing happends i have changed the path to the to the TMaps.txt file in both the scripts and still nothing happends can any 1 help
 

A_Li_N

Knight
carrbrooke said:
When i enter the command [RuneLibrary nothing happends i have changed the path to the to the TMaps.txt file in both the scripts and still nothing happends can any 1 help

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.
 
Runebook Script Great for T-hunting, Revising Slightly for Dungeons

Hiya, i was trying to revise your script slightly for Dungeons.
but i run into an error. my scripting abilities are not so good :) taking apart someone elses script and revising.. a litttle better :)
p.s. i will add all the rest in asap. as soon as i can get it going.

Server Crash Report
===================

RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.2032
Time: 3/10/2006 6:16:24 PM
Mobiles: 3963
Items: 99916
Clients:
- Count: 1
+ 192.168.1.103: (account = soultaker-admin) (mobile = 0x932 'Soultaker')

Exception:
System.FormatException: Input string was not in a correct format.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Server.Items.RuneLibraryDungeonsTrammel..ctor(Mobile from)
at Server.Items.RuneLibraryDungeonsTrammel.RuneLibraryDungeonsTrammel_OnCommand(CommandEventArgs args)
at Server.Commands.Handle(Mobile from, String text)
at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue)
at Server.Network.PacketHandlers.UnicodeSpeech(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)

the locations i was adding are below: from the DungeonMaps File instead of TMaps file.

1 Brit Psg Brit 1510 1639 20
2 Brit Psg LL 6077 3333 1
3 Covetous 2502 920 0
4 Deceit 4114 432 5
5 Despise 1298 1078 0
6 Destard 1179 2636 0
7 Fire Dungeon 5767 2905 13
8 Hythloth 4724 3821 0
9 Ice Dungeon Ent 1997 79 7
10 Ice Dungeon LL 5209 2319 32
11 Shame 516 1560 0
12 Terathan Keep 5497 3218 1

(((( 13 Terathan Keep E 5454 3136 -60 )))) I removed this line i guess it is because it is not trammel

14 Psg Trinsic 1627 3321 0
15 Psg City Dead 5139 3663 31
16 Psg Delucia 5154 4060 37
17 Wrong 2047 235 13
Thanks For any help you can give me !!!
Soultaker/Partystuffcloseouts
 

A_Li_N

Knight
7 Fire Dungeon 5767 2905 13
You can't have spaces in the names. I made this long, long ago and didn't know what I was doing.
 
Dungeon Rune Library

Cool, that was seriously dumb of me... all fixed and runs great!! i'll get the rest of the locations for dungeons in there asap. and upload it as soon as possible. if thats cool!:)
Thanks
Partystuffcloseouts
 
RunLibrary Dungeons

This is A_Li_N Senior Member Scripts,
im just changing to dungeons
Could somebody point me in the right directon to set up the CurCharges & MaxCharges into the script? My scripting skills are low :)
Thanks again for the help earlier A_Li_N



using System;
using System.IO;
using System.Collections;
using Server;
using Server.Items;

namespace Server.Items
{
public class RuneLibraryDungeonsTrammel : Item
{
private static string pathlist = "Data/DungeonMaps.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( "RuneLibraryDungeonsTrammel", AccessLevel.Administrator, new CommandEventHandler( RuneLibraryDungeonsTrammel_OnCommand ) );
}

public static void RuneLibraryDungeonsTrammel_OnCommand( CommandEventArgs args )
{
Mobile m = args.Mobile;
RuneLibraryDungeonsTrammel rl = new RuneLibraryDungeonsTrammel(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 RuneLibraryDungeonsTrammel (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 = "Maps " + nameStart + " - " + (nameEnd-1);
library.Add(rb);
rb = new Runebook(0);
nameStart = nameEnd;
}
int x = int.Parse(xs);
int y = int.Parse(ys);
int z = int.Parse(zs);
Point3D targ = new Point3D(x, y, z);
RecallRune rr = new RecallRune();
rr.Target = targ;
rr.TargetMap = Map.Trammel;
rr.Description = mapNums + " " + mapNames;
rr.House = null;
rr.Marked = true;
rb.OnDragDrop(from, rr );
nameEnd++;
}
rb.Name = "Maps " + 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;
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 RuneLibraryDungeonsTrammel( 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();
}
}
}
 
Runebook Prob all fixed :)

Found it
librarybook.MaxCharges = 12;
librarybook.CurCharges = 12;
enter it right after :
librarybook.Movable = false;
I'll fix the dungeons up and post them asap.
Just me being dumb again and talking to myself hehe.
 
RuneBook Library for Dungeons

Credit for Creating the Files and doing the Thinking & Hard Work is: // A_Li_N // Senior Member
Just Adding New Styles of Librarys Using his Scripts in the files // Partystuffcloseouts // Junior Member

Directions on How to Use the RuneLibrary Files:

1.) Place RuneLibraryDungeonsFelucca.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
1.) Place RuneLibraryDungeonsTrammel.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
2.) Place RuneLibraryDungeonMaps.txt into the Data folder. ( C:\RunUO 1.0\Data ) Folder
3.) Restart Server

Type [RuneLibraryDungeonsFelucca = to add Felucca Dungeon Runebooks.
Type [RuneLibraryDungeonsTrammel = to add Trammel Dungeon Runebooks.

Read the .txt File for More instructions.:)
 

Attachments

  • Instructions-RuneLibrary-Dungeons.txt
    1.4 KB · Views: 33
  • RuneLibraryDungeonMaps.txt
    464 bytes · Views: 33
  • RuneLibraryDungeonsFelucca.cs
    4.1 KB · Views: 28
  • RuneLibraryDungeonsTrammel.cs
    4 KB · Views: 30
RuneLibrary for GraveYards

Credit for Creating the Files and doing the Thinking & Hard Work is: // A_Li_N // Senior Member
Just Adding New Styles of Librarys Using his Scripts in the files // Partystuffcloseouts // Junior Member

Directions on How to Use the RuneLibrary Files:

1.) Place RuneLibraryGraveYardsFelucca.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
1.) Place RuneLibraryGraveYardsTrammel.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
2.) Place RuneLibraryGraveYardMaps.txt into the Data folder. ( C:\RunUO 1.0\Data ) Folder
3.) Restart Server

Type [RuneLibraryGraveYardsFelucca = to add Felucca GraveYards Runebooks.
Type [RuneLibraryGraveYardsTrammel = to add Trammel GraveYards Runebooks.

Read the .txt File for More instructions.:)
 

Attachments

  • Instructions-RuneLibrary-GraveYards.txt
    1.4 KB · Views: 21
  • RuneLibraryGraveYardMaps.txt
    203 bytes · Views: 23
  • RuneLibraryGraveYardsFelucca.cs
    4.1 KB · Views: 24
  • RuneLibraryGraveYardsTrammel.cs
    4.1 KB · Views: 22
RuneLibrary for Treasure Maps Locations

P.S. I Only changed the Names on the Books & also the File Names to tell em apart Easier.. Otherwise it is EXACTLY the Same as what he had them before!
Credit for Creating the Files and doing the Thinking & Hard Work is: // A_Li_N // Senior Member
Just Adding New Styles of Librarys Using his Scripts in the files // Partystuffcloseouts // Junior Member

Directions on How to Use the RuneLibrary Files:

1.) Place RuneLibraryTMapsFelucca.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
1.) Place RuneLibraryTMapsTrammel.cs into your customs Scripts folder ( C:\RunUO 1.0\Scripts ) Folder
2.) Place RuneLibraryTMaps.txt into the Data folder. ( C:\RunUO 1.0\Data ) Folder
3.) Restart Server

Type [RuneLibraryTMapsFelucca = will add the Felucca Treasure Hunting Location Runebooks.
Type [RuneLibraryTMapsTrammel = will add the Trammel Treasure Hunting Location Runebooks.

Read the .txt File for More instructions.

3-24-2006 - Updated RuneLibraryTMaps.txt File. with the correct Treasure Locations.
 

Attachments

  • Instructions-RuneLibrary-TMaps.txt
    1.4 KB · Views: 34
  • RuneLibraryTMapsFelucca.cs
    4.1 KB · Views: 32
  • RuneLibraryTMapsTrammel.cs
    4.1 KB · Views: 36
  • RuneLibraryTMaps.txt
    4.8 KB · Views: 39

milva

Sorceror
Would like to add this to shard- excuse my not knowing- what is RCO?
As with this added there are no errors but nothing happens- have not changed scripts at all. Thanks!
 
Question on RCO

Not sure what you mean on RCO
but for the files just make sure you put them into the Appropriate Directories above then when your On your Administrator Character type:
[RuneLibraryTMapsTrammel
and it will drop books all over the ground.
that is if you put the tmaps in your directories. use the appropriate command with each.
Hope that fixes your question
 
Top