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 05-19-2005, 06:14 PM   #1 (permalink)
 
Join Date: Apr 2005
Age: 19
Posts: 103
Default Ring Of Radiation

here is my first script, lemme know how you like it.......it is meant really only for uber shards....
Attached Files
File Type: cs RingOfRadiation.cs (1.3 KB, 218 views)
Siren853 is offline  
Old 05-19-2005, 06:19 PM   #2 (permalink)
Forum Novice
 
Join Date: May 2005
Location: In the world of candies
Age: 40
Posts: 151
Default

could you please give out a description of it sO i could know if it's done for me ? =/
XSTG is offline  
Old 05-19-2005, 08:32 PM   #3 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 22
Posts: 2,301
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

Would be cool if you added a check for mobiles in range, then poisoned them with "radiation". Or give it an immunity to poison OnEquip :>
Vorspire is offline  
Old 05-20-2005, 12:12 AM   #4 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Code:
			Name = "Ring Of Radiation";
			Hue = 1153;
			Attributes.BonusHits = 50;
			Attributes.RegenHits = 50;
			Attributes.AttackChance = 5;
			Attributes.BonusMana = 50;
			Attributes.CastRecovery = 3;
			Attributes.CastSpeed = 6;
			Attributes.RegenMana = 3;
			Attributes.NightSight = 1;
			Attributes.SpellDamage = 100;
			Attributes.LowerManaCost = 50;
			Attributes.BonusDex = 50;
			Attributes.BonusInt = 50;
			Attributes.BonusStam = 50;
			Attributes.BonusStr = 75;
			Attributes.EnhancePotions = 50;
			LootType = LootType.Blessed;
			Resistances.Physical = 72;
			Resistances.Fire = 68;
			Resistances.Cold = 73;
			Resistances.Energy = 95;
			Resistances.Poison = 67;
All I can say is HOLY COW!
__________________
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 05-20-2005, 12:13 AM   #5 (permalink)
Forum Expert
 
Raider's Avatar
 
Join Date: Jan 2005
Age: 31
Posts: 288
Send a message via Yahoo to Raider
Default

Quote:
Originally Posted by Greystar
Code:
			Name = "Ring Of Radiation";
			Hue = 1153;
			Attributes.BonusHits = 50;
			Attributes.RegenHits = 50;
			Attributes.AttackChance = 5;
			Attributes.BonusMana = 50;
			Attributes.CastRecovery = 3;
			Attributes.CastSpeed = 6;
			Attributes.RegenMana = 3;
			Attributes.NightSight = 1;
			Attributes.SpellDamage = 100;
			Attributes.LowerManaCost = 50;
			Attributes.BonusDex = 50;
			Attributes.BonusInt = 50;
			Attributes.BonusStam = 50;
			Attributes.BonusStr = 75;
			Attributes.EnhancePotions = 50;
			LootType = LootType.Blessed;
			Resistances.Physical = 72;
			Resistances.Fire = 68;
			Resistances.Cold = 73;
			Resistances.Energy = 95;
			Resistances.Poison = 67;
All I can say is HOLY COW!
hehe thats not a player ring woudnt give to them lol
Raider is offline  
Old 05-20-2005, 06:26 AM   #6 (permalink)
Forum Novice
 
Join Date: May 2005
Location: In the world of candies
Age: 40
Posts: 151
Default

it's really nice I'm going to use it for myself. Nice script for a 1st script! Good luck for your next ones
XSTG is offline  
Old 05-20-2005, 09:14 AM   #7 (permalink)
Forum Expert
 
Join Date: Aug 2003
Posts: 737
Send a message via ICQ to georox Send a message via AIM to georox
Default

Quote:
Originally Posted by XSTG
it's really nice I'm going to use it for myself. Nice script for a 1st script! Good luck for your next ones
hate to say it, this is the most basic and worthless script there is, I advise you learn a bit on scripting now after your above, that and learn a wee bit more about ultima if you didnt figure out that staff dont need 999 everything.
__________________
georox is offline  
Old 05-20-2005, 11:23 AM   #8 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Ah a ring of 1337 Pwn. You know every time I load a thread like this I actually reduce the life of my mouse with 1 click. Not to mention the few seconds of my life that just slip away.

Anyways just some advice: Don't release items that are nothing more then a couple of lines giving an item properties. Especially when the item is as unbalancing as this one, as it doesn't really provide anything new to anybody.
I believe you can find items like this under "god ring" "staff ring" "staff bracelet" "staff hat" etc etc.
Shadow1980 is offline  
Old 05-20-2005, 02:03 PM   #9 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 22
Posts: 2,301
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

I know your all right, but dont be so harsh on him. I made sujestion instead of putting his script down :>
Vorspire is offline  
Old 05-20-2005, 06:00 PM   #10 (permalink)
 
Join Date: Apr 2005
Age: 19
Posts: 103
Default

geeze, lighten up guys....it's my first one, and I really don't know how to do anything else....but at least I'm learning......and if anyone knows how to poison everything with radiation, I would love the help.....
Siren853 is offline  
Old 05-20-2005, 06:33 PM   #11 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

