Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 07-28-2008, 11:41 AM   #501 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 29
Posts: 910
Send a message via Yahoo to greywolf79
Default

People should be aware that there is a change needed to get it to work on RC2 though... Mine worked fine on RC1, but I had to go into RUOVersion.cs and change the settings in there that said rc1 to say rc2. But it is great, and I am glad to be using it in both my rc1 and rc2 shards now.


GreyWolf.
greywolf79 is offline   Reply With Quote
Old 08-01-2008, 11:33 PM   #502 (permalink)
Lurker
 
Join Date: Jan 2007
Age: 23
Posts: 11
Default not working?

I am running and RCI1 server and I have downloaded your beta 9 and your patch, i put the files into the customs folder in the scripts folder, did a server reboot, logged in and nothing, i tried using the various commands, but to no avail. I get no errors or anything, just does not want to work, this is my first experience with knives and there are no there downloads or versions of it I have except for the beta 9 and the patch1 ,please help
Marlboro_Man is offline   Reply With Quote
Old 08-04-2008, 11:29 AM   #503 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 29
Posts: 910
Send a message via Yahoo to greywolf79
Default

MarlboroMan... Check one of my threads, look for a thread marked Scripts by GreyWolf79 (it is not there for me to claim credit for, I have marked on the post and in the download some items are not mine but altered by me to run). In the zip is a copy of the chat system (just with the change so it works on rc2 instead). To get it to run on RC1 all that should need to be done is go into RUOVersion and change all the rc2 into rc1 (I think there is 2 spots, maybe 3).

Then just drop it into your custom folder and it should work, that is what I did for my rc2 shard - copied it from the rc1 and made the change in ruoversion...

GreyWolf.
greywolf79 is offline   Reply With Quote
Old 08-17-2008, 02:47 AM   #504 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

We are using this chat system on our shard and absolutely love it. Is it possible to have it show the staff level of staffers in public chat? For example:

<Public> GhostRiderGrey [Owner] Hello world!

or

<Public> Rothgar [Counselor] Hello world!!

I have looked through the scripts and options but have failed to find it. Any assistance would be appreciated.
-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-17-2008, 01:00 PM   #505 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 29
Posts: 910
Send a message via Yahoo to greywolf79
Default

I am still new to programming over all, and to c# I am still learning every day... If I were trying to do that to the chat system so that it would give their access level I would search for the section in the chat files that deals with posting the name with the message and then look at the pet leveling files from the FSTS pet breeding package where it shows the way the pets name and level are posted when it raises a level and try to mix that type into it (but like I said I am new to this and my idea may only cause errors - I am not trying to make this change so I have not tried). But I figured the idea of mine may spawn an idea. I know when I was looking in the pet leveling system it said something like "name" {level} type setup... maybe something along the same lines but with {accesslevel} or {display access level} or what ever the command would be for that type thing is... Good luck, and if you succede post here what you did so others can make the change, I suspect I myself would end up using it eventually (just working on a lot of projects myself right now).

GreyWolf.
greywolf79 is offline   Reply With Quote
Old 08-17-2008, 01:15 PM   #506 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 29
Posts: 910
Send a message via Yahoo to greywolf79
Default

My apologies... I did not mean to post twice... I have a touchy computer and a bad connection to the net right now, so it duped my post.

GreyWolf.
greywolf79 is offline   Reply With Quote
Old 08-18-2008, 05:36 AM   #507 (permalink)
Forum Novice
 
Trip3033's Avatar
 
Join Date: Mar 2007
Location: California
Age: 19
Posts: 162
Send a message via AIM to Trip3033
Default

Quote:
Originally Posted by GhostRiderGrey View Post
We are using this chat system on our shard and absolutely love it. Is it possible to have it show the staff level of staffers in public chat? For example:

<Public> GhostRiderGrey [Owner] Hello world!

or

<Public> Rothgar [Counselor] Hello world!!

