IBKZ
Initiate
Hello all, and thank you for all the help from your posts so far.
(side question, is runuo.com down for good?-a lot of my google searches seems like the answer is already there, but cannot connect to read whole solution).
I'm trying to disable taming on my server.
The first part of the animaltaming.cs file is as follows:
It looks to me like "private static bool m_DisableMessage;" if there is a message there then
"if ( !m_DisableMessage )" won't work- disabling taming.
How to I put a message there?
Thank you!
(side question, is runuo.com down for good?-a lot of my google searches seems like the answer is already there, but cannot connect to read whole solution).
I'm trying to disable taming on my server.
The first part of the animaltaming.cs file is as follows:
Code:
using System;
using System.Collections;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
namespace Server.SkillHandlers
{
public class AnimalTaming
{
private static Hashtable m_BeingTamed = new Hashtable();
public static void Initialize()
{
SkillInfo.Table[(int)SkillName.AnimalTaming].Callback = new SkillUseCallback( OnUse );
}
private static bool m_DisableMessage;
public static bool DisableMessage
{
get{ return m_DisableMessage; }
set{ m_DisableMessage = value; }
}
public static TimeSpan OnUse( Mobile m )
{
m.RevealingAction();
m.Target = new InternalTarget();
m.RevealingAction();
if ( !m_DisableMessage )
m.SendLocalizedMessage( 502789 ); // Tame which animal?
return TimeSpan.FromHours( 6.0 );
}
It looks to me like "private static bool m_DisableMessage;" if there is a message there then
"if ( !m_DisableMessage )" won't work- disabling taming.
How to I put a message there?
Thank you!
Last edited by a moderator: