RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Greywolf's Simple Paintball System 2.0 (maybe 1.0)

Greywolf's Simple Paintball System 2.0 (maybe 1.0)

here is my very simple paintball system!!!!!

it is very easy to use - do not need to mod any distro files

and youu only have to make a few changes in 1 file for it to work on your shard correctly (basicaly setting up where you will be playing at lol)

the Simple steps to follow:
1) set up your areana - or decide which of the current ones to use ;)
2) Strongly suggest you use regions in a box and set up a region for it
else edit the regions.xml file and add your region in (i prefere in a box method)
if you do not do this - no big deal - just have to comment out a couple of lines is all
3) download and place the scripts in your custom directory
4) restart server
5) have fun

Should work on 1.0 and 2.0 but not tested on 1.0

now for the good stuff

Basicaly this is set up like true paintball - except you get 5 hits before you are out - can be modified to any number - but 5 works good

when you are hit - your robe changes color (sometimes not fast enough to see lol)
and when 5 hits - it resets and moves you to the elimination point
also on the 5th hit - the one that hit you - their weapon gets a "/" added to the name (kill mark) - so those can be totaled afterwards for a grand winner if you want
and if it is a "bot" (see below) it freezes the bot
also the gun chechs to see if you have a robe on (victum) - if not - says you are cheating and removes you from round
also checks to make sure you have a proper robe on - if not says so and removes you
both spots have seperate set ups (or can use same spot)

the paintball guns are set to look like a crossbow (i have a custom graphic for mine - with looks like a gun - but UO does not have it standard - so in here it is a crossbow - again easy to modify)
these also use base range - so can not fire while running
i also modified the special attacks to BS ones - so they do not work - done on purpose

there are 5 type (besides the base)
standard - 25 speed and no mods - range 10
offensive - 25 speed and +25 attack chance - 25 defend chance range 10
defensive - 25 speed and -25 attack chance and +25 defend chance range 10
(these simulate if they want to "duck and run more" or "stand and blast away")
semi auto - speed 45 range 6 - good at close range only
sniper - speed 5 range 15 - slow but can shoot from far away

and then there is the paintball robe - nothing big

also included are 3 levels of "paintball bots" slow, med & fast
just add them in when you think the players are having to much fun :))

and last but not least
bag of paintball equipment - robe - 5 guns and 1000 paint pellets
and a storage chest that has like 20 full bags in it to just make 1 and hand them out ;)

also if using a region - they will not work outside of the region

how to modify for your shard

open PaintBallGunBase.cs

change this part if you do not want it to be a crossbow:
public PaintBallGunBase() : base( 3920 )

change the region to match yours:
if (defender.Player && defender.Region.Name == "The Paintball Areana" )
& here:
else if ( defender.Region.Name == "The Paintball Areana" )
or if no region used:
if (defender.Player )
& here
else if ( defender.Region.Name == "The Paintball Areana" )
to
else

to chane where they go if they were caught cheating and no robe on:

Code:
				if ( paintrobe == null)
				{
					defender.SendMessage( "You have NO Robe ON!!!!!!" );
					defender.SendMessage( "You are Eliminated" );
					[COLOR="red"]defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;[/COLOR]
				}

to chenge where they go when eliminated normaly via a gun:

Code:
				else if ( paintrobe.Hue == 38)
				{
					paintrobe.Hue = 6;[COLOR="red"]
					defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;[/COLOR]
					defender.SendMessage( "You were Eliminated" );
					this.Name = this.Name + "/";
				}

and where they are sent if an improper robe:

Code:
				else
				{
					paintrobe.Hue = 6;[COLOR="red"]
					defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;[/COLOR]
					defender.SendMessage( "You were Eliminated for an improper robe" );
				}

to change the number of hits needed - just add or remove stages of changing colors for the robes in this section:

