Elsa said:RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (2633 items, 680 mobiles)
World: Loading...An error was encountered while loading a saved object
- Type: Server.Items.Bow
- Serial: 0x400D1E25
Delete the object? (y/n)
n
After pressing return an exception will be thrown and the server will terminate
what exactly do i need to do?
it asked me to do the same thing with i think a cross bow or something similar (some kindof bow) i hit 'y' and then it asked if i wanted to remove them from the whole shard... i hit 'n' then it sent me through it again so i hit 'y' both times and now it's giving me more of these errors with a different bow this time... i'm worried it'll go through every bow type
Lucid Nagual said:This is only for bows at this point in time. Bolts can still be stored in the quiver and weigh less. AS far as the attributes go....I tried adding more than one and the name of the bow disappears. Kinda like I'm only allowed 3 slots for the GetProperties. If I knew a way around this I would fix it. Sorry.
Anvil said:It would actually be better to put the skillcheck on the dip tubs and leave the bows alone as far as skill, unless you wanted a check to say that only a certain skill level could use the different bows based off the archery skill. There really shouldn't be a check to see which type of arrow you can fire since really anyone could fire any type of arrow/bolt. Your concern should be for the fletcher who's making the arrow which will in turn give your fletchers a source of income.. I don't know of many archers who actually get their poisoning skills up there since poisoning was really used in alchemy... but that's just my $.02...
Anvil
Lucid Nagual said:I still have an issue with the weight returning to normal when the arrows/bolts are used. And I need to know....does the baseaddon edit work for anyone? Is there anyone that gets the building menu from clicking the saw? These are prolly issues that need to be taken care of next.
It will go through every bowtype cause you didnt follow directions in the beginning, but if you have no players just respawn all your mobs and they will get their weapons back so its really no big deal... if you have some players and they use bows there may be a problem... otherwise re-read the first post...
Note: These instructions are for those that wish to save the Arrow Selections. The arrow selection stays at last setting untile reselected.
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (6 errors, 8 warnings)
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0246: (line 17
4, column 4) The type or namespace name 'BaseQuiver' could not be found (are you
missing a using directive or an assembly reference?)
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 17
5, column 9) The name 'quiver' does not exist in the class or namespace 'Server.
Items.ArcheryButte'
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 17
6, column 5) The name 'quiver' does not exist in the class or namespace 'Server.
Items.ArcheryButte'
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 18
3, column 9) The name 'quiver' does not exist in the class or namespace 'Server.
Items.ArcheryButte'
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0246: (line 18
5, column 11) The type or namespace name 'quiver' could not be found (are you mi
ssing a using directive or an assembly reference?)
- Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 19
6, column 13) The name 'quiver' does not exist in the class or namespace 'Server
.Items.ArcheryButte'
Anvil said:Greystar, I added your changes to the butte and I'm getting the following error now:
Code:RunUO - [www.runuo.com] Version 1.0.0, Build 36918 Scripts: Compiling C# scripts...failed (6 errors, 8 warnings) - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0246: (line 17 4, column 4) The type or namespace name 'BaseQuiver' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 17 5, column 9) The name 'quiver' does not exist in the class or namespace 'Server. Items.ArcheryButte' - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 17 6, column 5) The name 'quiver' does not exist in the class or namespace 'Server. Items.ArcheryButte' - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 18 3, column 9) The name 'quiver' does not exist in the class or namespace 'Server. Items.ArcheryButte' - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0246: (line 18 5, column 11) The type or namespace name 'quiver' could not be found (are you mi ssing a using directive or an assembly reference?) - Error: Scripts\Custom\Advanced Archery\ArcheryButteAddon.cs: CS0103: (line 19 6, column 13) The name 'quiver' does not exist in the class or namespace 'Server .Items.ArcheryButte'
Container pack = from.Backpack;
Type ammoType = bow.AmmoType;
bool isArrow = ( ammoType == typeof( Arrow ) );
bool isBolt = ( ammoType == typeof( Bolt ) );
bool isKnown = ( isArrow || isBolt );
if ( pack == null || !pack.ConsumeTotal( ammoType, 1 ) )
{
if ( isArrow )
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 500594 ); // You do not have any arrows with which to practice.
else if ( isBolt )
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 500595 ); // You do not have any crossbow bolts with which to practice.
else
SendLocalizedMessageTo( from, 500593 ); // You must practice with ranged weapons on this.
return;
}
Container pack = from.Backpack;
Container quiver = (Container)from.FindItemOnLayer( Layer.Cloak ); //You will also need to change this to Layer.MiddleTorso
if ( quiver == null )
quiver = (Container)pack.FindItemByType( typeof( BaseQuiver ) );
Type ammoType = bow.AmmoType;
bool isArrow = ( ammoType == typeof( Arrow ) );
bool isBolt = ( ammoType == typeof( Bolt ) );
bool isKnown = ( isArrow || isBolt );
bool usedquiver = false;
bool usedpack = false;
if ( quiver != null )
usedquiver = quiver.ConsumeTotal( ammoType, 1 );
if ( pack != null && !usedquiver )
usedpack = pack.ConsumeTotal( ammoType, 1 );
if ( !usedquiver && !usedpack )
{
if ( isArrow )
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 500594 ); // You do not have any arrows with which to practice.
else if ( isBolt )
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 500595 ); // You do not have any crossbow bolts with which to practice.
else
SendLocalizedMessageTo( from, 500593 ); // You must practice with ranged weapons on this.
return;
}