RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RC2] Lucid's <<_Advanced Archery_>>

[RC2] Lucid's <<_Advanced Archery_>>

Lucid Nagual's
:<0>-<>--<-<< 0 >>->--<>-<0>:
Advanced Archery

Version 4.0
[RC2]

(Under Construction)
 

Attachments

  • [RC2] Advanced Archery 4.0.zip
    88.9 KB · Views: 436

Thagoras

Sorceror
It's been a while since I had a chance to play with my server, so I don't entirely know how far I got fixing this script, but I'm currently getting an error about the Type or Namespace "Module" in the BaseRangedModule.cs, lines 33 and 117 and PlayerModule.cs, lines 49 and 699.

I'm using RunUO 2, RC2 I believe (whatever the most recent release is)
 

Firewolf18

Sorceror
Lucid Nagual;754533 said:
Lucid Nagual's
:<0>-<>--<-<< 0 >>->--<>-<0>:
Advanced Archery

Version 4.0
[RC2]

(Under Construction)

Perfect only 1 question Why when i hit other player or monster:
1- My Hit : (Example 20)
2- Bonus???: (Example 6 to 25) <- ?? where can i delete this bonus?
3-ArrowSpecial: (example Explosionarrow 30)
 

September

Sorceror
Yesssss!

Yessssssssss I been waiting for this!

Off To test, ok Tried just dropping like you said and came out with lots of errors it put basequiver and elverquiver into ML customs, and then had duplicates. So will try to replace those adn see what happens next.
 
I get this error

RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Custom/Lucid's Systems/Advanced Archery/Items/Quivers/ElvenQuiver.cs:
CS0127: Line 50: Since 'Server.Items.ElvenQuiver.OnRemoved(object)' returns
void, a return keyword must not be followed by an object expression
+ Custom/Lucid's Systems/Advanced Archery/Items/Quivers/UltimateQuiver.cs:
CS0127: Line 50: Since 'Server.Items.UltimateQuiver.OnRemoved(object)' retur
ns void, a return keyword must not be followed by an object expression
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

how to fix it?
 

Firewolf18

Sorceror
Hell Patrol.oristano;809937 said:
I get this error

RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Custom/Lucid's Systems/Advanced Archery/Items/Quivers/ElvenQuiver.cs:
CS0127: Line 50: Since 'Server.Items.ElvenQuiver.OnRemoved(object)' returns
void, a return keyword must not be followed by an object expression
+ Custom/Lucid's Systems/Advanced Archery/Items/Quivers/UltimateQuiver.cs:
CS0127: Line 50: Since 'Server.Items.UltimateQuiver.OnRemoved(object)' retur
ns void, a return keyword must not be followed by an object expression
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

how to fix it?

I have this Script And Work Perfect whit this error only delete in elvenquiver and ultimatequiver 2 lines OnRemoved and work perfect =)
 

joshw

Sorceror
ok so i downloaded the zip file but when i go to unzip it its giving me a unreconizeable file type not a scrit
 

Hammerhand

Knight
joshw;813915 said:
ok so i downloaded the zip file but when i go to unzip it its giving me a unreconizeable file type not a scrit
Ok, open the folder it gives you and then add .zip to the end of the name of the file. Then, just unrar it and you should have the scripts in the folder. The site has been dbl zipping scripts for a while now. Try that and see if that works for you.
 

dagger lad

Wanderer
Problemos

Here is the rror I am getting with this.

Code:
+ Items/Weapons/Ranged/BaseRanged.cs:
   CS0506: Line 172: 'Server.Items.BaseRanged.OnHit(Server.Mobile, Server.Mobil
)': cannot override inherited member 'Server.Items.BaseWeapon.OnHit(Server.Mobi
e, Server.Mobile)' because it is not marked virtual, abstract, or override

Any help?

EDIT: Never mind, I fixed it. lol
 

dagger lad

Wanderer
Everything seems to be working except I cant see any of the effect of the arrows or bolts? AM I missing something here?

EDIT: Sorry I double posted and then double edited. I figured it all out.
 
dagger lad;819768 said:
Code:
+ Items/Weapons/Ranged/BaseRanged.cs:
   CS0506: Line 172: 'Server.Items.BaseRanged.OnHit(Server.Mobile, Server.Mobil
)': cannot override inherited member 'Server.Items.BaseWeapon.OnHit(Server.Mobi
e, Server.Mobile)' because it is not marked virtual, abstract, or override
I'm getting the same Error, but no idea what is wrong...Any suggestions?
 
