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 12-06-2007, 12:40 AM   #1 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default Simple Player Dueling.

#! System Still Has Bugs, Not Intended For Live Servers Yet !#
#! Please do not pay attention to many of the posts in page 1 & 2 as they are out dated !#


Updates:
23 July 2008
* Crash with region code fixed
* Duels will now offer the ability to re-match after it has ended
* The rules for weapons now work
* The rules for armor now work
* Fixed bug with the same ip duel's check

19th of July 2008
* Fixed bug with multiple duel regions
* Fixed Crash With Region Code
* Duel is now destroyed when the caller log's out
* When the duel starts, all participants will be invul for 5 seconds
* Players now have full health at duel start

16th of July 2008
* Fixed Crash With Region Code
* Regions now initialize on server start up
* Added config option to allow/disallow same ip duels
* The caller of the duel can no longer remove them self

Know Problems:
* The duel rules on combat abilities do not work.

Description:
This system allows players to organize highly customizable duels, these duels take place at fixed locations on your server created by you. This system does not allow players outside the duel to attack/heal people inside the duel. In a single duel there maybe be up to 4 teams, with up to 6 players per team.

Features:
* Allows Players To Organize Highly Customizable Duels
* Create Your Own Duel Arena's
* Up To 4 Teams Per Duel
* Up To 6 Players Per Team

Installation:
This system for many is simply drag & drop(especially if you do not want to make use of the notoriety(health bar color)).
Also it is advised you look at DuelConfig.cs to configure many customizable aspects of the script.

If you find that notoriety is not being handled by this system simply make the following distro mods to Notoriety.cs

At the top of the script add the line

Code:
using Server.Dueling;
In the delegate "MobileNotoriety( Mobile source, Mobile target )" add the below code towards the top

Code:
if (source is PlayerMobile && target is PlayerMobile)
{
  if (Duel_Config.InADuel((PlayerMobile)source) && Duel_Config.InADuel((PlayerMobile)target))
                    return DuelController.NotoHandler(source, target);
}
and in the delegate "Initialize()" in DuelController.cs comment out the below line.
Code:
Notoriety.Handler = NotoHandler;
Screen Shots:
A Screen Shot

A Screen Shot

A Screen Shot

A Screen Shot

Creating A New Arena:
1) Create the arena's static layout, for example a square of blockers
2) Now place a duel controller, preferably near by to the desired location of the arena
3) Set all the properties required for the duel controller to function properly
4) Restart server
5) The duel arena should now be active & have its own region Initialized

Organizing A Duel:
1) Type in game "i wish to duel"
2) Use the gump that appears to organize all of your duel settings
3) Click the start button & wait for all other players to accept the rules and participants
4) The duel has began to start, after it has started there will be a 5 second delay in which all players are frozen
5) After this it is time to fight!

Please Enjoy.
Attached Files
File Type: rar Dueling.rar (28.0 KB, 115 views)
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com

Last edited by Alex21; 07-24-2008 at 07:09 AM.
Alex21 is offline   Reply With Quote
Old 12-06-2007, 07:31 PM   #2 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Currently it only deals with in duel combat by making everyone in the duel criminal.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-06-2007, 08:05 PM   #3 (permalink)
Forum Expert
 
ClanCC's Avatar
 
Join Date: Dec 2002
Location: The Darkness
Posts: 421
Default

hm. RunUO SVN, Linux, Mono SVN

