|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Guest
Posts: n/a
|
This is a basic jailing and speech monitor system.
Commands : [jail [unjail [AddJailWords [DeleteJailWords[ListJailWords If a player says any of the words in the file jaiwords.cs, they will be automatically jailed on the spot. If you want the system to monitor chat speech as well there is a method, in jailcommand.cs, that must be called from the chat command handler. An example and explanation for how to do this with Knives Chat 2.0 is provided in jailcommand.cs. If you want to prevent players from leaving jail using the stuck option you will also need to set up a custom region encompassing your jail; Regions In a Box works well for that. Installation:
Thanks go to Novafire, whose ideas make up the bulk of this release.
Special thanks to Thundar for his help and ideas on this release.
Last edited by Xanthos; 03-19-2006 at 06:09 PM. |
|
|
#3 (permalink) |
|
Guest
Posts: n/a
|
Well the most obvious problem was that they were rebuilding the bad word array everytime someone spoke. A lot of inconsistencies in the code like variable naming, unused variables, and so on that made it hard to follow. An error that allows players to end up with large negative amounts of rock to mine. I stopped keeping track at that point and went for a complete rewrite.
|
|
|
#4 (permalink) |
|
Forum Expert
|
lol.. ok I ve had theres for a bit but havent used it.. Ill use yours but I need help with something.. I made a custom mining camp/jail place and the whole floor is cave floor.. I dont know how to change it to make it work.. Ive tried all kinds of changes.. can you help me with it pls..
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: May 2004
Age: 29
Posts: 358
|
This is a great update for this. The only issues I've seen with this so far are,
Players with pets other then the mount hey had will probably end up loosing them. dono if thats by design or not. Counslors can be jailed by cursing, but can use [tele [go or [who to get out. and I experenced a crash. I belive, that it happned when I used the [unjail command, and either missed the guy, or hit esc to cancel. Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.ArrayListEnumeratorSimple.MoveN ext() at Xanthos.SpeechCop.UnJailTarget.OnTarget(Mobile from, Object targ) 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) I Did fix the counslor escape plan on my shard, but I also have staff orbs. I just added a change acess level to the jailing part, and since all possessions go in the bank that includes their orbs and they cant break out. I even went a step farther and included GMs in being able to be jailed, because I dont want any staff slip of the toungs... |
|
|
|
|
#7 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#11 (permalink) |
|
i changed the location to go to the internal jail in tram and i added cave floor tiles. i tested to see if i can mine normally from those tiles and i can but i am not sure what line to change in yer script to get it to mine from that instead of just mountain walls could u enlighten me if it is jsut that one line here in JailHammer.cs?
if ( toLand.Name == "rock" ) thx i love the script btw Also i checked the link from the archive i changed "rock" to "cave floor" and i still get no rock, any ideas? |
|
|
|
|
|
#12 (permalink) |
|
Guest
Posts: n/a
|
Get the latest release. I added some config variables and instruction in the comment next to the variable to help make mining different locations easier for everyone. Basically you use the command
Code:
[get name ![]() |
|
|
#13 (permalink) | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
|
#14 (permalink) |
|
sweet thx Xanthos that worked just fine only one prob it still crashes as soon as i use the [unjail cmd on an inmate i have yer newest download too
*EDIT* Also i noticed that the player can leave the jail once done and keep all the Jail Rock he had extra i would think that the Jail Rock should be deleted upon steping on the door to freedom or at the time of turning in the last Jail Rock like the hammer disappears....once again this is a great script i love it u did a great job and this is only an idea for u keep up the good work |
|
|
|
|
|
#16 (permalink) | |
|
here is the crash report:
Quote:
|
||
|
|
|
|
#17 (permalink) |
|
Well im working on jail system that doesnt jail people but actualy gives a squeach jail and puts a book in the backpack to let the player read the book 1500 times during that time he could not speak just like squealched during that time until the book is finished when the reading is finished his squealch would go of its more practicular.Like for other things im looking at uo samurai empire easyuo doesnt work on samurai empire which is very useful for this im trying to change the core to enforce the players to use samurai empire but not beta because beta supports easyuo still working on it.
Also 1 more thing i just had a question i saw on the third party forum iris client just like World Of Warcraft but its based on uo changed uo motor much more better 3d motor does the runuo dev team working on the motors ? |
|
|
|
|
|
#19 (permalink) |
|
would is be this section?
public override void OnSpeech( SpeechEventArgs e ) { Mobile from = e.Mobile; if ( !from.Alive || !m_House.IsInside( from ) || !m_House.IsActive ) return; bool isOwner = m_House.IsOwner( from ); bool isCoOwner = isOwner || m_House.IsCoOwner( from ); bool isFriend = isCoOwner || m_House.IsFriend( from ); |
|
|
|
|
|
#21 (permalink) |
|
was that crash report sufficeint to figure out what the [unjail cmd crash was bieng caused by?...And also the jailer is speaking again (kewlness) but he skips back when u try to approach him is that normal workings to make him keep speaking or just a glitch? goo work by the way and i added rep points to u on last post of mine u answered for good work and response time
![]() |
|
|
|
|
|
#22 (permalink) |
|
Guest
Posts: n/a
|
I found the source of the crash. It had to do with the hashtable lookup - I have implemented a reliable means to be sure there is an entry for the key before I use the value. Im still trying to get the jailer to behave with no timer - although I consider the priority of this lower than some of my other tasks.
|
|
|
#25 (permalink) |
|
ok i tried it out works alot better and no crashes. I found away to leave with the Jail Rock still (it is not a big deal just letting u know is all ) if u get jailed then mine say 200 rock, give 100 to the slave driver and put the rest in yer pack in separate pile, (Do Not step on teleporter yet) then say another cuss word and all yer items get sent to yer bank even the jail rock in yer bag. The thing will be that the guy will go and do this then get out of Jail and sell the Jail Rock for millions cause others cant figure out how to do it lol. ( like i said tho it is no biggie just thought u might want to know all the possibilities
![]() |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|