FIXED: gemcutter acting irregularly

... post your favorite game bugs here for the coders' attention. Please, please, please, show the steps necessary to repeat the bug. Otherwise they can't be solved and they will be ignored...

Moderator: Aureus

chelou
Posts: 44
Joined: Tue Oct 06, 2020 3:18 pm

FIXED: gemcutter acting irregularly

Post by chelou » Tue Dec 08, 2020 8:52 pm

First off i want to say that there are a few known issues with him that are easy to avoid, quite often he will drop the stone you give him and need to pick it up and give it back to him, other times you give him the stone and then he asks for the money and he asks you "payment for which stone?" and then gives it back, at that point you just give it to him again and it works. also if you ever give something you didnt intend to him then you can give him the wrong amount (20GC or 10GC only, whichever is not the amount he asks for) and he will give his inventory to you. None of those are large problems and I bring those up for the players reading this to know what to do about it instead of the imms to implement a fix.

This time, however, it acted very erratically and ate the raw gemstone and the gold without giving anything back to me and I cannot understand why:

A master gemcutter says 'You were luck the stone was flawless, I could retain most of the material.'
A master gemcutter gives you a large sparkling sapphire.
give raw gemcutter
* HP:Healthy MV:Fresh >
You give a raw diamond to a master gemcutter.
* HP:Healthy MV:Fresh >

A master gemcutter says 'There were small fractures in this stone.'
A master gemcutter holds the stone up to the light.
* HP:Healthy MV:Fresh >
inv
You are carrying:
a large sparkling sapphire
[5] a small sparkling sapphire
a small sparkling diamond
a wealth of gold crowns (81)
a silver-winged basilard
a stack of sieves
[5] a large slab of meat
a choice steak
* HP:Healthy MV:Fresh >

A master gemcutter says 'I couldn't make more of it than this.'
A master gemcutter says 'Not a bad stone.'
* HP:Healthy MV:Fresh >
Tic in 7 seconds!

A master gemcutter says 'Now give me 20 crowns please.'
give 20 crowns gemcutter
* HP:Healthy MV:Fresh >
You give him twenty crowns.
* HP:Healthy MV:Fresh >

A master gemcutter says 'Payment for cutting which stone?'
* HP:Healthy MV:Fresh >
inv
You are carrying:
a large sparkling sapphire
[5] a small sparkling sapphire
a small sparkling diamond
a wealth of gold crowns (61)
a silver-winged basilard
a stack of sieves
[5] a large slab of meat
a choice steak
* HP:Healthy MV:Fresh >
look gemcutter
Creases surround this man's eyes, as he squints through a thick monocle. A
thick leather apron protects his clothing from gem fragments and dust. His
hands are rough and calloused from years working with rough and cobbed
gemstones.

A master gemcutter is in excellent condition.
A master gemcutter is healthy.

You attempt to peek at the inventory:
You can't see anything.
* HP:Healthy MV:Fresh >
give 20 crowns gemcutter
You give him twenty crowns.
* HP:Healthy MV:Fresh >
A master gemcutter says 'Payment for cutting which stone?'
A master gemcutter gives you ten crowns.
* HP:Healthy MV:Fresh >
look gemcutter
Creases surround this man's eyes, as he squints through a thick monocle. A
thick leather apron protects his clothing from gem fragments and dust. His
hands are rough and calloused from years working with rough and cobbed
gemstones.

A master gemcutter has a few scratches.
A master gemcutter is scratched.

You attempt to peek at the inventory:
ten gold crowns
* HP:Healthy MV:Fresh >

time
It is 1 o'clock pm, on the 15th day of the month of Tammaz, year 1373.
According to legend and prophecy, this is the Zunth Turn of the Wheel.
Forums: https://forums.wotmud.info Wiki: wotmud.wikia.com

(Server: Tue Dec 8 20:43:57 2020 EST, last rebooted 20 hours, 40 minutes ago)

chelou
Posts: 44
Joined: Tue Oct 06, 2020 3:18 pm

Re: gemcutter acting irregularly

Post by chelou » Tue Dec 08, 2020 8:55 pm

In summary, this time I recieved one good one like normal, then gave the next raw gemstone to him, and it skipped the entire mobol and responded as if i got the small gemstone but didnt give me anything for the 2nd one.

Detritus
Posts: 282
Joined: Thu Aug 06, 2020 8:22 am

Re: gemcutter acting irregularly

Post by Detritus » Wed Dec 09, 2020 2:51 pm

This can happen if your inventory is full or heavy (not saying that's it in this case, but can be if on an alt that cant handle much).

chelou
Posts: 44
Joined: Tue Oct 06, 2020 3:18 pm

Re: gemcutter acting irregularly

Post by chelou » Wed Dec 09, 2020 7:31 pm

have seen that before but in those cases the mob will go through the right mobol still, tries to give it to you and cant because you are full, and so it is there in his inventory.

In this log I posted what was in my inventory so you could see i didn't have a lot and looked at the gemcutter to see if it was in his inventory but he was empty, and he skipped straight to the last part of the mobol when i first gave him the raw gemstone.

Detritus
Posts: 282
Joined: Thu Aug 06, 2020 8:22 am

Re: gemcutter acting irregularly

Post by Detritus » Wed Dec 09, 2020 11:27 pm

rereading this part
A master gemcutter says 'Now give me 20 crowns please.'
give 20 crowns gemcutter
* HP:Healthy MV:Fresh >
You give him twenty crowns.
It looks like a trigger without a wait command, not seeing the prompt before it.
Very common to all mobol interactions(not just gemcrafter specifically) will need to finish it's mobol execution before taking another input or can bug out. Gemcrafter has to destroy items during it's mobol before executing other parts of it so that it's not abused by steal or mob killing.

Any time i client trigger for mobol (sieving off the top of my head) i use excessive #wait commands to not accidently do something like this or compensate for variable mud lag times.

Aureus
Posts: 972
Joined: Mon Dec 28, 2020 11:13 pm

Re: gemcutter acting irregularly

Post by Aureus » Thu Jan 28, 2021 3:17 pm

This has been fixed. He should now both return the proper amount of gold instead of always 10, and also let you know if he is busy and you need to wait. He's rather fiddly so please report any new bugs in a new thread (though I believe I have tested it well).

Locked