I have looked through the scripts and options but have failed to find it. Any assistance would be appreciated.
-GhostRiderGrey
why not just change there name to GostRiderGrey [Owner] etc. etc. then it show ur name as <Public> GhostRiderGrey [Owner] Hello world! it will save you the troubles....

Quote:
Originally Posted by greywolf79 View Post
People should be aware that there is a change needed to get it to work on RC2 though... Mine worked fine on RC1, but I had to go into RUOVersion.cs and change the settings in there that said rc1 to say rc2. But it is great, and I am glad to be using it in both my rc1 and rc2 shards now.


GreyWolf.
I didnt have to change or do anything to work on my server... i just added it and thats it...it worked just fine
__________________

EA Blows
Trip3033 is online now   Reply With Quote
Old 08-18-2008, 12:58 PM   #508 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Quote:
Originally Posted by Trip3033 View Post
why not just change there name to GostRiderGrey [Owner] etc. etc. then it show ur name as <Public> GhostRiderGrey [Owner] Hello world! it will save you the troubles....

We considered this, but if you do that, when you appear in-game to a player, you appear as GhostRiderGrey [Owner] [Owner], because the system automatically tags your character with their staff title. Is there a way to turn off the automatically generated staff title?

Thanks also Greywolf79. I will investigate your suggestion.

-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org

Last edited by GhostRiderGrey; 09-12-2008 at 04:20 PM.
GhostRiderGrey is offline   Reply With Quote
Old 08-18-2008, 05:49 PM   #509 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

[quote=GhostRiderGrey;773648]
Quote:
Originally Posted by Trip3033 View Post
why not just change there name to GostRiderGrey [Owner] etc. etc. then it show ur name as <Public> GhostRiderGrey [Owner] Hello world! it will save you the troubles....


We considered this, but if you do that, when you appear in-game to a player, you appear as GhostRiderGrey [Owner] [Owner], because the system automatically tags your character with their staff title. Is there a way to turn off the automatically generated staff title?

Thanks also Greywolf79. I will investigate your suggestion.

-GhostRiderGrey
I haven't fully tested this yet, but if you make this modification to the Broadcast method in Channel.cs it should work. (At least it has on my initial tests.) Changes are in red.

Code:
        protected virtual void Broadcast(Mobile m, string msg)
        {
            string a_Name;
            if (m.AccessLevel > AccessLevel.Player)
                a_Name = String.Format("{0} [{1}]", m.RawName, m.AccessLevel.ToString());
            else
                a_Name = m.RawName;

            foreach (Data data in Data.Datas.Values)
            {
                if (c_Mobiles.Contains(data.Mobile) && !data.Ignores.Contains(m))
                {
                    if (c_Style == ChatStyle.Regional && data.Mobile.Region != m.Region)
                        continue;

                    data.Mobile.SendMessage(m.AccessLevel == AccessLevel.Player ? ColorFor(data.Mobile) : Data.GetData(m).StaffC, String.Format("<{0}{1}> {2}: {3}", NameFor(m), (c_Style == ChatStyle.Regional && m.Region != null ? "-" + m.Region.Name : ""), a_Name, msg));
                }
                else if (data.Mobile.AccessLevel >= m.AccessLevel && ((data.GlobalC && !data.GIgnores.Contains(m)) || data.GListens.Contains(m)))
                    data.Mobile.SendMessage(data.GlobalCC, String.Format("(Global) <{0}{1}> {2}: {3}", c_Name, (c_Style == ChatStyle.Regional && m.Region != null ? "-" + m.Region.Name : ""), a_Name, msg));
            }
        }
razzles is offline   Reply With Quote
Old 08-18-2008, 11:19 PM   #510 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Thanks razzels, this seems to work well and does what I wanted it to. Will continue to test to be sure.

Thanks!!
-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 08-19-2008, 08:32 PM   #511 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Tested and Implemented!! It is working wonderfully well. Thanks a million razzels!

Fixed channel.cs file posted here for others.