Code:
				else if ( paintrobe.Hue == 6) paintrobe.Hue = 11;
				else if ( paintrobe.Hue == 11) paintrobe.Hue = 21;
				else if ( paintrobe.Hue == 21) paintrobe.Hue = 31;
				else if ( paintrobe.Hue == 31) paintrobe.Hue = 38;
				else if ( paintrobe.Hue == 38)
				{
					paintrobe.Hue = 6;
					defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;
					defender.SendMessage( "You were Eliminated" );
					this.Name = this.Name + "/";
				}

finaly - if you want - the amount of time a bot is frozen for:

defender.Freeze( TimeSpan.FromSeconds( 10.0 ) );

see - nice and simple - easy to modify and set up

if you want an endless action to the game
just set a teleporter back into the areana from the elimination spot - and it works like UT or SOF then and they are "reborn" and can keep on killing

Nice and simple - no distro edits, no big memory consumption for keeping score with, etc etc

as always enjoy

*added it is rar form since some where having troubles unzipping it
 

Attachments

  • Paint Ball.zip
    9 KB · Views: 536
  • Paint Ball.rar
    8.1 KB · Views: 76

nekron_14

Sorceror
Thank you very much, well done. Going to try this out on my shard as soon as I figure out my problem. Karma ++ Good job, keep em comin. :D
 

Gaea

Sorceror
Thank you very much for taking the time to do this; I REALLY missed paintball!

I have a question or two though...

I set up my region as your instructions said, and changed the locations in the script...but nothing happens. I can shoot with or without robes on, and the robes never change colors or even give a message saying that we've been hit.

Is there something I missed? Thanks again
*Edit*
DOH! n/m I figured it out...I named my arena "Paintball Arena", instead of "THE Paintball Arena" (yeah, I changed it in the script from areana to arena)

But it doesn't tell who eliminated me..isn't it supposed to?
 

steven73

Traveler
i love this script f i could get it to work but all atempts to make a new region as failed lol can any one tell me how or post a webpage that tells how to add a region on runuo2.0?????
 

Gaea

Sorceror
Ok, go search for regions in a box, and install it. In game wherever you want it do [add regioncontrol. its sorta self explanitory from there once you d click it.

You can set restrictions to spells, skills etc.
1 thing to remember though...use the "add region" to cover ALL parts of the area you want. (its really easy to miss spots)

Hope that helps
 

Pyro-Tech

Knight
in your regions.xml in the data folder, it is pretty easy to figure out if you browse through how they do it.

If we use the box regions program, do we have to still do all the region editing?

Good script by the way...thanks for the submit
 
i did not think of adding in a thing to say who eliminated you
but that would be easy to add in

in the line where it moves the player just change the code in red:

Code:
				else if ( paintrobe.Hue == 38)
				{
					paintrobe.Hue = 6;
					defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;
					defender.SendMessage( "You were Eliminated [COLOR="Red"]by {0}", this.ParentEntity.Name [/COLOR]);
					this.Name = this.Name + "/";

that is untested, so i am not sure if it will work or not
i am nopt at home, so i can not test it
 

Gaea

Sorceror
Only to change it to whereever you have your region at (just the x, y z) and the name if you make your region something other than "The Paintball Areana"

Edit: Thanks Greywolf, as usual you rock! *slaps herself for not thinking of that*
 

koluch

Sorceror
Quick Question

Our players really love this package.
One of the nice things is that it is VERY easy to start up and it is a fast paced game!

One Question:
Im trying to figure out a way to even the balance among the players, so anyone can shoot the bow about the same, from a crafter to mage to whatever( yes dex is always a factor )
I tried making the bows Use Best Weapon Skill, but bows dont have that catagory so it seemed to mess things up more( I have a 120 archer that couldnt hit ANYONE! )

Ignoring my feable attempt at changing the bows, what would be your thoughts on a way to level the playing field?
(if it stays as is, thats fine, the event is more for good chuckles then anything else :) )

Thanks Grey, good job !

Koluch
 
2 things come to mind

1) is some place in these threads is a different thing from me - called "true best weapon skill" - it is a modifier that will change the skill to their true best skill 0 and it works quite well

or

