Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex, Google

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
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

djs4000

GroupMembers
Posts5
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

Samryn

GroupMembers
Posts11
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 >>