-GhostRiderGrey
Attached Files
File Type: rar Channel.rar (3.0 KB, 6 views)
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 09-15-2008, 03:53 PM   #512 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Not sure if I should post this here or in the Xanthos Jail script thread. I have installed and activated Xanthos Jail system and changed the Knives Jail.cs file so that the two tie together. It seems to be working for local chat (i.e. one player standiing next to another and talking) but bad words in Public chat (or PMs) are not triggering a jailing (they do still get masked out with ****). Could someone steer me towards the issue and possible solution?

RC1 bye the way.

Thanks much,
-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org

Last edited by GhostRiderGrey; 09-15-2008 at 06:43 PM.
GhostRiderGrey is offline   Reply With Quote
Old 09-15-2008, 10:13 PM   #513 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

Quote:
Originally Posted by GhostRiderGrey View Post
Not sure if I should post this here or in the Xanthos Jail script thread. I have installed and activated Xanthos Jail system and changed the Knives Jail.cs file so that the two tie together. It seems to be working for local chat (i.e. one player standiing next to another and talking) but bad words in Public chat (or PMs) are not triggering a jailing (they do still get masked out with ****). Could someone steer me towards the issue and possible solution?

RC1 bye the way.

Thanks much,
-GhostRiderGrey
I believe you can set that in the Filter Options in Knives. Make sure the Filter Penalty is set to Jail.
razzles is offline   Reply With Quote
Old 09-15-2008, 10:27 PM   #514 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Thanks razzles, there is an option in knives fora filter penalty of Jail. But is this using the knives filter list or the Xanthos list? The xanthos list seems to work better, as the knives will take the t i t out of title with ***, or the a s s out of assume, which is annoying. The xanthos list does not do this.
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 09-19-2008, 01:19 PM   #515 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

if you have have the option to jail turned on in knives, and you have tit and ass in the knives filter list, then saying title or assume will get you jailed. Not good, lol

-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 09-19-2008, 05:33 PM   #516 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

Quote:
Originally Posted by GhostRiderGrey View Post
if you have have the option to jail turned on in knives, and you have tit and ass in the knives filter list, then saying title or assume will get you jailed. Not good, lol

-GhostRiderGrey
I was looking through the code for Xanthos Jail system (I use that one also) and found this little comment:
Code:
		//
		// Call this from your chat system command handler to have public 
		// chat monitored.
		// For instance, to add monitoring to Knives chat 2.0
		// Search for:
		// string text = Filter( e.Mobile, e.ArgString );
		// and insert this line directly after it (uncommented):
		// Xanthos.SpeechCop.Jail.CheckChatSpeech( e.Mobile, text );	// <- xanthos Jail speech change this line only
		//
In chat 3.0 it's changed a bit, it's now handled in Channel.cs in the OnChat(Mobile m, string msg, bool spam) method. I've shown the added lines in red below along with a few lines before and after so finding it shouldn't be difficult:

Code:
            if (!CanChat(m, true))
                return;

            if(c_Filter)
                msg = Chat3.Filter.FilterText(m, msg);

            Xanthos.SpeechCop.Jail.CheckChatSpeech(m, msg);

            if (!CanChat(m, false))
                return;

            if (!c_Mobiles.Contains(m))
            {
                m.SendMessage(Data.GetData(m).SystemC, General.Local(34));
                return;
            }
I don't filter any speech or chat on my shard, but I think that should take care of it so you can leave the filtering off in Knives and Xanthos will still check chats using the Xanthos filters.
razzles is offline   Reply With Quote
Old 09-19-2008, 06:02 PM   #517 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Wow Razzles, TY. Quick question. In the latest revision of Xanthos jail, he changed the namespace
Code:
Changed the namespace from the SpeechCop to JailSystem
would this make a difference in your line of code?
Code:
Xanthos.SpeechCop.Jail.CheckChatSpeech(m, msg);
should SpeechCop be JailSystem? I will test tonight when I get home from work and see what works.

