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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 09-09-2004, 07:04 PM   #1 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Arrow The Dryad Bow

I've created a script that will add the dryad bow artifact to the game. It has all the properties that UO.STRATICS.COM says that OSI has on theirs.

Installation:
Save TheDryadBow.cs to your Scripts folder and replace the Scripts/Items/Weapons/BaseWeapon.cs with the BaseWeapon.cs below.

*** WARNING *** If you have already modified your BaseWeapon.cs then you will need to modify it with the changes in my BaseWeapon.cs that are marked by //added by raisor

Usage:
[ADD TheDryadBow

Updates:
09-11-2004 11:37AM MST - Fixed area in BaseWeapon.cs that I forgot to label as //added by raisor.

Thanks,
Tom Sapp
Attached Files
File Type: zip TheDryadBow.zip (16.6 KB, 172 views)
raisor is offline   Reply With Quote
Old 09-09-2004, 07:17 PM   #2 (permalink)
Soul of Darkness
 
Draxus's Avatar
 
Join Date: Feb 2004
Location: In The Shadow of your mind!
Age: 22
Posts: 201
Send a message via AIM to Draxus Send a message via MSN to Draxus
Default

Quote:
Originally Posted by raisor

*** WARNING *** If you have already modified your BaseWeapon.cs then you will need to modify it with the changes in my BaseWeapon.cs

Usage:
[ADD TheDryadBow

Thanks,
Tom Sapp

For those of us who have already changed the BaseWeapon.cs What exactly do we change or add?
Draxus is offline   Reply With Quote
Old 09-09-2004, 07:25 PM   #3 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by Draxus
For those of us who have already changed the BaseWeapon.cs What exactly do we change or add?
Do a search through the BaseWeapon.cs I provided for the term SkillBonus. Where ever that term is found needs to be copied and added to your BaseWeapon.cs.

That or I just updated the BaseWeapon.cs to include a comment of //added by raisor after each line I added.

Thanks,
Tom Sapp
raisor is offline   Reply With Quote
Old 09-11-2004, 04:20 AM   #4 (permalink)
Forum Expert
 
RoninGT's Avatar
 
Join Date: Oct 2002
Location: Evansville, IN
Age: 27
Posts: 943
Send a message via ICQ to RoninGT
Default

Nice script bro.
I tried to make the bow but when i tried i messed my baseweapon.cs all up LOL
So i gave up lol nice to see you got it working.
Thanks

Ronin
RoninGT is offline   Reply With Quote
Old 09-11-2004, 07:42 AM   #5 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Ok so i changed my baseweapon cuz i use GD13 custom crafting and i added all the lines you had commented but when i started my server i got this error:

Scripts: Compiling C# scripts...failed (1 errors, 14 warnings)
- Error: Scripts\Custom\Edited\BaseWeapon.cs: CS0103: (line 553, column 31) The
name 'from' does not exist in the class or namespace 'Server.Items.BaseWeapon'
- Warning: Scripts\Custom\Edited\Customs\New\Commands\SpawnEd itor.cs: CS0162: (
line 548, column 6) Unreachable code detected
- Warning: Scripts\Custom\Edited\Customs\New\Commands\SpawnEd itor.cs: CS0219: (
line 614, column 10) The variable 'check' is assigned but its value is never use
d
- Warning: Scripts\Custom\Items\Invis Items\Bootsofinvis.cs: CS0183: (line 116,
column 39) The given expression is always of the provided ('Server.Mobile') typ
e
- Warning: Scripts\Custom\Items\Invis Items\BraceletofInvis.cs: CS0183: (line 1
07, column 39) The given expression is always of the provided ('Server.Mobile')
type
- Warning: Scripts\Custom\Items\Invis Items\Cloakofinvis.cs: CS0183: (line 116,
column 39) The given expression is always of the provided ('Server.Mobile') typ
e
- Warning: Scripts\Custom\Items\Invis Items\JestersHatofInvis.cs: CS0183: (line
120, column 39) The given expression is always of the provided ('Server.Mobile'
) type
- Warning: Scripts\Custom\Items\Invis Items\NecklaceofInvis.cs: CS0183: (line 1
07, column 39) The given expression is always of the provided ('Server.Mobile')
type
- Warning: Scripts\Custom\Items\Invis Items\TricorneHatofInvis.cs: CS0183: (lin
e 120, column 39) The given expression is always of the provided ('Server.Mobile
') type
- Warning: Scripts\Custom\Items\Invis Items\WizardHatofInvis.cs: CS0183: (line
120, column 39) The given expression is always of the provided ('Server.Mobile')
type
- Warning: Scripts\Custom\Mobiles\Special\Serial Killers\BaseKiller.cs: CS0168:
(line 98, column 9) The variable 'item' is declared but never used
- Warning: Scripts\Custom\Quests\Diamond Master Robe Quest Quest\Prize\Robe\Dia
mondMasterRobe.cs: CS0183: (line 50, column 20) The given expression is always o
f the provided ('Server.Mobile') type
- Warning: Scripts\Custom\Quests\Diamond Master Robe Quest Quest\Prize\Robe\Dia
mondMasterRobe.cs: CS0183: (line 54, column 21) The given expression is always o
f the provided ('Server.Mobile') type
- Warning: Scripts\Custom\Rewards\7Æ Rewards\RoseOfTrinsic.cs: CS0665: (line 28
7, column 8) Assignment in conditional expression is always constant; did you me
an to use == instead of = ?
- Warning: Scripts\Custom\Staff\spawnerexport.cs: CS0162: (line 90, column 9) U
nreachable code detected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Hmmm cant upload my baseweapon to this post but if you need to look at it let me know.
evil lord kirby is offline   Reply With Quote
Old 09-11-2004, 02:59 PM   #6 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
Ok so i changed my baseweapon cuz i use GD13 custom crafting and i added all the lines you had commented but when i started my server i got this error:

Scripts: Compiling C# scripts...failed (1 errors, 14 warnings)
- Error: Scripts\Custom\Edited\BaseWeapon.cs: CS0103: (line 553, column 31) The
name 'from' does not exist in the class or namespace 'Server.Items.BaseWeapon'

Hmmm cant upload my baseweapon to this post but if you need to look at it let me know.
Add this line to your code just above the code at line 552:
Code:
Mobile from = (Mobile)parent;
it should then look like this:
Code:
		public override void OnAdded( object parent )

		{

			base.OnAdded( parent );



			if ( parent is Mobile )

			{

				Mobile from = (Mobile)parent;

				

				((Mobile)parent).CheckStatTimers();

				

				if ( Core.AOS )//added by raisor

					m_AosSkillBonuses.AddTo( from );//added by raisor

				

				((Mobile)parent).Delta( MobileDelta.WeaponDamage );

			}

		}
Let me know if I need to explain farther.

Thanks,
Tom Sapp
raisor is offline   Reply With Quote
Old 09-11-2004, 07:36 PM   #7 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Ok i added the line you said to and it compiled this time i have not tried adding the bow yet but i will tonight thanks for the help and for this awsome script. I have been wanting this for awhile now.
evil lord kirby is offline   Reply With Quote
Old 09-11-2004, 08:03 PM   #8 (permalink)
 
Join Date: Sep 2004
Location: Houston, Texas, USA
Age: 18
Posts: 53
Send a message via ICQ to PvP_Heaven Send a message via AIM to PvP_Heaven Send a message via MSN to PvP_Heaven
Default

oh, good job btw
PvP_Heaven is offline   Reply With Quote
Old 09-11-2004, 08:36 PM   #9 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
Ok i added the line you said to and it compiled this time i have not tried adding the bow yet but i will tonight thanks for the help and for this awsome script. I have been wanting this for awhile now.
You're welcome and hope all works out well.

Quote:
Originally Posted by PVP_Heaven
oh, good job btw
lol, thanks.
raisor is offline   Reply With Quote
Old 09-11-2004, 10:08 PM   #10 (permalink)
 
Join Date: Sep 2004
Location: Houston, Texas, USA
Age: 18
Posts: 53
Send a message via ICQ to PvP_Heaven Send a message via AIM to PvP_Heaven Send a message via MSN to PvP_Heaven
Smile

I fixed the Dryad bow to the correct hue and made it 100% OSI clone by making it give you the right skills in my attatchment
Attached Files
File Type: cs TheDryadBow.cs (1.6 KB, 25 views)
PvP_Heaven is offline   Reply With Quote
Old 09-11-2004, 10:10 PM   #11 (permalink)
 
Join Date: Sep 2004
Location: Houston, Texas, USA
Age: 18
Posts: 53
Send a message via ICQ to PvP_Heaven Send a message via AIM to PvP_Heaven Send a message via MSN to PvP_Heaven
Smile

Oh and I forgot to mention, the Dryad Bow on OSI has 50% SSI, not 15%, so I changed that too... But still, great job!
PvP_Heaven is offline   Reply With Quote
Old 09-12-2004, 04:19 AM   #12 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default One more small problem

ok so i guess not all is fixed yet after it compiles i get one more problem and it may or may not be a problem but i get this:

Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (2346 items, 545 mobiles)
World: Loading...An error was encountered while loading a saved object
- Type: Server.Items.CrescentBlade
- Serial: 0x4001735D
Delete the object? (y/n)

I dont want to delete it without asking you about this because im not sure what exactly will happen so if you could tell me what to do id be grateful thx.
evil lord kirby is offline   Reply With Quote
Old 09-12-2004, 11:19 AM   #13 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
ok so i guess not all is fixed yet after it compiles i get one more problem and it may or may not be a problem but i get this:

Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (2346 items, 545 mobiles)
World: Loading...An error was encountered while loading a saved object
- Type: Server.Items.CrescentBlade
- Serial: 0x4001735D
Delete the object? (y/n)

I dont want to delete it without asking you about this because im not sure what exactly will happen so if you could tell me what to do id be grateful thx.
That is a crescent blade and really shouldnt be affected but try reomving the script changes you added and see if it still gives you that error. If it doesn't then I am not sure what the problem might be... sorry.
raisor is offline   Reply With Quote
Old 09-12-2004, 11:02 PM   #14 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Ok my baseweapon is what caused it but i think i know why you see i added that line like you said but i added it below a line that it was supposed to be above so im going to go try this once more.
evil lord kirby is offline   Reply With Quote
Old 09-12-2004, 11:11 PM   #15 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Ok i still get the same error this is going nowhere for me i may have to just give up on using this script soon because it may be something to do with my baseweapon already being edited. Well i got my baseweapon to upload this time please take a look at it and see if it can be fixed or if i have made a mistake in it.
Attached Files
File Type: zip BaseWeapon.zip (16.0 KB, 5 views)
evil lord kirby is offline   Reply With Quote
Old 09-13-2004, 10:42 PM   #16 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
Ok i still get the same error this is going nowhere for me i may have to just give up on using this script soon because it may be something to do with my baseweapon already being edited. Well i got my baseweapon to upload this time please take a look at it and see if it can be fixed or if i have made a mistake in it.
I looked at your script and I really don't see anything that would be conflicting. I'd suggest looking at the crescent blade itself in game and check out it's properties. Maybe that is the problem. Not sure from there.
raisor is offline   Reply With Quote
Old 09-14-2004, 01:46 PM   #17 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Well it finally hit me what could be causing the problem after you mentioned the cresent blade properties in your post. You see back when i got runuo the first thing i did wes play with the properties window and make the most powerfull shit you could imagine. i was using lonewolf until that point and there is no properties window like runuo. But back to the cresent blade one of my vavorite weps so i made one with like 100% everything and im including a pic so you can see why it might cause a problem. I have deleted that cresent blade cuz i think it was the only one on the shard and i will try using the base weapon again and see if it causes a problem i will also add a new blade save and reboot to see if it asks to delete the normal one then ill post again and let you know how it went. Also thanks for all the help i know im probably driving you nuts by now
Attached Images
File Type: jpg Uber....JPG (52.8 KB, 13 views)
evil lord kirby is offline   Reply With Quote
Old 09-14-2004, 02:40 PM   #18 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Well i finally got it to work and it is really good but i only get +5 and 10 archery and once i got a +5 magic resisting what all possable skill bonuses does it give?
evil lord kirby is offline   Reply With Quote
Old 09-14-2004, 04:29 PM   #19 (permalink)
 
Join Date: Sep 2004
Location: San Diego
Age: 31
Posts: 61
Send a message via ICQ to Azirath_JaGang Send a message via Yahoo to Azirath_JaGang
Default

It should give all the skills related to combat (I think)

I just got the script working on my server also, adjusted the hue to match my hue settings specific to my server.

Thanks for the Script man.
Azirath_JaGang is offline   Reply With Quote
Old 09-14-2004, 05:16 PM   #20 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
Well i finally got it to work and it is really good but i only get +5 and 10 archery and once i got a +5 magic resisting what all possable skill bonuses does it give?
It should give a +5 or +10 to any of the 52 skills randomly.

Quote:
Originally Posted by Azirath_JaGang
It should give all the skills related to combat (I think)

I just got the script working on my server also, adjusted the hue to match my hue settings specific to my server.

Thanks for the Script man.
I based the script off of uo.stratics.com and they state that it gives the bonus to a random skill, not just a random combat skill. If someone could verify this for me it'd be great!
raisor is offline   Reply With Quote
Old 09-14-2004, 06:15 PM   #21 (permalink)
 
Join Date: Sep 2004
Location: San Diego
Age: 31
Posts: 61
Send a message via ICQ to Azirath_JaGang Send a message via Yahoo to Azirath_JaGang
Default

I've created 10 bow's testing it, and they have given random skills, related to combat. None gave Taming, Lore, Blacksmithy or other non-combatant skills.

So far I've gotten these two

Archery
Magic Resist

It is labeling it as The Living Bow though, when I would rather have it named Druid Bow. Know where I can fix that? I've searched and cannot seem to find it.
Azirath_JaGang is offline   Reply With Quote
Old 09-14-2004, 06:30 PM   #22 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by Azirath_JaGang
I've created 10 bow's testing it, and they have given random skills, related to combat. None gave Taming, Lore, Blacksmithy or other non-combatant skills.

So far I've gotten these two

Archery
Magic Resist

It is labeling it as The Living Bow though, when I would rather have it named Druid Bow. Know where I can fix that? I've searched and cannot seem to find it.
I think it is coincidence that it has only picked those two so far because I have gotten animal taming and arms lore before. also, to change the name this is the code to modify:
Code:
public override int LabelNumber{ get{ return 1061090; } }
When I used UO Localization it said that "The Dryad Bow" = 1061090 but it could be different because there has been an update lately and that is with the most updated client. It'll have to wait until I get home from work to get it fixed but I'll see what I can do.
raisor is offline   Reply With Quote
Old 09-15-2004, 05:27 AM   #23 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default

Odd mine said dryad bow and i am patched to the current patch AOS 2D 4.0.4b patch 30 i believe and i also downloaded that one in a reply where someone said that they fixed the hue and stuff course that maye be why it is dryad for me and not living.
evil lord kirby is offline   Reply With Quote
Old 09-15-2004, 12:24 PM   #24 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by evil lord kirby
Odd mine said dryad bow and i am patched to the current patch AOS 2D 4.0.4b patch 30 i believe and i also downloaded that one in a reply where someone said that they fixed the hue and stuff course that maye be why it is dryad for me and not living.
It says the dryad bow for me also and I havent changed the script from the one I have attached above. Not sure why it is saying the living bow for others unless they are not patched completely.
raisor is offline   Reply With Quote
Old 09-15-2004, 02:36 PM   #25 (permalink)
 
Join Date: Sep 2004
Location: San Diego
Age: 31
Posts: 61
Send a message via ICQ to Azirath_JaGang Send a message via Yahoo to Azirath_JaGang
Default

We've done a lot of Modifications here and there on our Server, so I'll have to take a look and see. Im backing up the entire database of scripts now, but after I finnish I'll check it out.

I working on gathering scripts for all the new artifacts and putting them into a Package group with directions on installations. If you'd like to help give me a PM or ICQ. This is one I would love to add into the package. (Not that I've really started on it yet, its just on my laundry list of things to complete.)