Code:
Errors:
 + Customs/Dueling/Gumps/DuelGump.cs:
    CS0135: Line 152: `duel' conflicts with a declaration in a child block
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Error:
System.NullReferenceException: Object reference not set to an instance of an object
  at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh) [0x00000]
  at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000]
  at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000]
  at System.Console.ReadKey (Boolean intercept) [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]
This exception is fatal, press return to exit
;1R
** (/RunUO/RunUO.exe:29376): WARNING **: exception inside UnhandledException handler: Object reference not set to an instance of an object
__________________
ClanCC was missing D:
One Vision, One Purpose, Peace Through Power!
ClanCC is offline   Reply With Quote
Old 12-06-2007, 08:39 PM   #4 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Linux eh.

That error makes no sense to me or is it a crash log?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-06-2007, 08:59 PM   #5 (permalink)
Forum Expert
 
ClanCC's Avatar
 
Join Date: Dec 2002
Location: The Darkness
Posts: 421
Default

Quote:
Originally Posted by Alex21 View Post
Linux eh.

That error makes no sense to me or is it a crash log?
no crash log, thats when RunUO is compiling the scripts, i get that error.
__________________
ClanCC was missing D:
One Vision, One Purpose, Peace Through Power!
ClanCC is offline   Reply With Quote
Old 12-06-2007, 11:21 PM   #6 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

that means that "duel" is being declared twice at the same or lower level

one section needs to be changed to like "duel1" through that section
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 12-07-2007, 01:18 AM   #7 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

It seems to work fine for me, major improvments coming though, will be implementing notoiretry & the ability to create as many duel arena's in the world as you want.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-07-2007, 06:37 AM   #8 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,770
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Looks like you've got something going here that may eventually become a nice system. Be sure to cover all your bases, such as factioners dueling with options regarding points loss.
__________________
go fish
Suil Ban is offline   Reply With Quote
Old 12-09-2007, 04:10 AM   #9 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

The System Has Been Updates Please Re-Download.

Great New Features Available.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-09-2007, 06:35 PM   #10 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Updated fixed error with the duel gate gump that would exceed the ArrayList's index and cause a server crashing exception, please re download.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-11-2007, 12:03 AM   #11 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Please Re Download the updated release.

Read Updates in 1.2
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-11-2007, 06:46 AM   #12 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,770
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Can players not involved in the duel affect players in the duel region?
__________________
go fish
Suil Ban is offline   Reply With Quote
Old 12-11-2007, 07:45 AM   #13 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

I am working on that now.

Region, there is no regions in this system.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-16-2007, 07:08 PM   #14 (permalink)
Forum Novice
 
Join Date: Apr 2006
Age: 23
Posts: 795
Send a message via AIM to krump_king
Default help

when i try to download the file it does not show me a script can u maybe pm me a list of the steps to setting up the arenas etc would be great
__________________
krump_king is offline   Reply With Quote
Old 12-16-2007, 09:16 PM   #15 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by krump_king View Post
when i try to download the file it does not show me a script can u maybe pm me a list of the steps to setting up the arenas etc would be great
The scripts arn't in the .rar? is that what you saying?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-17-2007, 01:09 AM   #16 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

Quote:
Originally Posted by krump_king View Post
when i try to download the file it does not show me a script can u maybe pm me a list of the steps to setting up the arenas etc would be great
You will need to unpack the rar file using winrar. The script/scripts are contained within the rar file.
__________________
In some cases stupid makes you win-Radwen
Johabius is offline   Reply With Quote
Old 12-18-2007, 01:47 AM   #17 (permalink)
Forum Novice
 
Join Date: Mar 2005
Posts: 348
Default

EDIT: Problem fixed.

Last edited by Sephy; 12-18-2007 at 02:32 AM.
Sephy is offline   Reply With Quote
Old 12-18-2007, 02:09 AM   #18 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

i would love to look at this but unfortunately i dont use a .rar program
Murzin is offline   Reply With Quote
Old 12-18-2007, 02:20 AM   #19 (permalink)
Forum Expert
 
ClanCC's Avatar
 
Join Date: Dec 2002
Location: The Darkness
Posts: 421
Default

Quote:
Originally Posted by Murzin View Post
i would love to look at this but unfortunately i dont use a .rar program
You can download it for free...sorta... @ WinRAR archiver, a powerful tool to process RAR and ZIP files .
__________________
ClanCC was missing D:
One Vision, One Purpose, Peace Through Power!
ClanCC is offline   Reply With Quote
Old 12-18-2007, 03:28 AM   #20 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

What does everyone use then?

Can they open .zip's?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-18-2007, 03:49 AM   #21 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

I made enough changes to release the modifications, at the moment i had trouble with notoriety, so you must still build a wall around your arena to prevent out side intervention.

Please re download and read "Updates In 1.3".
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-18-2007, 04:25 AM   #22 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,770
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Quote:
Originally Posted by Alex21 View Post
I made enough changes to release the modifications, at the moment i had trouble with notoriety, so you must still build a wall around your arena to prevent out side intervention.

Please re download and read "Updates In 1.3".
AoE spells will still affect the duelists. I suggest switching to a region...
__________________
go fish
Suil Ban is offline   Reply With Quote
Old 12-18-2007, 05:25 AM   #23 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

This system was made to be region free.

AoE can only be casted into the arena if you dont put walls around it, look at the screenshot of one of my arena's, This system does not prevent AoE as it will be part of the up & coming rule set.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 12-18-2007, 09:18 AM   #24 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

windows comes with built in zip program.

i wont install a .rar program because my OS is currently slightly corrupted from a bad norton install and im procrastinating reinstalling my XP. i dont want to install anything if i dont absolutely have to to prolong having to reinstall.
Murzin is offline   Reply With Quote
Old 12-18-2007, 09:30 AM   #25 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,770
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Quote:
Originally Posted by Alex21 View Post
This system was made to be region free.

AoE can only be casted into the arena if you dont put walls around it, look at the screenshot of one of my arena's, This system does not prevent AoE as it will be part of the up & coming rule set.
Earthquake and MS are going right through the walls...
__________________
go fish
Suil Ban is offline   Reply With Quote
Reply

Bookmarks