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 ➜ Running the server ➜ Need A Program

Need A Program

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


Posted by Zehava   (1 post)  Bio
Date Mon 23 Apr 2001 07:22 PM (UTC)
Message
I am building a program that when the player enters the room a mobile will cast a spell.. say.. poison gas on the player. .. how would i do this.. i have never built a program... or is there an easier way to do it?

ICQ= 61771993

Top

Posted by Kris   USA  (198 posts)  Bio
Date Reply #1 on Mon 23 Apr 2001 08:37 PM (UTC)
Message
You've got the right idea. It's actually absurdly simple. You make it a greet_prog, and, if using area editor, you put the probability (percentage from 1-99) of the program triggering in the 'arguments' field. If not using area editor, then it would be: greet_prog 99~ (this would make it so it fires 99% of the time; 100% never works for me)
After that, you put in the command:

cast 'gas breath' $n

$n tells the mob to cast the spell 'gas breath' on the player or mob that activated the trigger, in this case the player or mob that entered the room. Mobs can perform special admin commands as well (i.e. disconnect, slay, goto, transfer, etc). These are called 'mpcommands'. I would suggest you emerse yourself in some useful help files to start out, and then play around with them; get creative. Try the following help files:

help mpcommands
help mptriggers
help variables
help ifchecks

That should get you started. I also recommend you read the related help files it lists. If you want help on a specific ifcheck, then you do 'help ifcheck <ifcheck>'; i.e. if you want to know exactly how to use the ifcheck 'level', then you would type 'help ifcheck level' and it would give you a more detailed listing on that specific ifcheck. I hope this helps =)

Oh, and it's always better to encourage people to reply on the board rather than ICQ; if I had told you this via ICQ, then nobody else would benefit from my answer, which would result in the same questions getting asked over and over again (Nick explained this nuance to me a few times :P) =)
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.


11,345 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.