Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-16-2005, 10:55 AM   #76 (permalink)
Forum Novice
 
Join Date: Feb 2003
Age: 38
Posts: 232
Default

Quote:
Originally Posted by sirbum69
ok after further testing of this i have found out what is wrong. if the player pulls the letter from the mail box to there backpack with out reading it first then it will show up blank.

if they dbl click it while its in the mailbox first then it will show the message like it should and from then on it will stay in there backpack and can be read.

could someone tell me how this could be fixed.
I am having same problem on my test system. However, my letters are blank if read in the mail box and in the backpack. I followed the correct send procedures as well... Maybe an update issue with 1.0?
Shard Admin Adam is offline   Reply With Quote
Old 03-16-2005, 11:07 AM   #77 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 30
Posts: 3,531
Default

Quote:
Originally Posted by Shard Admin Adam
I am having same problem on my test system. However, my letters are blank if read in the mail box and in the backpack. I followed the correct send procedures as well... Maybe an update issue with 1.0?
Not a new issue, I had it with 1.0, and still have it with 1.0.0 I just took the letters out and left package sending in. Players can send books instead of letters if needed.
stormwolff is offline   Reply With Quote
Old 03-17-2005, 04:09 PM   #78 (permalink)
Newbie
 
Join Date: Mar 2005
Location: Wisconsin
Age: 32
Posts: 67
Send a message via ICQ to corbin77x2 Send a message via MSN to corbin77x2
Default

Is this code supported in 1.0.0? because that dates look a little old for the newer version of runuo, and i didn't see any recent updates. maybe i missed something.
corbin77x2 is offline   Reply With Quote
Old 03-17-2005, 04:25 PM   #79 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 30
Posts: 3,531
Default

Quote:
Originally Posted by corbin77x2
Is this code supported in 1.0.0? because that dates look a little old for the newer version of runuo, and i didn't see any recent updates. maybe i missed something.
Havnt seen anyone supporting it. It is an older script. It partially worked under 1.0 and still works just as well as that in 1.0.0
stormwolff is offline   Reply With Quote
Old 01-28-2006, 02:19 AM   #80 (permalink)
Lurker
 
Join Date: Oct 2004
Age: 56
Posts: 7
Talking Yep 2 posts

Quote:
Originally Posted by raisor
Advertising is against the rules except in designated forums, hope you enjoyed your 2 posts.
make that 6 posts?
creedgaming is offline   Reply With Quote
Old 01-29-2006, 01:40 AM   #81 (permalink)
Lurker
 
Join Date: Jan 2006
Location: Marietta, GA
Posts: 22
Send a message via AIM to Umahduh Send a message via Yahoo to Umahduh Send a message via Skype™ to Umahduh
Exclamation having problems with crashing

ok i got everything in all the files but my server keeps crashing when i try to send a letter and i know this cuase i am the only person on my shard right now just started building it

crash log
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: 1/29/2006 12:34:23 AM
Mobiles: 2305
Items: 85162
Clients:
- Count: 2
+ 192.168.1.50: (account = Umahduh) (mobile = 0x34 'Umahduh')
+ 192.168.1.56: (account = test) (mobile = 0x33 'tester')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Gumps.PackageTarget.OnTarget(Mobile from, Object o)
at Server.Targeting.Target.Invoke(Mobile from, Object targeted)
at Server.Network.PacketHandlers.TargetResponse(NetSt ate state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)


what could be Callusing this ??? me lost ???
Umahduh is offline   Reply With Quote
Old 01-30-2006, 11:25 AM   #82 (permalink)
Forum Novice
 
Join Date: May 2005
Location: Maine
Posts: 783
Default

Quote:
Originally Posted by Umahduh
ok i got everything in all the files but my server keeps crashing when i try to send a letter and i know this cuase i am the only person on my shard right now just started building it
You're probably going to have a hard time getting support for this script, since it's in the archives. . . .I would search the current Custom Scripts forum for a suitable replacement.

