Closed scooterboo closed 2 months ago
Jewelry soup: /give 108088 1
matsutake meat rolls: /give 108091 1
mora meat: /give 108094 1
Similar thing in Chapter 1 Act 3: Equilibrium
Similar thing in Chapter 1 Act 3: Equilibrium
The gadget type here is a GadgetWorktop. Not a normal GadgetObject. There is an unknown number of types of gadget that check for interact ID. The code needs to be moved to a common place and checked on multiple gadget types.
I'll make a new ticket for the bug in Chapter 1 Act 3: Equilibrium I don't want to think about this table any more.
Describe the bug When trying to interact with the items on the able in Custodian of Clouds, nothing happens.
Notes First of all, the InteractId (Jewelry Soup is 8) of the gadget needs to be sent to the client. This is done on line 280ish of EntityGadget:
After doing that, the client will make a popup when interacting with the gadget:
When you have the Jewelry Soup, pressing confirm sends a GadgetInteractReq packet from the client:
Grasscutter needs to get the gadget's InteractId again. This can be done from the EntityId with something like:
If we use that InteractId (of 8) with GadgetInteractExcelConfigData:
Grasscutter can do the right thing and set the gadget to state 201 and remove one 108088 (Jewelry Soup) from the inventory.
If you set the entity's state to 201 manually with
/entity 914001 state201
:It will appear on the table.
Which branch did you use? multi_proto Grasscutter version: 1.4.4-dev-4e8f709e Lua: JNLua