The ancient pyramids all started with placing a single brick and to reach the dizzying apex on high you merely have to keep laying those bricks down properly. Good start, Siren853!
ssalter is offline  
Old 05-20-2005, 07:55 PM   #12 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Right, I might have come off a bit harsh at first so I will make some suggestions instead:

When releasing a script, make a very clear description of what your script does. In this case, an item, describe it's properties and special abilities.
Make sure to search for similair items, as posting something that has been done already just clutters up the forums. If you do decide to post a variation on other scripts, mention that in your post, it can provide useful information to people.
It aint a bad idea in this case linking to similair things either, but that's just a form of politeness I use myself.

As for poisoning everything with radiation, I am not sure what you mean.
If you mean the person who equips it, you will need to put poison on the mobile equipping the ring in the OnEquip method.
If you wish to poison everybody within a certain range, I suggest you look into the code for the archcure spell on how to collect mobiles within a certain range and assign an effect to them. I wouldn't really suggest making such a thing a continues effect tho, it might get really annoying to the one who wears it (and others) due the notoriety rules and such.
Shadow1980 is offline  
Old 05-20-2005, 08:32 PM   #13 (permalink)
Forum Novice
 
Join Date: Dec 2004
Age: 16
Posts: 111
Default

Yea But he is new...i dont think he knows how to just make a new system added on to it. that involves spell effects Etc just give him time to complete it Mr.Shadow -1898 lol But yes an area effect WOULD suck so when your learn how to do this i advise making it possibly less rigged and make a new poison and add it to scripts.add the new file of poison and make it worse than lethal so its like a 1 second kick your butt thing heh Still though i give you a thumbs up for a new beggining of a scriptor.
Shadow82 is offline  
Old 05-21-2005, 12:09 AM   #14 (permalink)
 
Join Date: Apr 2005
Age: 19
Posts: 103
Default

thx guys.....if I were to do an area affect, I would try and make a thing where you have to double click the ring for it too work.....any ideas?
Siren853 is offline  
Old 05-21-2005, 12:16 AM   #15 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

one of the most useful things you can have as a coding assistant is a good "search" utility so you can search files for strings. In this case, you'd search the scripts directory for all .cs files containing the string "doubleclick". Then, you will see what you need to do to get started.

note: the windows search utility is unhelpful. I have used something for years from Funduc software that is extremely powerful and yet easy to use.



public override void OnDoubleClick( Mobile from )
{
....do your radiation things...
}
ssalter is offline  
Old 05-21-2005, 05:35 AM   #16 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by ssalter
one of the most useful things you can have as a coding assistant is a good "search" utility so you can search files for strings. In this case, you'd search the scripts directory for all .cs files containing the string "doubleclick". Then, you will see what you need to do to get started.

note: the windows search utility is unhelpful. I have used something for years from Funduc software that is extremely powerful and yet easy to use.



public override void OnDoubleClick( Mobile from )
{
....do your radiation things...
}

and in the your radiation thing you could problably use from.InRange(xx) to find all mobiles in range of owner to hit with the radiation well you'd need to do alot more then that to get all mobiles InRange, but Look for References it InRange to see how its done in other scripts... its heavily used in my Killable Guards in multiple places... but it may help you to figure a way to collect mobiles in a specfic range to be affected by radiation or even have different effects for how close or far things are, but on that not damaging things at range 8 for player when they are trying to hide and run through a heavy combat area can attract alot of unwanted attention, but it would be thier fault for doubleclicking the ring
__________________
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 05-21-2005, 08:28 AM   #17 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 22
Posts: 2,301
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

heres a good sujestion :>