Otherwise, you should probably start your server with the /debug switch, which should give you line numbers of the script causing the error.

Also, the last (useful or close to it) post in this thread was from almost a year ago. . .which means it's not used much, that's why I suggested looking elsewhere for your script.
__________________
If I am ever wrong, please tell me!
Script Submission Forum (Search this!)
Useful File Info
If you want your script to save things, READ THIS!
Make sure to also read the RunUO docs folder!

I have submitted 2 script(s) to the community.
Arvoreen is offline   Reply With Quote
Old 03-29-2006, 10:45 PM   #83 (permalink)
Newbie
 
orionmse's Avatar
 
Join Date: Jan 2006
Location: Commiskey, Indiana
Age: 21
Posts: 43
Send a message via MSN to orionmse
Default problem

i'm sorry for reviving this thing, no offence but it is kinda dead, but i had a problem with the post office doors....they don't open...
__________________
Building a custom rp shard, pm me if your interested in joining up sometime in the future, when I complete it.

(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
orionmse is offline   Reply With Quote
Old 05-21-2006, 07:59 PM   #84 (permalink)
Forum Novice
 
marvin3634's Avatar
 
Join Date: Feb 2006
Location: oklahoma
Age: 30
Posts: 110
Send a message via ICQ to marvin3634 Send a message via Yahoo to marvin3634
Default

Ok for addons doors never work on them so I suggest that you leave the line for the doors out and the gm can place doors .. Btw Very nice .
__________________
If at first you don't succede , Destroy all the evidence that you tried. ;)
marvin3634 is offline   Reply With Quote
Old 01-16-2008, 12:14 PM   #85 (permalink)
Lurker
 
Join Date: Jan 2008
Posts: 8
Default

i just tried this script and its a awsome script by they way just awsome
but i had everything working except the postal worker part i had to take that file out the other items worked but he doesnt any way of knowing why im using 2.0
jamesreg is offline   Reply With Quote
Old 06-17-2009, 11:40 PM   #86 (permalink)
Forum Novice
 
TattooedLioness's Avatar
 
Join Date: Mar 2007
Location: ABQ,NM
Age: 32
Posts: 124
Send a message via MSN to TattooedLioness
Default

Im using Rc2 and it all works great except all letters go thro empty so i change the letter to a base book with the letter id BUT now my isssues is after having it in not even for 24 hours a player is sending dirty messages and no way of knowing who *
__________________
TattooedLioness is offline   Reply With Quote
Old 11-14-2009, 07:55 PM   #87 (permalink)
Newbie
 
Join Date: Oct 2009
Location: Florida, USA
Age: 39
Posts: 48
Default

I know this is an old thread, but I wasn't sure where else to post about this, and didnt want anyone to think im taking credit for this script.
Anyway, here's the problem--

I get this warning when ever I get an error and I believe it could be the reason for the letters coming out blank.

Warnings:
+ Custom/PostOffice.2.5/PostOffice/PostOfficeGump.cs:
CS0219: Line 88: The variable 'done' is assigned but its value is never used

Here is the script, I've marked the line in red that gets the warning. Can anyone please help?

Code:
using System;
using System.Reflection;
using System.Collections;
using Server;
using Server.Items;
using Server.Network;
using Server.Mobiles;
using Server.Targeting;
using Server.Accounting;

namespace Server.Gumps
{
	public class PostOfficeGump : Gump
	{
		private Mobile m_from;
		string m_acct, m_to;
		
		public PostOfficeGump( Mobile from, string to, string a ) : base( 25, 25)
		{
			from.CloseGump( typeof( PostOfficeGump ) );
			
			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;
			
			AddPage(0);
			
			AddBackground(27, 22, 400, 400, 3500);
			
			AddImage(-20, -1, 10440, 0);
			AddImage(316, 53, 5536, 0);
			AddLabel(148, 84, 0, @".::Post Office::.");
			AddImage(95, 80, 92, 0);
			AddImage(147, 80, 93, 0);
			AddImage(154, 80, 93, 0);
			AddImage(265, 80, 94, 0);
			AddImage(110, 155, 1418, 0);
			AddTextEntry( 93, 340, 110, 20, 1149, 0, to );
			AddButton(60, 260, 4030, 4031, 1, GumpButtonType.Reply, 0);
			AddButton(60, 290, 4018, 4019, 0, GumpButtonType.Reply, 0);
			AddLabel(100, 260, 0, @"Send Item");
			AddLabel(100, 290, 0, @"Close");
			AddLabel(89, 126, 0, "To Send an Item is 50 Gold Pieces.");
			AddImage(41, 336, 52, 0);
			AddButton( 56, 351, 2117, 2118, 2, GumpButtonType.Reply, 0);
			AddLabel(137, 155, 0, @"Thanks for using,");
			AddLabel(127, 183, 0, @"Raisor's Post Office.");
			AddLabel(44, 315, 0, "Type \"recievers\" name here");

			m_acct = a;
			m_to = to;
		}
		
		public override void OnResponse( NetState state, RelayInfo info ) //Function for GumpButtonType.Reply Buttons 
		{ 
			m_from = state.Mobile; 

			if ( info.ButtonID == 1 ) 
			{ 
				if ( m_to == "" )
					m_from.SendMessage("You did not specify a person to send to.");
				else
				{
					m_from.SendMessage("Choose the Item to send to {0}", m_to);
					m_from.Target = new PackageTarget( m_from, m_to, m_acct );
				}
			}

			if ( info.ButtonID == 2 )
			{
				m_from.SendGump( new SendToGump( m_from ) );
			}
		}
		
		private class PackageTarget : Target
		{
			private string m_to, m_acct;
			
			public PackageTarget( Mobile m, string n, string a ) : base( -1, true, TargetFlags.None )
			{
				m_to = n;
				m_acct = a;
			}
			
			protected override void OnTarget( Mobile from, object o )
			{
				bool done = false;
				bool sent = false;
				Container bank = from.BankBox;
				MailBox mailbox;
				Account a;
				Gold g = new Gold();
				g.Amount = 50;
				
				if ( o is Item )
				{
					Item i_package = (Item)o;
					
					if ( !i_package.IsChildOf( from.Backpack ) && !i_package.IsChildOf( from.BankBox ) )
					{
						from.SendMessage( "This must be in your backpack or bank to send it." );
						return;
					}
					else
					{
						if ( o is Container ) 
						{ 
							from.SendMessage( "You can't send Container's" );
							return;
						}
						
						if ( !bank.ConsumeTotal( typeof( Gold ), 50 ))
						{
							from.SendMessage("You must have 50 gold in your bank to send items");
							return;
						}
						
                        ArrayList mobs = new ArrayList( World.Mobiles.Values );
										
						foreach ( Mobile m in mobs )
						{
							a = m.Account as Account;
							mailbox = m.BankBox.FindItemByType( typeof( MailBox ) ) as MailBox;

							if ( m.Player && m != null && m.Name == m_to && a.Username == m_acct && i_package != null )
							{
								mailbox.DropItem( i_package );
								mailbox.NewMail = "true";
                                if ( m.NetState != null ) 
                                    m.SendGump(new NewMailGump(m, mailbox));
                                sent = true;
                			}
						}
                        done = true;
                    }
                    if (sent)
                    {
                        from.SendMessage("Item sent.");
                        g.Delete();
                    }
                    else
                    {
                        from.SendMessage("Item not sent");
                        from.BankBox.DropItem(g);
                    }
                }
				else
					from.SendMessage("You can only send Items");
			}
		}
	}
}
kenferguson is offline   Reply With Quote
Old 11-28-2009, 09:07 PM   #88 (permalink)
Newbie
 
Join Date: Oct 2009
Location: Florida, USA
Age: 39
Posts: 48
Default

Okay figured out why the letters go through blank.

At the top of the letter gump where you enter who it is to, you have to type the exact name and it is case sensitive.

Just in case anyone would like to know.
kenferguson 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