[APPROVED] cutting up hides into leather

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

cutting up hides into leather

Post by dragon slayer »

Go into your js scripts and open up scissors. after they last part of scissors cutting bandages add this line of code and you will have some nice working hide and leathers :)

Code: Select all

			else if( tileID >= 4216 && tileID <= 4217 ) // <-- Decimal item-ids
			{ //Cut up the leather into hides
				pSock.SysMessage( "You cut the material into leather and place it in your backpack." );
				var itemMade = CreateDFNItem( pSock, pUser, "0x1081", myTarget.amount, "ITEM", true );  //give the player some hides
				myTarget.Delete();
				return;
			}
Last edited by dragon slayer on Wed Nov 30, 2011 8:01 pm, edited 1 time in total.
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 »

I think some context might be needed for this one, as it might not be obvious where to add this, in what script, etc. to someone who comes and looks at this post a year from now :)
-= Ho Eyo He Hum =-
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 »

oh yeah hehe my bad
Post Reply