Thanks again!
-GhostRiderGrey

*EDIT* Just checked and SpeechCop does need to be changed to JailSystem
Code:
Xanthos.JailSystem.Jail.CheckChatSpeech(m, msg);
this allows it to compile. Will test functionality tonight.
Thanks!!
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org

Last edited by GhostRiderGrey; 09-19-2008 at 06:17 PM.
GhostRiderGrey is offline   Reply With Quote
Old 09-20-2008, 01:31 AM   #518 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

You're right, I didn't check the namespace, just pasted it in. At least that was an easy fix. Hope that works for ya.
razzles is offline   Reply With Quote
Old 09-21-2008, 08:42 PM   #519 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Have tested and are making progress. With the latest change, it is now monitoring Public as well as local chat using the Xanthos word list. It is not, however, monitoring PMs yet. Do you have suggestions as to where to look to change this?

Thanks!
GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 09-22-2008, 12:30 AM   #520 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

Quote:
Originally Posted by GhostRiderGrey View Post
Have tested and are making progress. With the latest change, it is now monitoring Public as well as local chat using the Xanthos word list. It is not, however, monitoring PMs yet. Do you have suggestions as to where to look to change this?

Thanks!
GhostRiderGrey
From the looks of it, in SendMessageGump.cs:
Code:
            if (Data.GetData(Owner).Recording == this)
                Data.GetData(Owner).Recording = null;

            if (Data.FilterMsg)
            {
                c_Text = Filter.FilterText(Owner, c_Text, false);
                c_Subject = Filter.FilterText(Owner, c_Subject, false);
            }

            Xanthos.JailSystem.Jail.CheckChatSpeech(Owner, c_Text);
            Xanthos.JailSystem.Jail.CheckChatSpeech(Owner, c_Subject);

            if (c_MsgType == MsgType.System)
            {
                foreach (Data data in Data.Datas.Values)
                {
                    data.AddMessage(new Message(Owner, c_Subject, c_Text, MsgType.System));
                    General.PmNotify(data.Mobile);
                }
            }
razzles is offline   Reply With Quote
Old 09-27-2008, 02:51 AM   #521 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

Quote:
Originally Posted by GhostRiderGrey View Post
Wow Razzles, TY. Quick question. In the latest revision of Xanthos jail, he changed the namespace
Code:
Changed the namespace from the SpeechCop to JailSystem
would this make a difference in your line of code?
Code:
Xanthos.SpeechCop.Jail.CheckChatSpeech(m, msg);
should SpeechCop be JailSystem? I will test tonight when I get home from work and see what works.

Thanks again!
-GhostRiderGrey

*EDIT* Just checked and SpeechCop does need to be changed to JailSystem
Code:
Xanthos.JailSystem.Jail.CheckChatSpeech(m, msg);
this allows it to compile. Will test functionality tonight.
Thanks!!
Ok so where did you stick that? I'm confused about that.
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
Rosey1 is offline   Reply With Quote
Old 09-27-2008, 05:04 AM   #522 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

Quote:
Originally Posted by Rosey1 View Post
Ok so where did you stick that? I'm confused about that.
That was in the OnChat method in Channel.cs.
razzles is offline   Reply With Quote
Old 09-27-2008, 05:06 AM   #523 (permalink)
Forum Novice
 
Join Date: Jun 2008
Age: 27
Posts: 162
Default

hey just tried downloading it for like the millionth time and after i extract it its not a cs file. Something wroung here?
oldschool-3038 is offline   Reply With Quote
Old 09-27-2008, 01:49 PM   #524 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

What are you seeing? You should be getting a folder with other folders and Jail.cs and RUOVersion.cs in the main folder.
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
Rosey1 is offline   Reply With Quote
Old 09-27-2008, 02:34 PM   #525 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 314
Default

Quote:
Originally Posted by oldschool-3038 View Post
hey just tried downloading it for like the millionth time and after i extract it its not a cs file. Something wroung here?
Don't