my script crash

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

my script crash

Post by dragon slayer »

here is the script causing the crash

Code: Select all

function onUseChecked( pUser, iUsed )
{
      var socket = pUser.socket;
      targX = socket.GetWord( 11 );
      targY = socket.GetWord( 13 ); 
      targZ = socket.GetSByte( 16 ) + GetTileHeight( socket.GetWord( 17 ) ); 
      var itemFound = FindItem( targX, targY, targZ, pUser.worldnumber, 0x0faf );
      if( itemFound && itemFound.InRange(pUser,3))
      {
             if( socket && iUsed && iUsed.isItem )
             {
                iUsed.health -= 1;
                if(iUsed.health == 0)
                {
                  iUsed.Delete();
                  pUser.SysMessage( "You have worn out your tool!" );
	          return false;
                }
                else
		  socket.tempObj = iUsed;
		  var targMsg = GetDictionaryEntry( 445, socket.Language );
		  socket.CustomTarget( 1, targMsg );
             }
             return false;
      }
      else
        socket.SysMessage( "You must be near an anvil and a forge to smith items." );
	 return false;
}

function onCallback1( socket, ourObj )
{
      var bItem = socket.tempObj;
      var mChar = socket.currentChar;

	if( mChar && mChar.isChar && bItem && bItem.isItem )
	{
		if( !ourObj || !ourObj.isItem )
		{
			socket.SysMessage( GetDictionaryEntry( 979, socket.Language ) );
			return;
		}

		var resID = ourObj.id;
		if( resID == 0x1BF2 || resID == 0x1BEF ) 	// Is it a valid blacksmithing resource?
		{
			var ownerObj = GetPackOwner( ourObj, 0 );
			if( ownerObj && mChar.serial == ownerObj.serial )
                        {
                                var myGump = new Gump; // create a new gump 
				myGump.AddPage(0);
				myGump.AddBackground( 0, 0, 585, 393, 5054  );		// Tile Gray Background
				myGump.AddBackground( 194, 36,386, 275, 3000 );		// Tile White Bacground
				myGump.AddHTMLGump( 60, 339, 160, 25, 0, 0, "OKAY" );
				myGump.AddHTMLGump( 60, 359, 160, 25, 0, 0, "CANCEL" );
				myGump.AddHTMLGump( 178, 4, 160, 25, 0, 0,  "Blacksmithy Selection Menu" );
				myGump.AddButton( 26, 335, 0xfa5, 1, 0, 1 );		// Button - OKAY
				myGump.AddButton( 26, 356, 0xfa5, 1, 0, 0 );           // Button - CANCEL
				myGump.AddBackground( 2, 32, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 35, 149, 25, 0, 0, "Ringmail" );
				myGump.AddBackground( 2, 57, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 60, 149, 25, 0, 0, "Chainmail" );
				myGump.AddBackground( 2, 82, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 85, 149, 25, 0, 0, "Platemail" );
				myGump.AddBackground( 2, 107, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 110, 149, 25, 0, 0, "Helmets" );
				myGump.AddBackground( 2, 132, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 135, 149, 25, 0, 0, "Shields" );
				myGump.AddBackground( 2, 157, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 160, 149, 25, 0, 0, "Bladed" );
				myGump.AddBackground( 2, 182, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 185, 149, 25, 0, 0, "Axes" );
				myGump.AddBackground( 2, 207, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 210, 149, 25, 0, 0, "Pole Arms" );
				myGump.AddBackground( 2, 232, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 235, 149, 25, 0, 0, "Bashing" );
				myGump.AddBackground( 2, 257, 149, 25, 3000 );
				myGump.AddHTMLGump( 5, 260, 149, 25, 0, 0, "Dragon Scale Armor" );
				myGump.AddButton( 156, 36, 0xfa5, 0, 1, 0 );		// Button - Ringmail
				myGump.AddButton( 156, 61, 0xfa5, 0, 2, 0 );		// Button - Chainmail
				myGump.AddButton( 156, 86, 0xfa5, 0, 3, 0 );		// Button - Platemail
				myGump.AddButton( 156, 111, 0xfa5, 0, 4, 0 );		// Button - Helmets
				myGump.AddButton( 156, 136, 0xfa5, 0, 5, 0 );		// Button - Shields
				myGump.AddButton( 156, 161, 0xfa5, 0, 6, 0 );		// Button - Bladed
				myGump.AddButton( 156, 186, 0xfa5, 0, 7, 0 );		// Button - Axes
				myGump.AddButton( 156, 211, 0xfa5, 0, 8, 0 );		// Button - Pole Arms
				myGump.AddButton( 156, 236, 0xfa5, 0, 9, 0 );		// Button - Bashing
				myGump.AddButton( 156, 261, 0xfa5, 0, 10, 0 );		// Button - Dragon Scale Armor

				myGump.AddHTMLGump( 228, 315, 160, 25, 0, 0, "BRONZE" );
				myGump.AddButton( 196, 315, 0xfa5, 1, 0, 2 );		// Button - Bronze
				myGump.AddHTMLGump( 228, 335, 160, 25, 0, 0, "COPPER" );
				myGump.AddButton( 196, 335, 0xfa5, 1, 0, 0 );		// Button - Copper
				myGump.AddHTMLGump( 228, 355, 160, 25, 0, 0, "AGAPITE" );
				myGump.AddButton( 196, 355, 0xfa5, 1, 0, 0 );		// Button - Agapite

				myGump.AddHTMLGump( 312, 315, 160, 25, 0, 0, "DULL COPPER" );
				myGump.AddButton( 280, 315, 0xfa5, 1, 0, 2 );		// Button -DULL COPPER 
				myGump.AddHTMLGump( 312, 335, 160, 25, 0, 0, "GOLD" );
				myGump.AddButton( 280, 335, 0xfa5, 1, 0, 0 );		// Button - GOLD
				myGump.AddHTMLGump( 312, 355, 160, 25, 0, 0, "SHADOW IRON" );
				myGump.AddButton( 280, 355, 0xfa5, 1, 0, 0 );		// Button - SHADOW IRON

				myGump.AddHTMLGump( 432, 315, 160, 25, 0, 0, "VALORITE" );
				myGump.AddButton( 400, 315, 0xfa5, 1, 0, 2 );		// Button - VALORITE
				myGump.AddHTMLGump( 432, 335, 160, 25, 0, 0, "VERITE" );
				myGump.AddButton( 400, 335, 0xfa5, 1, 0, 0 );		// Button - VERITE
				myGump.AddHTMLGump( 432, 355, 160, 25, 0, 0, "MORE" );
				myGump.AddButton( 400, 355, 0xfa5, 1, 0, 0 );		// Button - MORE

				myGump.AddPage(1);//Ringmail
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Ringmail Gloves" );
				myGump.AddPicture( 213, 67, 0x13f2 );			// Ringmail Gloves Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Ringmail Legs" );
				myGump.AddPicture( 342, 67, 0x13f0 );			// Ringmail Legs Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Ringmail Arms" );
				myGump.AddPicture( 480, 53, 0x13ee );			// Ringmail Arms Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 2 );		        // Radio for Ringmail Gloves
				myGump.AddRadio( 327, 62, 0xd2, 0, 3 );	                // Radio for Ringmail Legs
				myGump.AddRadio( 456, 62, 0xd2, 0, 4 );	                // Radio for Ringmail Arms
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Ringmail Chest" );
				myGump.AddPicture( 220, 128, 0x13ec );			// Ringmail Chest Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 5 );	        // Radio for Ringmail Chest

				myGump.AddPage(2);//Chainmail
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Chain Coif" );
				myGump.AddPicture( 217, 61, 0x13bb );			// Chain Coif Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Chain Legs" );
				myGump.AddPicture( 348, 70, 0x13be );			// Chain Legs Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Chain Chest" );
				myGump.AddPicture( 470, 58, 0x13bf );			// Chain Chest Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 6 );	// Radio for Chain Coif
				myGump.AddRadio( 327, 62, 0xd2, 0, 7 );	// Radio for Chain Legs
				myGump.AddRadio( 456, 62, 0xd2, 0, 8 );	// Radio for Chain Chest

				myGump.AddPage(3);//Platemail
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Plate Arms" );
				myGump.AddPicture( 213, 67, 0x1410 );			// PlateArms Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Plate Gloves" );
				myGump.AddPicture( 342, 67, 0x1414 );			// PlateGloves Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Plate Gorget" );
				myGump.AddPicture( 480, 67, 0x1413 );			// PlateGorget Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 9 );	// Radio for PlateArms
				myGump.AddRadio( 327, 62, 0xd2, 0, 10 );	// Radio for PlateGloves
				myGump.AddRadio( 456, 62, 0xd2, 0, 11 );	// Radio for PlateGorget
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Plate Legs" );
				myGump.AddPicture( 220, 140, 0x1411 );			// Plate Legs Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "Plate Chest" );
				myGump.AddPicture( 347, 140, 0x1415 );			// Plate Chest Image
				myGump.AddHTMLGump( 456, 109, 149, 25, 0, 0, "Female Plate Chest" );
				myGump.AddPicture( 476, 125, 0x1c04 );	 		// Female Plate Chest Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 12 );	// Radio for Plate Legs
				myGump.AddRadio( 327, 129, 0xd2, 0, 13 );	// Radio for Plate Chest
				myGump.AddRadio( 456, 129, 0xd2, 0, 14 );	// Radio for FemalePlateChest

				myGump.AddPage(4);//Helmets
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Bascinet" );
				myGump.AddPicture( 217, 72, 0x140c );			// Bascinet Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Close Helm" );
				myGump.AddPicture( 345, 67, 0x1408 );			// CloseHelm Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Helmet" );
				myGump.AddPicture( 480, 71, 0x140a );			// Helmet Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 15 );	// Radio for Bascinet
				myGump.AddRadio( 327, 62, 0xd2, 0, 16 );	// Radio for CloseHelm
				myGump.AddRadio( 456, 62, 0xd2, 0, 17 );	// Radio for Helmet
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Norse Helm" );
				myGump.AddPicture( 220, 140, 0x140e );			// Norse Helm Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "Plate Helm" );
				myGump.AddPicture( 353, 136, 0x1419 );			// Plate Helm Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 18 );	// Radio for Norse Helm
				myGump.AddRadio( 327, 129, 0xd2, 0, 19 );	// Radio for Plate Helm


				myGump.AddPage(5 );//Shields
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Buckler" );
				myGump.AddPicture( 180, 64, 0x1b73 );			// Buckler Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Bronze Shield" );
				myGump.AddPicture( 350, 70, 0x1b72 );			// Bronze Shield Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Heater Shield" );
				myGump.AddPicture( 450, 71, 0x1b76 );			// Heater Shield Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 20 );	// Radio for Buckler
				myGump.AddRadio( 327, 62, 0xd2, 0, 21 );	// Radio for Bronze Shield
				myGump.AddRadio( 456, 62, 0xd2, 0, 22 );	// Radio for Heater Shield
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Metal Shield" );
				myGump.AddPicture( 190, 140, 0x1b7b );			// Metal Shield Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 23 );	// Radio for Metal Shield
				//MetalKiteShield 0x1b74 24
				//WoodenKiteShield 0x1b78 25

				myGump.AddPage(6);//Bladed
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Broadsword" );
				myGump.AddPicture( 213, 67, 0x0f61 );			// Broadsword Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Cutlass" );
				myGump.AddPicture( 326, 55, 0x1441 );			// Cutlass Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Dagger" );
				myGump.AddPicture( 480, 73, 0x0f51 );			// Dagger Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 26 );	// Radio for Broadsword
				myGump.AddRadio( 327, 62, 0xd2, 0, 27 );	// Radio for Cutlass
				myGump.AddRadio( 456, 62, 0xd2, 0, 28 );	// Radio for Dagger
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Katana" );
				myGump.AddPicture( 220, 150, 0x13ff );			// Katana Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "Kryss" );
				myGump.AddPicture( 347, 150, 0x1401 );			// Kryss Image
				myGump.AddHTMLGump( 456, 109, 149, 25, 0, 0, "Longsword" );
				myGump.AddPicture( 476, 150, 0x0f61 );	 		// Longsword Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 29 );	// Radio for Katana
				myGump.AddRadio( 327, 129, 0xd2, 0, 30 );	// Radio for Kryss
				myGump.AddRadio( 456, 129, 0xd2, 0, 31 );	// Radio for Longsword
				myGump.AddHTMLGump( 197, 178, 149, 25, 0, 0, "Scimitar" );
				myGump.AddPicture( 220, 200, 0x13b6 );			// Scimitar Image
				myGump.AddHTMLGump( 327, 178, 149, 25, 0, 0, "Viking Sword" );
				myGump.AddPicture( 350, 200, 0x13b9 );			// Viking Sword Image
				myGump.AddRadio( 197, 199, 0xd2, 0, 32 );	// Radio for Scimitar
				myGump.AddRadio( 327, 199, 0xd2, 0, 33 );	// Radio for Viking Sword

				myGump.AddPage(7);//Axes
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Axe" );
				myGump.AddPicture( 220, 67, 0x0f49 );			// Axe Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Battle Axe" );
				myGump.AddPicture( 352, 67, 0x0f47 );			// BattleAxe Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Double Axe" );
				myGump.AddPicture( 480, 67, 0x0f4b );			// Double Axe Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 34 );	// Radio for Axe
				myGump.AddRadio( 327, 62, 0xd2, 0, 35 );	// Radio for Battle Axe
				myGump.AddRadio( 456, 62, 0xd2, 0, 36 );	// Radio for Double Axe
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Executioners Axe" );
				myGump.AddPicture( 220, 140, 0x0f45 );			// Executioners Axe Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "Large Battle Axe" );
				myGump.AddPicture( 352, 140, 0x13fb );			// Large Battle Axe Image
				myGump.AddHTMLGump( 456, 109, 149, 25, 0, 0, "Two Handed Axe" );
				myGump.AddPicture( 480, 140, 0x1443 );	 		// Two Handed Axe Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 37 );	// Radio for Executioners Axe
				myGump.AddRadio( 327, 129, 0xd2, 0, 38 );	// Radio for Large Battle Axe
				myGump.AddRadio( 456, 129, 0xd2, 0, 39 );	// Radio for Two Handed Axe
				myGump.AddHTMLGump( 197, 178, 149, 25, 0, 0, "War Axe" );
				myGump.AddPicture( 220, 207, 0x13b0 );			// WarAxe Image
				myGump.AddRadio( 197, 199, 0xd2, 0, 40 );	// Radio for War Axe

				myGump.AddPage(8);//Pole Arms
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Bardiche" );
				myGump.AddPicture( 220, 67, 0x0f4d );			// Bardiche Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Halberd" );
				myGump.AddPicture( 352, 67, 0x143f );			// Halberd Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Short Spear" );
				myGump.AddPicture( 480, 67, 0x1403 );			// Short Spear Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 41 );	// Radio for Bardiche
				myGump.AddRadio( 327, 62, 0xd2, 0, 42 );	// Radio for Halberd
				myGump.AddRadio( 456, 62, 0xd2, 0, 43 );	// Radio for Short Spear
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Spear" );
				myGump.AddPicture( 220, 140, 0x0f62 );			// Spear Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "WarFork" );
				myGump.AddPicture( 352, 140, 0x1405 );			// WarFork Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 44 );	// Radio for Spear
				myGump.AddRadio( 327, 129, 0xd2, 0, 45 );	// Radio for WarFork

				myGump.AddPage(9);//Bashing
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Hammer Pick" );
				myGump.AddPicture( 220, 67, 0x143d );			// HammerPick Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Mace" );
				myGump.AddPicture( 352, 67, 0x0f5c );			// Mace Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Maul" ); 		// Loom (E)
				myGump.AddPicture( 480, 67, 0x143b );			// Maul Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 46 );	// Radio for HammerPick
				myGump.AddRadio( 327, 62, 0xd2, 0, 47 );	// Radio for Mace
				myGump.AddRadio( 456, 62, 0xd2, 0, 48 );	// Radio for Maul
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "War Mace" );
				myGump.AddPicture( 220, 140, 0x1407 );			// WarMace Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "War Hammer" );
				myGump.AddPicture( 352, 140, 0x1439 );			// WarHammer Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 49 );	// Radio for WarMace
				myGump.AddRadio( 327, 129, 0xd2, 0, 50 );	// Radio for WarHammer

				myGump.AddPage(10);//Dragon Scale Armor
				myGump.AddHTMLGump( 197, 41, 149, 25, 0, 0, "Dragon Gloves" );
				myGump.AddPicture( 220, 67, 5360 );			// DragonGloves Image
				myGump.AddHTMLGump( 327, 41, 149, 25, 0, 0, "Dragon Helm" );
				myGump.AddPicture( 352, 67, 5360 );			// DragonHelm Image
				myGump.AddHTMLGump( 456, 41, 149, 25, 0, 0, "Dragon Legs" );
				myGump.AddPicture( 480, 67, 5360 );			// DragonLegs Image
				myGump.AddRadio( 197, 62, 0xd2, 0, 51 );	// Radio for DragonGloves
				myGump.AddRadio( 327, 62, 0xd2, 0, 52 );	// Radio for DragonHelm
				myGump.AddRadio( 456, 62, 0xd2, 0, 53 );	// Radio for DragonLegs
				myGump.AddHTMLGump( 197, 109, 149, 25, 0, 0, "Dragon Arms" );
				myGump.AddPicture( 220, 140, 5360 );			// DragonArms Image
				myGump.AddHTMLGump( 327, 109, 149, 25, 0, 0, "Dragon Chest" );
				myGump.AddPicture( 352, 140, 5360 );			// DragonChest Image
				myGump.AddRadio( 197, 129, 0xd2, 0, 54 );	// Radio for DragonArms
				myGump.AddRadio( 327, 129, 0xd2, 0, 55 );	// Radio for DragonChest
                                myGump.Send( mChar ); // send this gump to client now 
                                myGump.Free(); // clear this gump from uox-memory 
                                return false; 
                         }
			 else
				socket.SysMessage( GetDictionaryEntry( 978, socket.Language ) );
		}
		else
			socket.SysMessage( "You can't make anything from that material." );
	}
}

