mpoload not adding to mob's inventory(Smaug 1.4)

Posted by Zachary on Mon 17 Jun 2019 03:11 PM — 2 posts, 12,531 views.

#0
This is what I have so far: Player walks into the room, mob asks for a favor. If the player says favor, he says some more stuff, mpoloads the datadisk and is SUPPOSED to give it to the player, however all that happens is that he says his bit and the datadisk shows up on the ground.

mpstat bothan
Name: A shady looking Bothan.  Vnum: 203.
Short description: A shady looking Bothan.
Long  description: A shady looking Bothan stands here, leaning against a sleek data running ship.
Hp: 273/273.  Mana: 100/100.  Move: 100/100. 
Lv: 20.  Class: 3.  Align: 0.  AC: -25.  Gold: 0.  Exp: 0.
>greet_prog 100
mea $n _dch $I looks up at you as you walk in, and beckons you over.
mea $n "Psst, hey you, I need a /favor/".

>speech_prog favor
if ispc($n)
    mer $n $I beckons to $n and says something you can't quite hear.
    mea $n _cha $I says "You'll help me then? Good. I need to get some 
    mea $n _cha data to a client, but all the customs agents know my
    mea $n _cha face. Think you can slip this past them?"
    mpoload 203 20
    give datadisk $n
  else
    mer $n mutters something.
endif


I've given the datadisk to the mob and then triggered the speech, and he gave it back. but for some reason I can't force the mob to get or take the datadisk off the ground or otherwise add it to his own inventory any other way besides me giving it to him. I've read all the /doc files and searched everywhere else and got nothing, don't know where else to ask.
Amended on Mon 17 Jun 2019 03:20 PM by Zachary
Australia Forum Administrator #1

I’ve tested that in SmaugFUSS and it works. I suggest you upgrade from Smaug 1.4 to the latest SmaugFUSS.

See: https://smaugmuds.afkmods.com/

In particular: https://smaugmuds.afkmods.com/files/smaugfuss-193-500/

They have been continually updating SMAUG and a lot of bugs will have been fixed.

If you don’t want to do that, check the source for the do_give function, and possibly set a breakpoint and work out what is going wrong.

http://www.gammon.com.au/gdb