Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 01-11-2005, 09:17 AM   #1 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 32
Posts: 957
Default Beer Elemental

I made this by special request a long while ago for some of our players.

a Beer Elemental, when killed leaves behind "a puddle of beer", between 5~11 gold, and a bottle of liquor.

It only hits for 1 damage (this is intentional)

I have commented out the OnHit lines (listed below), as they undoubtedly do not exist in your files. In order to get the elemental to work fully, you will need to duplicate your HitPoison scripts and have it boost your players BAC.

//public override Poison HitBeer{ get{ return Poison.Lethal; } }
//public override double HitBeerChance{ get{ return 0.75; } }

Its not really dangerous to fight one, it just makes you really drunk...

Attached Files
File Type: zip BeerElemental.zip (873 Bytes, 138 views)
Jarrod is offline   Reply With Quote
Old 01-11-2005, 11:55 AM   #2 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Default Elemental

Lol nice. I'll try iy out.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline   Reply With Quote
Old 01-11-2005, 03:20 PM   #3 (permalink)
Forum Novice
 
Miles84's Avatar
 
Join Date: Aug 2004
Age: 24
Posts: 170
Default

lol...love the idea
Miles84 is offline   Reply With Quote
Old 01-11-2005, 03:35 PM   #4 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,795
Send a message via MSN to Pyro-Tech
Default

*thinks of the few drunken frat boys that plays on shard*




*proceeds to download*
__________________

Pyro-Tech is offline   Reply With Quote
Old 01-11-2005, 04:05 PM   #5 (permalink)
 
Join Date: Jan 2005
Location: Quebec Canada
Age: 19
Posts: 104
Send a message via MSN to Foress
Default

Thats a funny one
Foress is offline   Reply With Quote
Old 01-12-2005, 08:00 AM   #6 (permalink)
Forum Expert
 
LordHogFred's Avatar
 
Join Date: Jan 2004
Location: UK, Essex
Age: 19
Posts: 1,166
Default

Ok I may be missing something but is Blood Alcohol Content included in the distro cos I can't find any scripts on it anywhere on the forum.
__________________
It is not the hand that creates worlds,
It is the mind controlling it !

The New Dawn Network
LordHogFred is offline   Reply With Quote
Old 01-12-2005, 08:28 AM   #7 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,422
Default

*hic*
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 01-12-2005, 08:51 AM   #8 (permalink)
Forum Expert
 
Join Date: Oct 2002
Location: Germany (american though)
Age: 32
Posts: 957
Default

well, what you are going to want to do is in your Scripts\Engines\AI\Creature\BaseCreature.cs

after
Code:
public virtual double HitPoisonChance{ get{ return 0.5; } }
add these 2 lines
Code:
public virtual Poison HitBeer{ get{ return null; } }
public virtual double HitBeerChance{ get{ return 0.5; } }
Then under public virtual OnGaveMeleeAttack
after
Code:
Poison p = HitPoison;
add
Code:
Poison b = HitBeer;
just below that under
Code:
defender.ApplyPoison( this, p );
add
Code:
			if ( b != null && HitBeerChance >= Utility.RandomDouble() )
			{
				defender.BAC +=10;
				if ( defender.BAC > 60 )
					defender.BAC = 60;
				if ( defender.BAC > 0 )
				{
					// Turn in a random direction
					defender.Direction = (Direction)Utility.Random( 8 );

					// Heave
					defender.Animate( 32, 5, Math.Max( 1, Math.Min( 3, Utility.Random( 5, defender.BAC ) / 10 ) ), true, true, 0 );

					// *hic*
					defender.PublicOverheadMessage( Network.MessageType.Regular, 0x3B2, 500849 );
				}
			}
the player .BAC should be the blood alcohol content
Jarrod is offline   Reply With Quote
Old 01-12-2005, 04:58 PM   #9 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,795
Send a message via MSN to Pyro-Tech
Default

Quote:
Originally Posted by LordHogFred
Ok I may be missing something but is Blood Alcohol Content included in the distro cos I can't find any scripts on it anywhere on the forum.
yeah, it is allready handeled in the distro.........i mean, you drink and you start hicuping so.....yeah......anyways

*goes of to fight more beer elementals*.........really......just for the skill.......*hic*
__________________

Pyro-Tech is offline   Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5