Register forum user name Search FAQ

Gammon Forum

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 ➜ Smaug 1.4a Mobile Prog - Gold

Smaug 1.4a Mobile Prog - Gold

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Arithorn   (2 posts)  Bio
Date Sun 12 Jun 2005 06:41 AM (UTC)
Message
I've got a mob program that gives the player some gold if they succeed in killing a mob...in this case, a newbie area - ant...

>give_prog corpse An ant
say Excellent work $n, here is your reward.
give 20 coins to $n
mpjunk corpse

The program works fine, but I've noticed that he will eventually run out of money.

How do I get him to recreate he money in his INV or otherwise add money to him in a reset so that he doesn't run out?

Thanks
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 12 Jun 2005 03:48 PM (UTC)
Message
Before it gives the money, simply add this line:
mpmset self gold 20

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #2 on Sun 12 Jun 2005 10:17 PM (UTC)
Message
or, you could just before the line that gives the gold insert a mpwithdraw 20

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Arithorn   (2 posts)  Bio
Date Reply #3 on Mon 13 Jun 2005 12:04 AM (UTC)
Message
Thanks very much to the both of you.

The mpmset command bugged till I removed the proto flag off the mob, but that's ok.

The mpwithdraw doesn't work but I -think- that might be because I haven't set an economy up for the area yet.
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #4 on Mon 13 Jun 2005 04:34 AM (UTC)
Message
Yes, mpmset needs the mob to not be prototyped and mpwithdraw needs the area to have an economy.. take whichever seems the lesser evil for you. ;)

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

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.


16,415 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.