Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ mpoload not adding to mob's inventory(Smaug 1.4)
|
mpoload not adding to mob's inventory(Smaug 1.4)
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Zachary
(3 posts) Bio
|
| Date
| Mon 17 Jun 2019 03:11 PM (UTC) Amended on Mon 17 Jun 2019 03:20 PM (UTC) by Zachary
|
| Message
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 17 Jun 2019 09:19 PM (UTC) |
| Message
| |
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,554 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top