O, I was able to fix this with setting it to "virual" instead of "override", but it seems, that there are still problems (not with compiling, that works now without errors) because shooting on targets does not work or, sometimes with a really nasty delay.
Also it seems that consumption of ammo is buggy, sometimes all arrows disappear, sometimes i get multiple hits on the target ond sometimes...nothing happens, not even ammo consumption...
I really ran out of ideas...
Does anyone have a working system of this and can give some hints what may need to be fixed?
 

jamesreg

Sorceror
Ok,
slowly but surely I am getting all of my favororite programs to work in my obs copy.
Which is making me more and more happy every day.

I managed to sit though each and ever compile error and get all the scripts converted then got done
to the Icommodity error In each of the arrow scripts I changed the code in each of the scripts to reflect
the new codebase for Icommodity in recent svn additions. but I am still getting an error am I doing the wrong
updates.

Here is a sniplet of Lucids code for this area of the script
Code:
namespace Server.Items
{
    public class PoisonArrow : Arrow, ICommodity
    {
        string ICommodity.Description
        {
            get
            {
                return String.Format( Amount == 1 ? "{0} poison arrow" : "{0} poison arrows", Amount );
            }
        }
 
        [Constructable]
        public PoisonArrow() : this( 1 )
        {
        }
 
        [Constructable]
        public PoisonArrow( int amount ) : base( 0xF3F )
        {
            Stackable = true;
            Name = "Poisoned Arrow";
            Hue = 68;
            Weight = 0.1;
            Amount = amount;
        }

And here is my changes that I thought was correct

Code:
using System;
 
namespace Server.Items
{
    public class ArmorPiercingArrow : Arrow, ICommodity
    {
   
 
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
 
        public override double DefaultWeight
        {
            get { return 0.1; }
        }
 
        [Constructable]
        public ArmorPiercingArrow() : this( 1 )
        {
        }
 
        [Constructable]
        public ArmorPiercingArrow( int amount ) : base( 0xF3F )
        {
            Stackable = true;
            Name = "Armor Piercing Arrow";
            Hue = 1153;
            Weight = 0.1;
            Amount = amount;
        }

and finally here is the error code eighter way I go that I am getting

Code:
Errors:
+ customs/Advanced Archery/Lucid's Systems/Advanced Archery/Items/Bolts/ArmorPi
ercingBolt.cs:
    CS0539: Line 24: 'ICommodity.Description' in explicit interface declaration
is not a member of interface
+ customs/Advanced Archery/Lucid's Systems/Advanced Archery/Items/Bolts/Explosi
veBolt.cs:
    CS0539: Line 24: 'ICommodity.Description' in explicit interface declaration
is not a member of interface
+ customs/Advanced Archery/Lucid's Systems/Advanced Archery/Items/Bolts/FreezeB
olt.cs:
    CS0539: Line 27: 'ICommodity.Description' in explicit interface declaration
is not a member of interface
+ customs/Advanced Archery/Lucid's Systems/Advanced Archery/Items/Bolts/Lightni
ngsBolt.cs:
    CS0539: Line 24: 'ICommodity.Description' in explicit interface declaration
is not a member of interface
+ customs/Advanced Archery/Lucid's Systems/Advanced Archery/Items/Bolts/PoisonB
olt.cs:
    CS0539: Line 24: 'ICommodity.Description' in explicit interface declaration
is not a member of interface


Thank you in if by chance anyone has done this for 2.2 or for orbs eighter one and would not mine sharing thier baseranged.cs file to compare it was the hardest one in here for me to merge id like to see if i got it right
 

Attachments

  • ArmorPiercingArrow.cs
    1.4 KB · Views: 2

Jay Randolph

Traveler
Has anyone got this working for runuo 2.2 yet? I got it installed and it will compile but a couple of the problems I am having now are I cant put the custom arrows in any quiver, I cant shoot the custom arrows from any bow. I can't get the new string on the bow either. I know it is probably base quiver and base ranged but I am not sure. If anyone has this working for RunUO 2.2 that can assist it would be greatly appreciated.
 

Jay Randolph

Traveler
OK I can change the arrow and bolt types using the dip tubs, I can restring bows using the fletchers scissors, all the custom strings work, the gumps show like they are supposed to, but I cant shoot any of the custom arrows or bows and I can't place them in any quiver.
 

peepeetree

Sorceror
If anyone gets this working you will be my hero, this was one of the mods that was being worked on when I stopped using RunUO years ago and I would LOVE to add this to my server.
 
Top