|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#301 (permalink) |
|
Forum Newbie
Join Date: Dec 2005
Posts: 45
|
+ Items/Weapons/Ranged/BaseRanged.cs:
CS0246: Line 69: The type or namespace name 'ArrowType' could not be found ( are you missing a using directive or an assembly reference?) CS0246: Line 72: The type or namespace name 'BoltType' could not be found (a re you missing a using directive or an assembly reference?) Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. i get this error how can i fix it? please help.... ![]() |
|
|
|
|
|
#302 (permalink) | ||
|
Forum Novice
Join Date: Oct 2003
Posts: 153
|
Using SVN 187 I get this error
Quote:
public override void OnHit( Mobile attacker, Mobile defender ) if I change it to public override void OnHit( Mobile attacker, Mobile defender, double damagebonus ) server startsup no errors, but when I shoot an arrow, the arrow hits & server hard crashes Quote:
Last edited by datguy; 07-31-2007 at 10:41 PM. |
||
|
|
|
|
|
#303 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 40
|
I think I found a fix for this. It seems to work well, but I've not tested thoroughly.
Line 172, I changed to: Code:
public virtual void OnHit( Mobile attacker, Mobile defender, double damageBonus ) ![]() Edit: Upon further investigation, this method results in a warning: Code:
CS0114: Line 172: 'Server.Items.BaseRanged.OnHit(Server.Mobile, Server.Mobile, double)' hides the inherited member 'Server.Items.BaseWeapon.OnHit(Server.Mobile, Server.Mobile, double)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. Code:
The variable 'skillCode' is declared but never used ![]() Last edited by Ednyved; 08-01-2007 at 12:01 AM. |
|
|
|
|
|
#304 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Quote:
__________________
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:
|
|
|
|
|
|
|
#305 (permalink) |
|
Forum Novice
Join Date: Aug 2007
Age: 31
Posts: 120
|
I got this fully installed and it seems to be working perfectly with the exception of one detail:
I cannot get the stringers to do anything, I click on them, but get no option to use them. Am I doing something wrong? A couple other things I'd suggest: 1. Can you make the arrows become 'regular' arrows on the corpse, or preferably, have the explosive arrows not appear at all? 2. PPP, can you make this have a base increase to damage as well as contributing to the overall 'Perfect Shot' damage? This would make more sense and thus appeal to realism. 3. Is there any way to 'craft' the tubs for arrows? Would be quite interesting to add '*blank* venom' as an item type usable in crafting poison tubs. Even better if different critters poisons could contribute to different type of poisoned arrows. And lets not forget 'vegetable' and 'mineral' poisons. (Is a scary man who could make an art form out of complicating a simple system) If you feel up to it mate, I'd be happy to provide a set of potential ingredients for crafting items. Last edited by AodhanW; 08-07-2007 at 12:23 AM. |
|
|
|
|
|
#306 (permalink) |
|
Forum Expert
|
you're supposed to use the fletcher scissors to get the string off your bow and then double click the bow and then click on the stringer and you have restrung your bow.
the rest you can script. For the tubs being craftable, you can just look at the craft menus and add them where you want. The rest is interesting but more complicated. |
|
|
|
|
|
#307 (permalink) | |
|
Forum Novice
Join Date: Aug 2007
Age: 31
Posts: 120
|
Quote:
But.. I'm not sure how to use the crafting menus? Would you mind helpin' me out with this? More specifically, I'm just learning how to use this, and therefor am unsure as to where to modify the crafting menus. Your help is much appreciated. |
|
|
|
|
|
|
#308 (permalink) |
|
Forum Expert
|
just look at the craftmenu and then just copy and paste and change what you need.
Like the blacksmithing one Engines > Craft > DefBlacksmithy.cs Code:
AddCraft( typeof( RingmailGloves ), 1011076, 1025099, 12.0, 62.0, typeof( IronIngot ), 1044036, 10, 1044037 ); Code:
Synthax for a SIMPLE craft item AddCraft( ObjectType, Group, MinSkill, MaxSkill, RessourceType, Amount, Message ) ObjectType : The type of the object you want to add to the build list. Group : The group in wich the object will be showed in the craft menu. MinSkill : The minimum of skill value MaxSkill : The maximum of skill value RessourceType : The type of the ressource the mobile need to create the item Amount : The amount of the RessourceType it need to create the item Message : String or Int for Localized. The message that will be sent to the mobile, if the specified ressource is missing. ![]() |
|
|
|
|
|
#309 (permalink) | |
|
Forum Novice
Join Date: Aug 2007
Age: 31
Posts: 120
|
Quote:
Code:
AddCraft( typeof( RingmailGloves ), 1011076, 1025099, 12.0, 62.0, typeof( IronIngot ), 1044036, 10, 1044037 ); Code:
Synthax for a SIMPLE craft item AddCraft( ObjectType, Group, MinSkill, MaxSkill, RessourceType, Amount, Message ) ObjectType : Ringmail Group : Gloves MinSkill : 12.0 MaxSkill : 62.0 RessourceType : Ironingot Amount : 10 Message : 1044037 And, of course, the fact that there are those other numbers in there. "1011076, 1025099" and "1044036"... Whats up with those? |
|
|
|
|
|
|
#310 (permalink) |
|
Forum Novice
Join Date: Aug 2007
Age: 31
Posts: 120
|
Code:
AddCraft( typeof( RingmailGloves ), 1011076, 1025099, 12.0, 62.0, typeof( IronIngot ), 1044036, 10, 1044037 ); Code:
Synthax for a SIMPLE craft item AddCraft( ObjectType, Group, MinSkill, MaxSkill, RessourceType, Amount, Message ) ObjectType : Ringmail Group : Gloves MinSkill : 12.0 MaxSkill : 62.0 RessourceType : Ironingot Amount : 10 Message : 1044037 And, of course, the fact that there are those other numbers in there. "1011076, 1025099" and "1044036"... Whats up with those?[/quote] Alright, I'm sure others already know this, but I want to mention it anyway. Those 7 digit numbers are calls to the cliloc for system messages, and are part of the display for the Crafting Gump. Since I didn't recieve a response, I thought I'd give one instead. |
|
|
|
|
|
#311 (permalink) |
|
Forum Novice
Join Date: Mar 2006
Posts: 209
|
Wanted to ask, I cannot get skill bonus in attributes to work, archery does not reflect +3, any ideas why?, Or has anyone had this issue?
The system works fine, except for this minor set back?? Thankyou for any response in advance. |
|
|
|
|
|
#312 (permalink) |
|
Newbie
|
PHP Code:
This is the error we are getting we have tried everything worked for hours on this and keep going in circles we end up always with in the end this same error what do we do? |
|
|
|
|
|
#315 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
I apologize for my absence.
I have a butt load of IM's and emails to sort through. A lot of people have submitted their ideas and fixes. I would like to take the time to thank those people.... thank you everyone ![]() I am currently rescripting this system. For those that don't know... I have been scripting for another game to get an idea of what it is like to script outside of RunUO. I learned a wealth of information. I have matured. I have had many problems in my life recently and it has caused me to look at things differently. I am currently changing jobs and will be enrolling into school soon. My plans are to take 4 years of schooling for software engineering. I'm afraid that when I start school I will have no time for my current hobbies, so the time is now. Let's start fixing these systems and blowing new life into them. My first problem is my server is broke down. I will be doing this without a server and that sukz. I will have to setup my main comp to test these systems. That will take some time. I already use it for several other things. Second, I lost everything I was working on. I can't retrieve it and that blowz. I had some nice foundations set into place for the Mega Pack. But maybe that is a good thing. Maybe this is a new beginning for us ...full of fresh new ideas. Third, I'm far behind. I've been gone too long and need to update myself with what is going on currently. I don't even know what EA Games has done with UO recently. ... I'm looking over the scripts at the moment. This is the time to speak up. What are u'r ideas for the new release?
__________________
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:
Last edited by Lucid Nagual; 05-04-2008 at 06:14 AM. |
|
|
|
|
|
#318 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Posts: 155
|
Lucid, I installed this package today and absolutely love it. Thank you for creating it. On my shard, we use Fenn's Storage Keys, which can also be used to store arrows. I have attempted to modify BaseRanged.cs to pull arrows from both the quiver or storage keys (BaseStoreKey.Consumed). I have it working from the keys, but it no longer pulls from the Quiver. Here is the relevant OnHit section of the code:
Code:
{
//--<<Advanced Archery Edit>>---------------------[Start 3/4]
PlayerMobile a_pm = attacker as PlayerMobile;
Container pack = attacker.Backpack;
BaseQuiver quiver = attacker.FindItemOnLayer( Layer.MiddleTorso ) as BaseQuiver;
BaseRangedModule module = this.BaseRangedModule;
if ( !module.HasBowString )
{
if ( DateTime.Now >= m_NextStringWarning )
{
m_NextStringWarning = DateTime.Now + StringWarningDelay;
attacker.SendMessage( "You need a string to use this bow. See a local fletcher to apply the string." );
return false;
}
else
return false;
}
if ( Ammo == null )
{
if ( DateTime.Now >= m_NextAmmoWarning )
{
m_NextAmmoWarning = DateTime.Now + AmmoWarningDelay;
attacker.SendMessage( "You are out of ammo." );
return false;
}
else
return false;
}
if( attacker.Player && quiver != null && quiver.LowerAmmoCost > Utility.Random( 100 ) )
{
attacker.MovingEffect( defender, EffectID, 18, 1, false, false );
return true;
}
if( attacker.Player &&
( quiver == null || !quiver.ConsumeTotal( AmmoType, 1 ) ) &&
( pack == null || ( !pack.ConsumeTotal( AmmoType, 1 ) && !BaseStoreKey.Consume( pack, AmmoType, 1 ) ) ) )
return false;
attacker.MovingEffect( defender, EffectID, 18, 1, false, false );
return true;
//--<<Advanced Archery Edit>>---------------------[End 3/4]
}
, that it's just a small problem below the if(attacker.Player && area, but I'm stuck and thought I ask. If anyone has any thoughts, I would appreciate hearing them.Thanks, -GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much. Visit the Whispering Pines shard website at wp.dyndns.org |
|
|
|
|
|
#319 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 40
|
Here is our OnFired. See if it helps. ![]() Code:
public virtual bool OnFired(Mobile attacker, Mobile defender)
{
//--<<Advanced Archery Edit>>---------------------[Start 3/4]
PlayerMobile a_pm = attacker as PlayerMobile;
Container pack = attacker.Backpack;
BaseQuiver quiver = attacker.FindItemOnLayer(Layer.MiddleTorso) as BaseQuiver;
BaseRangedModule module = this.BaseRangedModule;
if (!module.HasBowString)
{
if (DateTime.Now >= m_NextStringWarning)
{
m_NextStringWarning = DateTime.Now + StringWarningDelay;
attacke |