Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 02-15-2006, 05:35 PM   #1 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default Sorious' WoW OnSite Dueling System

Those of you that have played WoW(World of Warcraft) will get this system right off the bat. Those of you that don't I will try to explain it.

NEW THREAD

CURRENT VERSION = 1.1.8 - This version is not stability tested. Use at your own risk.

Update 1.1.7
-Fixed a bug that didnt allow faction players to duel.

Update 1.1.7
-Fixed a exploit that allowed the duel initiator to start more then one duel at once.
-Updated NortoietyAdditions.txt

Update 1.1.6
-Fixed a crash bug thanks to blueocean.
-Added some extra exploit securities thanks to XxSP1DERxX

Update 1.1.5
-Revamped duel accept timer, should work better now.
-No Bandage option on the duel gump wasnt working, now it is.

Update 1.1.4
-You can no longer duel someone if you have a faction sigil.
-You can no longer challenge offline players.

Update 1.1.3
-Fixed a potential bug that would cause players to be invulnerable on restart.

Update 1.1.2
-Fixed the images, they should display properly on the gumps now.
-All pets and mounts should return to the player at the end of the duel.(Untested)

Update 1.1.1
-Fixed a crash bug thanks to Seven for finding it and Jakob for the fix.

Update 1.1.0
-Added a AWSOME gump for dueling options, this is one of my coolest looking gumps to date.
-Options are as follows
-Magic Weapons - Allow/Disallow magic weapons
-Magic Armor - Allow/Disallow magic armor
-Potions - Allow/Disallow potions
-Bandaids - Allow/Disallow bandaids
-Pets - Allow/Disallow pets( this will stable your pets )
-Mounts - Allow/Disallow mounts( this will stable your mount )
-KeepScore - Allow/Disallow scorekeeping
-5X or 7X gm - really only checks 5X.
-All items that are not allowed will be placed in a red bag within your bank.
-Cleaned up the code in a few areas.

PICTURE OF OPTIONS GUMP


Update 1.0.0
-The dueling post will stay for the length of the fight, upon winning/losing the match it will fly back up into the air and disappear.
-Both duelers will be invulnerable for 10 seconds after the duel. This was put in so that dexers will not get guardwacked after the match is over. This gives enough time for each party to be able to re-equip or leave after the duel incase of a gank situation.

These are the options I have made available for some customization. They are in OnSiteCore.cs.
Code:
        private static int m_MaxDist = 30;                                      //Sets the max distance a player can run from another player without ending the duel.
        private static bool m_WorldBroadcastWins = true;                        //If true will broadcast the winner of each duel.
        private static bool m_KeepScore = true;                                 //Turn the score keeping system on/off;
        private static bool m_UseCommand = true;                                //Turn the command to duel on/off.
        private static string m_ChallengeString = "i challenge thee to a duel"; //String used to start a duel.
        private static string m_DuelCommand = "OnSiteDuel";                     //The command players can call to duel someone.
        private static string m_GetPointsString = "showpoints";                 //String used to get your duelpoints.
        private static ArrayList m_CurrentDuels;                                //This is the container for each duel in progress
        private static Hashtable m_PointsTable;                                 //Points tracker.
        private static string m_SavePath = Path.Combine( Core.BaseDirectory, "Data\\WoWDuelSaves\\scores.bin" );//Save path.
