|
||
|
|
#1 (permalink) |
|
Master of Insanity
|
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 |
|
|
|
|
|
#2 (permalink) | |
|
Soul of Darkness
|
Quote:
For those of us who have already changed the BaseWeapon.cs What exactly do we change or add? |
|
|
|
|
|
|
#3 (permalink) | |
|
Master of Insanity
|
Quote:
That or I just updated the BaseWeapon.cs to include a comment of //added by raisor after each line I added. Thanks, Tom Sapp |
|
|
|
|
|
|
#5 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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. |
|
|
|
|
|
#6 (permalink) | |
|
Master of Insanity
|
Quote:
Code:
Mobile from = (Mobile)parent; 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 );
}
}
Thanks, Tom Sapp |
|
|
|
|
|
|
#7 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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.
|
|
|
|
|
|
#9 (permalink) | ||
|
Master of Insanity
|
Quote:
Quote:
![]() |
||
|
|
|
|
|
#12 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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. |
|
|
|
|
|
#13 (permalink) | |
|
Master of Insanity
|
Quote:
![]() |
|
|
|
|
|
|
#14 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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.
|
|
|
|
|
|
#15 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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.
|
|
|
|
|
|
#16 (permalink) | |
|
Master of Insanity
|
Quote:
|
|
|
|
|
|
|
#17 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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
![]() |
|
|
|
|
|
#20 (permalink) | ||
|
Master of Insanity
|
Quote:
Quote:
![]() |
||
|
|
|
|
|
#21 (permalink) |
|
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. |
|
|
|
|
|
|
#22 (permalink) | |
|
Master of Insanity
|
Quote:
Code:
public override int LabelNumber{ get{ return 1061090; } }
|
|
|
|
|
|
|
#23 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
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.
|
|
|
|
|
|
#24 (permalink) | |
|
Master of Insanity
|
Quote:
|
|
|
|
|
|
|
#25 (permalink) |
|
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.) |
|