jeff
Member
Hello,
I am having a couple issues with the Archery Butte.
I am using the script from the Repo without any modification.
When I use the archery butte with an archery weapon it crashes, however with a throwing weapon it works.
At first when i used an archery weapon I would get the message "You must practice with ranged weapons on this."
On line around line 137 I found this line :
Since you cannot equip both a archery and a throwing weapon at the same time, in my mind this will always evaluate to true.
Yet throwing weapons seem to work. I am hoping someone out there can help me understand why.
Anyway I went ahead and changed it to what I suspect is correct.
After making this change the throwing weapons still work and now the Archery weapons also can get past this statement.
However the sever crashes. Through the process of commenting out lines I have determined my issue is around line 208
Specifically the error is related to !from.CheckSkill(bow.Skill
I substituted the values from earlier in the file in place of the m_Min and Max skills. and it still crashes.
Puzzling to me is that around line 224 is a nearly identical line for Throwing instead of Archery.
And as I said the throwing weapons work.
I have attached my file but as I said it is same as in the Repo.
Here is the crash log:
Please any help and or guidance will be greatly appreciated.
I am having a couple issues with the Archery Butte.
I am using the script from the Repo without any modification.
When I use the archery butte with an archery weapon it crashes, however with a throwing weapon it works.
At first when i used an archery weapon I would get the message "You must practice with ranged weapons on this."
On line around line 137 I found this line :
Code:
if (bow == null || trow == null)
Since you cannot equip both a archery and a throwing weapon at the same time, in my mind this will always evaluate to true.
Yet throwing weapons seem to work. I am hoping someone out there can help me understand why.
Anyway I went ahead and changed it to what I suspect is correct.
Code:
if (bow == null && trow == null)
After making this change the throwing weapons still work and now the Archery weapons also can get past this statement.
However the sever crashes. Through the process of commenting out lines I have determined my issue is around line 208
Code:
if (!from.CheckSkill(bow.Skill, this.m_MinSkill, this.m_MaxSkill))
Specifically the error is related to !from.CheckSkill(bow.Skill
I substituted the values from earlier in the file in place of the m_Min and Max skills. and it still crashes.
Puzzling to me is that around line 224 is a nearly identical line for Throwing instead of Archery.
And as I said the throwing weapons work.
I have attached my file but as I said it is same as in the Repo.
Here is the crash log:
Code:
RunUO Version 0.5, Build 5232.35213
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
.NET Framework: 4.0.30319.18444
Time: 5/9/2014 3:32:38 AM
Mobiles: 24395
Items: 211455
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.ArcheryButte.Fire(Mobile from)
at Server.Items.ArcheryButte.OnDoubleClick(Mobile from)
at Server.Mobile.Use(Item item) in c:\UO\ServUO\Server\Mobile.cs:line 4455
at Server.Engines.XmlSpawner2.XmlAttach.UseReq(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns) in c:\UO\ServUO\Server\Network\MessagePump.cs:line 303
at Server.Network.MessagePump.Slice() in c:\UO\ServUO\Server\Network\MessagePump.cs:line 121
at Server.Core.Main(String[] args) in c:\UO\ServUO\Server\Main.cs:line 622
Clients:
- Count: 1
+ 127.0.0.1: (account = Jeffry) (mobile = 0x4 'jgh')
Please any help and or guidance will be greatly appreciated.