2) take a skill no one has - i.e. remove trap, forensics, camping, tasteid, etc(this depends on how your shard is set up - these skills except for the tasteid on mine all have great uses lol)
and ways - find a skill no one has (i have actualy reserved taste id foir this - made it so 1 point in the skill is "100% chance" and set everyones cap in it to 1, and no power scrolls are issued for it - so this way it is reserved for this use)

any way - take tasteid for example - make the weapon use that skill and then add 120 skill bonus of tasteid to the weapon aslo

then everyone is on even playing field :)
 

koluch

Sorceror
hehe, man Im such a tard, that was too easy!
*my brain is always making mountains outta paintball pellets*

:p
 

Retro

Wanderer
I have set my rejoins but still after 100 hits the players go no where. how do i set it up for players to be elinated?
 
in the gun, it is set up to teleport them to a spot when they reach 5 hits

just set it for 100 hits instead, and have no teleporter back into the game

it does not ho by hitpoints of the player, but the "hits" recorded via the robe color

so modify this section of the "paintballgunbase"

Code:
				else if ( paintrobe.Hue == 6) paintrobe.Hue = 11;
				else if ( paintrobe.Hue == 11) paintrobe.Hue = 21;
				else if ( paintrobe.Hue == 21) paintrobe.Hue = 31;
				else if ( paintrobe.Hue == 31) paintrobe.Hue = 38;
				else if ( paintrobe.Hue == 38)
				{
					paintrobe.Hue = 6;
					defender.X = 7034;
					defender.Y = 3837;
					defender.Z = 40;
					defender.Map = Map.Felucca;
					defender.SendMessage( "You were Eliminated" );
					this.Name = this.Name + "/";
				}

if you want it to be 100 hits and they are out - so something like this:

Code:
				else paintrobe.Hue += 1;
				if ( paintrobe.Hue == 106)
				{
					paintrobe.Hue = 6;
					defender.X = 7034;
					defender.Y = 3837;
					defender.Z = 40;
					defender.Map = Map.Felucca;
					defender.SendMessage( "You were Eliminated" );
					this.Name = this.Name + "/";
				}
 

nadious

Sorceror
AWESOME script! Love it. In testing phase now. Going to use this for another event in the future. I'm sure my players will eat it up.

Suggestions to maybe help better this already awesome script:

1. Team Play (instead of FFA)
2. The ability to make the robes give skills that would better enhance the game. (Ie: Hiding, stealth, etc.) ** Of course, you run into the problem that these robes shouldn't allow their skills to be used OUTSIDE of the defined region. I'm not sure how difficult that would be.
3. Leveled playing field. (You've already covered this above.)

Again, just throwing out some suggestions. I'm not making requests, as I have no clue how involved scripting these would be.
 
well team, etc and other stuff can be added in by people that want
(just give them cloaks then of team color and use elimation style - last team with a member wins - could get complex and make it check for cloak and hue and if same hue as theirs, do not "hit")

the idea behind this was to keep it very very simple

so adding in other stuff would be up to those that want it

but yes - it can be used as a base for building many many types of events
 

nadious

Sorceror
Lord_Greywolf;662934 said:
i did not think of adding in a thing to say who eliminated you
but that would be easy to add in

in the line where it moves the player just change the code in red:

Code:
				else if ( paintrobe.Hue == 38)
				{
					paintrobe.Hue = 6;
					defender.X = 2429;
					defender.Y = 1922;
					defender.Z = -94;
					defender.Map = Map.Malas;
					defender.SendMessage( "You were Eliminated [COLOR="Red"]by {0}", this.ParentEntity.Name [/COLOR]);
					this.Name = this.Name + "/";

that is untested, so i am not sure if it will work or not
i am nopt at home, so i can not test it

Tried that, and got this error:

Code:
Errors:
 + Custom/Custom Games/Paintball/PaintBallGunBase.cs:
    CS0117: Line 67: 'Server.IEntity' does not contain a definition for 'Name'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

Just FYI. :)
 
Top