- Code: Select all
var inv = GameServer.Database.SelectObjects<InventoryItem>("OwnerID = '" + playerac.ObjectId + "'");
I have my players OwnerID from Inventory, how do I without interacting save an item to the Inventory table
- Code: Select all
INSERT INTO `thid_24`.`inventory` (`OwnerID`, `OwnerLot`, `ITemplate_Id`, `UTemplate_Id`, `IsCrafted`, `Creator`, `SlotPosition`, `Count`, `SellPrice`, `Experience`, `Color`, `Emblem`, `Extension`, `Condition`, `Durability`, `PoisonSpellID`, `PoisonMaxCharges`, `PoisonCharges`, `Charges`, `Charges1`, `Cooldown`, `LastTimeRowUpdated`, `Inventory_ID`) VALUES (<{OwnerID: }>, <{OwnerLot: }>, <{ITemplate_Id: }>, <{UTemplate_Id: }>, <{IsCrafted: }>, <{Creator: }>, <{SlotPosition: }>, <{Count: }>, <{SellPrice: }>, <{Experience: }>, <{Color: }>, <{Emblem: }>, <{Extension: }>, <{Condition: }>, <{Durability: }>, <{PoisonSpellID: }>, <{PoisonMaxCharges: }>, <{PoisonCharges: }>, <{Charges: }>, <{Charges1: }>, <{Cooldown: }>, <{LastTimeRowUpdated: 2000-01-01 00:00:00}>, <{Inventory_ID: }>);
- Code: Select all
var item = GameServer.Database.FindObjectByKey<ItemTemplate>(Magma_Imbued_Cloak); var y = GameServer.Database.AddObject(item);
Thank you