How it works
The player uses the command [onsiteduel. They will recieve a target cursor and be told to select the player they wish to duel. After selecting a player a "duel request flag" will drop from the sky between the 2 players. The targeted player will recieve a gump to either accept or decline the duel. On accepting the duel both players will become orange to each other and a 5 second timer will count down to the start of the duel. At this point both players will be invulnerable to all other players and all other players invulnerable to them. The 2 players are now free to roam around and fight each other untill A. one of them dies, or B. the distance between them becomes more then 30 tiles( about 2 screens). When the loser dies all items from his/her corpse are put back into their backpack and their corpse is removed.

Installation
If you have a distro Notoriety.cs script the installation is simple.
1. Drop Notoriety.cs into your Scripts\Misc folder and overwrite the previous.
2. Stick OnsiteCore.cs & AcceptGump.cs into any folder you wish in Script\.

If you have a modified Notoriety.cs script.
1. Download the NotorietyAdditions.txt attached to this thread and follow the directions.
2. Stick OnsiteCore.cs & AcceptGump.cs into any folder you wish in Script\.

Future Additions
No plans at the moment.

Known bugs
None at the moment.

My Disclaimer
This system has been tested but only by myself. It is currently in Alpha and I do not condone putting this system on a live server until it has a fairly good track record.
You may use this system and modify the scripts according to your needs as long you do not take complete credit for it. If you wish to use this in any scripts that your intend to release to the public, please just ask me first.
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO

Last edited by Jeff; 03-20-2006 at 03:02 AM.
Jeff is offline  
Old 02-15-2006, 06:41 PM   #2 (permalink)
 
Join Date: Mar 2004
Location: Turin, Italy
Age: 26
Posts: 71
Send a message via ICQ to blueocean Send a message via MSN to blueocean
Default

thank you i was searching for something like that ^^
blueocean is offline  
Old 02-15-2006, 06:46 PM   #3 (permalink)
*shrugs*
 
mblicata's Avatar
 
Join Date: Sep 2004
Age: 23
Posts: 112
Default

Wow (no pun intended), that sounds really cool! I'll definitely use this.
mblicata is offline  
Old 02-15-2006, 07:32 PM   #4 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Hmm I like this a way to have consensual PVP, kinda nice.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 02-15-2006, 07:35 PM   #5 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Talking

Thx for the script dude looks kool if you need any ideas just ask
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline  
Old 02-15-2006, 07:37 PM   #6 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by Asmir3
Thx for the script dude looks kool if you need any ideas just ask
if you have any ideas just post and i can consider them
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-15-2006, 08:09 PM   #7 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default

OUTSTANDING! this will go in IMMEDIATLY! wow! great work!If you would like to see your system live and in work on a server with a small population and do some bug testing, hit me on icq 12294663. Im gonna try and squeeze a restart in with this this evening without my players having a stroke! lol

Last edited by stu; 02-15-2006 at 08:19 PM.
stu is offline  
Old 02-15-2006, 10:00 PM   #8 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Talking

Bug found one is when it send the gump where someone challenge you instead oh saying there name it says {0} has challenge you no name hehe. Another bug is when you challenge someone and they dont accept and you try to challenge them again it dont send the gump it says "You slap yourself across the face and declare yourself the winner" but the thing is it wont send the gump again to duel the same person even like after 5 mins i tryed and wont send the gump to face the same person again.

Suggestion is you need to make either the gump to stay up until the decline or accept or you need to make this into player speech
__________________

Now open - uo15.net - The best in Publish 15 emulation

Last edited by Asmir3; 02-15-2006 at 10:04 PM.
Asmir3 is offline  
Old 02-15-2006, 10:17 PM   #9 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default

system is flawless on my system, im not receiving the above errors. the ONE bug we have found so far is that it lists the players serials in the "X has defeated Y in a duel" message.
stu is offline  
Old 02-15-2006, 10:28 PM   #10 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by Asmir3
Bug found one is when it send the gump where someone challenge you instead oh saying there name it says {0} has challenge you no name hehe. Another bug is when you challenge someone and they dont accept and you try to challenge them again it dont send the gump it says "You slap yourself across the face and declare yourself the winner" but the thing is it wont send the gump again to duel the same person even like after 5 mins i tryed and wont send the gump to face the same person again.

Suggestion is you need to make either the gump to stay up until the decline or accept or you need to make this into player speech
Ya the {0} bug i caught just after i released it but didnt wanna just do a update for that, the "slap yourself in the face" thing should only happen if you challenge yourself, please check that again i have a feeling your challenging yourself cause i cant duplicate this issue.

The Accept decline will stay up for 30 seconds, after that it will release incase the person is afk.

Quote:
Originally Posted by stu
the ONE bug we have found so far is that it lists the players serials in the "X has defeated Y in a duel" message.
ill include a fix for this in the next release.
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-15-2006, 10:52 PM   #11 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default

awesome! ty man! check yer pm's
stu is offline  
Old 02-16-2006, 02:26 AM   #12 (permalink)
Forum Expert
 
otimpyre's Avatar
 
Join Date: Apr 2003
Location: Georgia
Age: 31
Posts: 392
Question One question

During this duel how do monsters react to the players.
otimpyre is offline  
Old 02-16-2006, 02:29 AM   #13 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by otimpyre
During this duel how do monsters react to the players.
No idea, would be great if that were tested and results were shown to me. I can only assume they would still attack. :/
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 05:37 AM   #14 (permalink)
Forum Expert
 
Join Date: May 2005
Location: United Kingdom
Age: 17
Posts: 255
Send a message via MSN to Swerve_jnr
Default

wow excellent system i've never thought about this before! cool this could be very interesting. do the players get an extra kill because i know players on the shard i'm working on would set up another account jsut to e top of the pvp list. perhaps you could try and make some kinda guard. i don't know how doale it is ut i've suggested now.

and again loverly system!

Kieran
Swerve_jnr is offline  
Old 02-16-2006, 06:30 AM   #15 (permalink)
Forum Novice
 
Join Date: Jun 2005
Age: 30
Posts: 111
Default Seems Nice but its very familiar to Arte Gordons xmlpoints

Seems Nice but its very familiar to Arte Gordons xmlpoints. He may deserve some props for this
Dave1969 is offline  
Old 02-16-2006, 10:20 AM   #16 (permalink)
 
Join Date: Dec 2005
Posts: 181
Default

this is good but you forgot the most important thing for it.in wow when duel there is no body dying.when the hp decreased very much your opponent begging you for not kill him

Last edited by okyzan; 02-16-2006 at 10:35 AM.
okyzan is offline  
Old 02-16-2006, 10:48 AM   #17 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by okyzan
this is good but you forgot the most important thing for it.in wow when duel there is no body dying.when the hp decreased very much your opponent begging you for not kill him
I know, but i got lazy i hate doing animations

Quote:
Originally Posted by Dave1969
Seems Nice but its very familiar to Arte Gordons xmlpoints. He may deserve some props for this
Well considering I've not once used ArteGordon's System and not once seen it, maybe not, but I will admit he is one hell of a programmer and give him props for that
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 12:48 PM   #18 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Update! v.0.2.0A lots of new features, check it out!
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 12:55 PM   #19 (permalink)
 
Join Date: May 2003
Posts: 303
Default

How does this affect the current UO system where as a criminal (grey/red) can be attacked by any blue player or a red attacking a blue in Felucca? Does this disable that option or is this only for 2 blue players to pvp or is this just an addition to allow blues to pvp without going crim?
Anvil is offline  
Old 02-16-2006, 12:58 PM   #20 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by Anvil
How does this affect the current UO system where as a criminal (grey/red) can be attacked by any blue player or a red attacking a blue in Felucca? Does this disable that option or is this only for 2 blue players to pvp or is this just an addition to allow blues to pvp without going crim?
it only effects the players while they are dueling, when the 2 players are dueling everyone around them is invulnerable and same goes in reverse. The duelers that are dueling become aroange to each other.This is the only time Noto is messed with. It will not mess with and thing else.
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 12:59 PM   #21 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Suggestion: make it restore fame/karma (or at least give a bool option in the script).

Great job on this
Joeku is offline  
Old 02-16-2006, 01:01 PM   #22 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by Joeku
Suggestion: make it restore fame/karma (or at least give a bool option in the script).

Great job on this
Since they are orange to each other would that matter? I will test it, but i dont think it would matter.
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 01:12 PM   #23 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

I didn't see anything in your script that mentions this, so I'm going to say that it probably doesn't already prevent fame/karma change...

***EDIT***
Just checked PlayerMobile.cs, and I don't see anything in there either.

Last edited by Joeku; 02-16-2006 at 01:15 PM.
Joeku is offline  
Old 02-16-2006, 01:18 PM   #24 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,952
Default

Quote:
Originally Posted by Joeku
I didn't see anything in your script that mentions this, so I'm going to say that it probably doesn't already prevent fame/karma change...
Ok, your not understanding...Do you gain and lose karma for killing waring guilds or factions? I dont think you do, and that is how this is setup, The oposing dueler is orange thus, why would u lose anything?
__________________
Jeff Boulanger
ConnectUO - Creator/Core Developer

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline  
Old 02-16-2006, 01:19 PM   #25 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

*shrugs shoulders*
I haven't installed it yet, so I haven't been able to test it. I'm just inferring...
Joeku is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes