User Name:


Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot, Bing, Sogou

Members: 0
Guests: 13
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Building » A couple NPC building questio...
Forum Rules | Mark all | Recent Posts

A couple NPC building questions
< Newer Topic :: Older Topic > Bouncer NPC and item giver NPC

Pages:<< prev 1 next >>
Post is unread #1 Jul 28, 2004, 9:07 am
Go to the top of the page
Go to the bottom of the page


JoinedJul 24, 2004

Firstly, Id like to create an NPC that stops a player from travelling in a certain direction if they dont meet a certain requirement. I know about the if/endif commands for progs but im not sure about which prog to use to trigger the event (leave_prog maybe?) or how to prevent the player from moving.

My second question is how do I make an NPC have an unlimited amount of an item. For my newbie area, i was trying to create an equipment room where all newbies would be given standard equipment to start out with.
Post is unread #2 Jan 6, 2006, 1:20 pm
Go to the top of the page
Go to the bottom of the page


JoinedJul 10, 2004

Ok this is pretty damn late but i thought i'd answer it incase someone else has the same questions.

First question:
You would create a leave_prog and this would transfer the player back into the room where the NPC(mob) is located, example of this is if i created a mob with the vnum of 2341 and the mob was in room 2342 i would transfer the character back to vnum 2342.
But remember to use: mpat 0.$n mptran 2342 this is because mptran is usally used when transfering players from the room the prog is located in.
(Hope all that made sense)

Second question:
Your best using a prog to do this two because there isn't really a way to make "unlimited" amounts of an item, but you can make out that there is by using: mpoload <vnum> <level>
Once you have invoked the object you then should drop the item or do what you wish to do with the item directly AFTER you have mpoloaded it.

Again, i hope this helps.
Pages:<< prev 1 next >>