[FIXED] Mondain's Legacy bows with wrong ammo

Here we stuff all the bugs we've managed to squash/squish/squelch.
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Mondain's Legacy bows with wrong ammo

Post by stranf »

Just like the Yumi in the past, the Mondain's legacy shortbow and longbow fire off crossbow bolts instead of arrows.

As I understand, this needs to be fixed via the sourcecode....

Thanks. :P
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Fixed on CVS. :)
-= Ho Eyo He Hum =-
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks Xu!

With Grimson busy, is there anyway I can get the CVS code compiled?

I've tried it before on my old computer (that had a C++ compiler), but it never worked.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Try this one: UOX3_17_02_2008.rar

Keep in mind the change previous to this one though, where onUse was split into two, if you haven't made that change to your scripts already:

Code: Select all

[color=orange]10/27/2007 - grimson[/color] 
   Split onUse into onUseChecked and onUseUnChecked.
-= Ho Eyo He Hum =-
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks for the heads up.

I have crimson Editor now. I'm going to check and see if I can quickly change all my scripts before I officially update.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Xuri,

I changed my scripts and uploaded the new .exe.

The new bows DO shoot arrows. There is just one more problem.

When you shoot at an archery butte it says "You must use a bow". In archerybutte.js is simply calls a "weapontype" function and returns either BOWS or XBOWS.

I'm not sure how to fix that issue. It isn't a big deal, and the bows work perfectly other than that. Thanks.
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

To fix that problem go into weapontypes.js open its and Search for Bows you will see this

// Bows
case 0x13B1: //bow
case 0x13B2: //bow
case 0x26C2: //composite bow - AoS
case 0x26CC: //composite bow - AoS
case 0x2571: //horseman's bow - LBR
weaponType = "BOWS"; break;
// Crossbows
case 0x0F4F: //crossbow
case 0x0F50: //crossbow
case 0x13FC: //heavy crossbow
case 0x13FD: //heavy crossbow
case 0x26C3: //repeating crossbow - AoS
case 0x26CD: //repeating crossbow - AoS
case 0x27A5: //yumi - SE
case 0x27F0: //yumi - SE
//case 0x27AA: //fukiya - SE - Blowgun, uses Dart ammo (0x2806 or 0x2804)
//case 0x27F5: //fukiya - SE - Blowgun, uses Dart ammo (0x2806 or 0x2804)
weaponType = "XBOWS"; break;


Add in the ids and name of your new bows that will fix all problems with ML and SE bows not less you got lastest build that has it added :)
Post Reply