function onGumpPress( pSock, pButton, gumpData )
{
	var pUser = pSock.currentChar;
	switch(pButton)
	{
		case 0:
			// abort and do nothing
			break;
		case 1:
                        var OtherButton = gumpData.getButton(0);
			switch( OtherButton )
			{ 
				case 2:
                                        MakeItem( pSock, pUser, 7 );
              				break;//Ringmail Gloves
				case 3:
                                        MakeItem( pSock, pUser, 9 );
              				break;//Ringmail Legs
				case 4:
                                        MakeItem( pSock, pUser, 8 );
              				break;//Ringmail Arms
				case 5:
                                        MakeItem( pSock, pUser, 10 );
              				break;//Ringmail Chest
				case 6:
                                        MakeItem( pSock, pUser, 11 );
              				break;//Chain Coif
				case 7:
                                        MakeItem( pSock, pUser, 12 );
              				break;//Chain Legs
				case 8:
                                        MakeItem( pSock, pUser, 13 );
              				break;//Chain Chest
				case 9:
                                        MakeItem( pSock, pUser, 16 );
              				break;//Plate Arms
				case 10:
                                        MakeItem( pSock, pUser, 15 );
              				break;//Plate Gloves
				case 11:
                                        MakeItem( pSock, pUser, 14 );
              				break;//Plate Gorget
				case 12:
                                        MakeItem( pSock, pUser, 17 );
              				break;//Plate Legs
				case 13:
                                        MakeItem( pSock, pUser, 18 );
              				break;//Plate Chest
				case 14:
                                        MakeItem( pSock, pUser, 19 );
              				break;//Female Plate Chest
				case 15:
                                        MakeItem( pSock, pUser, 46 );
              				break;//Bascinet
				case 16:
                                        MakeItem( pSock, pUser, 48 );
              				break;//Close Helm
				case 17:
                                        MakeItem( pSock, pUser, 45 );
              				break;//Helmet
				case 18:
                                        MakeItem( pSock, pUser, 47 );
              				break;//Norse Helm
				case 19:
                                        MakeItem( pSock, pUser, 49 );
              				break;//Plate Helm
				case 20:
                                        MakeItem( pSock, pUser, 367 );
              				break;//Buckler
				case 21:
                                        MakeItem( pSock, pUser, 2 );
              				break;//Bronze Shield
				case 22:
                                        MakeItem( pSock, pUser, 6 );
              				break;//Heater Shield
				case 23:
                                        MakeItem( pSock, pUser, 3 );
              				break;//Metal Shield
				case 24:
                                        MakeItem( pSock, pUser, 5 );
              				break;//MetalKiteShield
				case 25:
                                        MakeItem( pSock, pUser, 4 );
              				break;//WoodenKiteShield
				case 26:
                                        MakeItem( pSock, pUser, 25 );
              				break;//Broadsword
				case 27:
                                        MakeItem( pSock, pUser, 21 );
              				break;//Cutlass
				case 28:
                                        MakeItem( pSock, pUser, 20 );
              				break;//Dagger
				case 29:
                                        MakeItem( pSock, pUser, 22 );
              				break;//Katana
				case 30:
                                        MakeItem( pSock, pUser, 23 );
              				break;//Kryss
				case 31:
                                        MakeItem( pSock, pUser, 26 );
              				break;//Longsword
				case 32:
                                        MakeItem( pSock, pUser, 24 );
              				break;//Scimitar
				case 33:
                                        MakeItem( pSock, pUser, 27 );
              				break;//Viking Sword
				case 34:
                                        MakeItem( pSock, pUser, 29 );
              				break;//Axe
				case 35:
                                        MakeItem( pSock, pUser, 28 );
              				break;//Battle Axe
				case 36:
                                        MakeItem( pSock, pUser, 32 );
              				break;//Double Axe
				case 37:
                                        MakeItem( pSock, pUser, 30 );
              				break;//Executioners Axe
				case 38:
                                        MakeItem( pSock, pUser, 33 );
              				break;//Large Battle Axe
				case 39:
                                        MakeItem( pSock, pUser, 31 );
              				break;//Two Handed Axe
				case 40:
                                        MakeItem( pSock, pUser, 34 );
              				break;//War Axe
				case 41:
                                        MakeItem( pSock, pUser, 38 );
              				break;//Bardiche
				case 42:
                                        MakeItem( pSock, pUser, 39 );
              				break;//Halberd
				case 43:
                                        MakeItem( pSock, pUser, 35 );
              				break;//Short Spear
				case 44:
                                        MakeItem( pSock, pUser, 36 );
              				break;//Spear
				case 45:
                                        MakeItem( pSock, pUser, 37 );
              				break;//WarFork
				case 46:
                                        MakeItem( pSock, pUser, 44 );
              				break;//Hammer Pick
				case 47:
                                        MakeItem( pSock, pUser, 40 );
              				break;//Mace
				case 48:
                                        MakeItem( pSock, pUser, 41 );
              				break;//Maul
				case 49:
                                        MakeItem( pSock, pUser, 42 );
              				break;//War Mace
				case 50:
                                        MakeItem( pSock, pUser, 43 );
              				break;//War Hammer
				case 51:
                                        MakeItem( pSock, pUser, 0 );
              				break;//Dragon Gloves
				case 52:
                                        MakeItem( pSock, pUser, 0 );
              				break;//Dragon Helm
				case 53:
                                        MakeItem( pSock, pUser, 0 );
              				break;//Dragon Legs
				case 54:
                                        MakeItem( pSock, pUser, 0 );
              				break;//Dragon Arms
				case 55:
                                        MakeItem( pSock, pUser, 0 );
              				break;//Dragon Chest
			}
			break;
		case 2:	TriggerEvent( 4014, "onUseChecked", pUser);//Bronze Menu
			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 »

Bug is caused by the following line:
socket.SysMessage( GetDictionaryEntry( 978, socket.Language ) );
Dictionary-message 978 contains a string-variable, but the JS version of the dictionary-system doesn't appear to support additional variables. Apparently UOX3 disapproves, and refuses to go on if you try to call a message containing one through JS. :/
-= 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 »

thank you xuri. will be fixed :)
Post Reply