go into your BaseWeapon.cs and find the line that looks like this:
Code:
publicvirtualint AbsorbDamageAOS( Mobile attacker, Mobile defender, int damage )
{


Then IF you want to, you can add this little piece of code i have come up with. When someone hits another player, or a monster hits a player who is wearing the ring, there is a random chance of 1 in 3 that the person attacking the person with the ring will get poisoned. Of course you can change the chance from 3 to whatever you like.

Find these lines:
Code:
elseif ( !(defender.Weapon is Fists) && !(defender.Weapon is BaseRanged) )
{
double chance = ( defender.Skills[SkillName.Parry].Value * 0.0015 );
blocked = ( chance > Utility.RandomDouble() ); // Only skill-check if wielding a shield
}



Now add my code undernieth the above stated lines, like this:
Code:
 
elseif ( !(defender.Weapon is Fists) && !(defender.Weapon is BaseRanged) )
{
double chance = ( defender.Skills[SkillName.Parry].Value * 0.0015 );
blocked = ( chance > Utility.RandomDouble() ); // Only skill-check if wielding a shield
}
 
RingOfRadiation ringofrad = defender.FindItemOnLayer(Layer.Ring) as RingOfRadiation;
	if( ringofrad != null)
	{
	 int willhit = Utility.Random(3);
	 if(willhit == 1)
	 {
	  attacker.Emote("I left this here so you could have a message above the victims head");
	  // poison (harm anim)
	  defender.FixedParticles( 0x374A, 10, 15, 5021, EffectLayer.Waist );
	  defender.PlaySound( 0x474 );
	  defender.ApplyPoison( attacker, Poison.Greater );
	 }
	 else
	 {
	  return damage;
	 }
	}


Restart the server and test it by hitting someone who has the ring equipped.
Vorspire is offline  
Old 05-21-2005, 09:51 AM   #18 (permalink)
 
Join Date: Apr 2005
Age: 19
Posts: 103
Default

Should It look like this?

using System;
using Server;

namespace Server.Items
{
public class RingOfRadiation : GoldRing
{
public override int ArtifactRarity{ get{ return 15; } }

[Constructable]
public RingOfRadiation()
{
Name = "Ring Of Radiation";
Hue = 1153;
Attributes.BonusHits = 50;
Attributes.RegenHits = 50;
Attributes.AttackChance = 5;
Attributes.BonusMana = 50;
Attributes.CastRecovery = 3;
Attributes.CastSpeed = 6;
Attributes.RegenMana = 3;
Attributes.NightSight = 1;
Attributes.SpellDamage = 100;
Attributes.LowerManaCost = 50;
Attributes.BonusDex = 50;
Attributes.BonusInt = 50;
Attributes.BonusStam = 50;
Attributes.BonusStr = 75;
Attributes.EnhancePotions = 50;
LootType = LootType.Blessed;
Resistances.Physical = 72;
Resistances.Fire = 68;
Resistances.Cold = 73;
Resistances.Energy = 95;
Resistances.Poison = 67;
}

public RingOfRadiation( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 );
}

public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );

int version = reader.ReadInt();
}

elseif ( !(defender.Weapon is Fists) && !(defender.Weapon is BaseRanged) )
{
double chance = ( defender.Skills[SkillName.Parry].Value * 0.0015 );
blocked = ( chance > Utility.RandomDouble() ); // Only skill-check if wielding a shield
}

RingOfRadiation ringofrad = defender.FindItemOnLayer(Layer.Ring) as RingOfRadiation;
if( ringofrad != null)
{
int willhit = Utility.Random(3);
if(willhit == 1)
{
attacker.Emote("I left this here so you could have a message above the victims head");
// poison (harm anim)
defender.FixedParticles( 0x374A, 10, 15, 5021, EffectLayer.Waist );
defender.PlaySound( 0x474 );
defender.ApplyPoison( attacker, Poison.Greater );
}
else
{
return damage;
}
}

}
}

Cause I got alot of errors with it
Siren853 is offline  
Old 05-21-2005, 10:24 AM   #19 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 22
Posts: 2,301
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

no... read my post again, carefully... i said edit BaseWeapon.cs and FIND the lines that say that.. read it again.

You do not need to edit your ring script at all to do this.
Vorspire is offline  
Old 05-21-2005, 11:20 AM   #20 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

More easely and in line with what he wanted he could use a OnDoubleClick method to achieve poisoning people within a certain radius and not change his BaseWeapon.cs

But that depends on what he exactly wishes to accomplish.
Shadow1980 is offline  
Old 05-21-2005, 11:50 AM   #21 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 22
Posts: 2,301
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

yes but that means you would have to d-click it all the time to poison people. that could be quite overpowered.
Vorspire is offline  
Old 05-21-2005, 12:45 PM   #22 (permalink)
 
Join Date: Apr 2005
Age: 19
Posts: 103
Default

ok, so what if I were to want it to be where the person that hits you, and or the person you hit gets poisoned with a 1 in 4 chance like mentioned before? how would I do that?

oh and I did this one this morning.....I think I like it more than the ring....it's not too uber, and it is somethin I think I would like to make a doom stealable.....but how would I make it a stealable? sry about all the questions, I'm just new to scripting.....
Attached Files
File Type: cs BraceletOfDragonsPern.cs (1.1 KB, 12 views)
Siren853 is offline  
Old 05-21-2005, 02:38 PM   #23 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Siren853
ok, so what if I were to want it to be where the person that hits you, and or the person you hit gets poisoned with a 1 in 4 chance like mentioned before? how would I do that?

oh and I did this one this morning.....I think I like it more than the ring....it's not too uber, and it is somethin I think I would like to make a doom stealable.....but how would I make it a stealable? sry about all the questions, I'm just new to scripting.....
No this one is a little better except
Attributes.BonusStr = 16;
is still a little high, as far as making them into a doom rare that is stealable you'd have to look at the two stealable rare packages one is part of ArteGordon's XMLSpawner system and the other can be found in its own thread. I use the one that is designed to work with Nerun's system. It inherits from a Custom Artifact file to make it a stealable rare. As far that the first question im not sure how to make it so an Item detects when something is hit... I'd track down how its done in BaseArmor (think its there) to see how it checks OnHit, then make a Utilitity.Random(xx) check somehow that would make a 25% chance of being affected by said affect.
__________________
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  
 

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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5