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!

Help me.

ft2085267

Sorceror
Help me.

Red for errors.
Help me find the code on how to write.
Thank you very much.

link:
Scripts\Customs\Mondain's Legacy\Engines\Peerless System\PeerlessKey.cs


Code:
Errors:
 + Customs / resource control / tuichushijian.cs:
    CS0117: Line 28: "Server.Item" does not include "PeerlessKey" definition
    CS0117: Line 30: "Server.Item" does not include "PeerlessKey" definition
    CS0117: Line 46: "Server.Item" does not include "PeerlessKey" definition

Code:
using System;
using System.Text;
using Server;
using Server.Commands;
using Server.Mobiles;
using Server.Items;

namespace Runuo.Dorris
{
    class LL
    {
    	
        public static void Initialize()
        {
            EventSink.Login += new LoginEventHandler(EventSink_Login);
            EventSink.Logout += new LogoutEventHandler(EventSink_Logout);
        }
        public static void EventSink_Logout(LogoutEventArgs e)
        {
		Mobile mob = e.Mobile;
		PlayerMobile pm = mob as PlayerMobile;

               	Item rope = pm.Backpack.FindItemByType( typeof( ziyuanxuke ), true );
				
		if ( rope != null )
		{

            [COLOR="red"]pm.ZYSYtime = rope.PeerlessKey.TimeLeft;[/COLOR]

            [COLOR="Red"]rope.PeerlessKey.Delete();[/COLOR]
		DateTime now = DateTime.Now;
		DateTime date = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);
		pm.TC = date;
		Console.WriteLine(pm.Name + "\t" + date.ToString());
	
		}

               	Item ropee = pm.Backpack.FindItemByType( typeof( ziyuanxukelq ), true );
				
		if ( ropee != null )
		{

		pm.ZYSYtime = 0;

[COLOR="red"]        rope.PeerlessKey.Delete();[/COLOR]

		DateTime now = DateTime.Now;
		DateTime date = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);
		pm.TC = date;
		Console.WriteLine(pm.Name + "\t" + date.ToString());
	
		}


	
        }


        public static void EventSink_Login(LoginEventArgs e)
        {
            if (e.Mobile.Player)
            {
		Mobile mob = e.Mobile;
		PlayerMobile pm = mob as PlayerMobile;
		
		if ( pm.ZYSYtime >= 1 );
		{
		ziyuanxuke ziyuanxuke = new ziyuanxuke();
		if ( !pm.AddToBackpack( ziyuanxuke ) )
		ziyuanxuke.Delete();
		ziyuanxuke.TimeLeft = pm.ZYSYtime;
		}
		if ( pm.ZYSYtime == 0 );
		{
		ziyuanxukelq ziyuanxukelq = new ziyuanxukelq();
		if ( !pm.AddToBackpack( ziyuanxukelq ) )
		ziyuanxukelq.Delete();
		}
            }
        }
    }
}
 

Phantom

Knight
You didn't actually post the script.

It sounds like the script is not being compiled before the script your trying to reference it in or at all.
 
Top