[APPROVED] Bamboo Flute

Want to contribute to the Ultima Offline eXperiment? Submit your JS/DFN/Code fixes and/or other UOX3 improvements here!
Locked
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Bamboo Flute

Post by dragon slayer »

in the musicianship.js

add this after Lute

Code: Select all

	case 0x2805:	// Bamboo Flute
		if( wellPlayed )
			soundID = 0x504;
		else
			soundID = 0x503;
		break;
In the enticement.js

find this
switch( toCheck.id )
{
case 0x0E9C:
case 0x0E9D:
case 0x0E9E:
case 0x0EB1:
case 0x0EB2:
case 0x0EB3:
case 0x0EB4:

add this line after the last case

Code: Select all

				case 0x2805:
then go down to PlayInstrument and add this code

Code: Select all

	case 0x2805:	// Bamboo Flute
		if( wellPlayed )
			soundID = 0x504;
		else
			soundID = 0x503;
		break;
Okay go and open peacemaking.js
find GetInstrument then find this line case 0x0EB4:

add this code after that line

Code: Select all

				case 0x2805:
find PlayInstrument

add this code

Code: Select all

	case 0x2805:	// Bamboo Flute
		if( wellPlayed )
			soundID = 0x504;
		else
			soundID = 0x503;
		break;
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 »

This is now included on the UOX3 CVS. I also added DFN entries for it, as well as entries in jse_objectassociations.scp.
-= Ho Eyo He Hum =-
Locked