mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Changed untradeable to itemType (since it's used for bazaar as well).
This commit is contained in:
		| @@ -119,7 +119,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.player | ||||
|             //New item that spilled over | ||||
|             while (quantityCount > 0) | ||||
|             { | ||||
|                 InventoryItem addedItem = Database.addItem(owner, itemId, Math.Min(quantityCount, 5), quality, gItem.isExclusive ? (byte)0x3 : (byte)0x0, 100, inventoryCode); | ||||
|                 InventoryItem addedItem = Database.addItem(owner, itemId, Math.Min(quantityCount, 5), quality, gItem.isExclusive ? (byte)0x3 : (byte)0x0, gItem.durability, inventoryCode); | ||||
|  | ||||
|                  | ||||
|                 list.Add(addedItem); | ||||
|   | ||||
| @@ -635,6 +635,35 @@ namespace FFXIVClassic_Map_Server.Actors | ||||
|             //zone.broadcastPacketAroundActor(this, worldMasterMessage); | ||||
|         } | ||||
|  | ||||
|         public void graphicChange(int slot, InventoryItem invItem) | ||||
|         { | ||||
|             Item item = Server.getItemGamedata(invItem.itemId); | ||||
|  | ||||
|             if (item == null) | ||||
|             { | ||||
|                  | ||||
|             } | ||||
|             else if (item is EquipmentItem) | ||||
|             { | ||||
|                 EquipmentItem eqItem = (EquipmentItem)item; | ||||
|  | ||||
|                 uint graphicId; | ||||
|  | ||||
|                 if (eqItem.graphicsWeaponId == null || eqItem.graphicsEquipmentId == null || eqItem.graphicsVariantId == null)                 | ||||
|                     graphicId = 1025;                 | ||||
|                 else | ||||
|                 { | ||||
|                     graphicId =  | ||||
|                         eqItem.graphicsWeaponId << 20 | | ||||
|                         eqItem.graphicsEquipmentId << 10 | | ||||
|                         eqItem.graphicsVariantId << 5 | | ||||
|                         eqItem.graphicsColorId << 5; | ||||
|                 } | ||||
|                 appearanceIds[BODYGEAR] = graphicId; | ||||
|                 broadcastPacket(createAppearancePacket(actorId), true); | ||||
|             }             | ||||
|         } | ||||
|  | ||||
|         public Inventory getInventory(ushort type) | ||||
|         { | ||||
|             if (inventories.ContainsKey(type)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user