HomeHome ForumForum HelpHelp SearchSearch LoginLogin RegisterRegister
Recent
[June 24, 2008, 08:42:50 PM]

[May 18, 2007, 01:10:00 PM]

by Raki
[March 24, 2007, 11:47:22 PM]

[December 23, 2006, 07:52:48 PM]

[October 20, 2006, 05:01:46 PM]

[October 11, 2006, 09:02:23 AM]
Mudmagic - OLC
by twhiting9275 on October 11, 2006, 07:11:00 AM
2402 Views | 0 Comments | Rating: (0 rates)
The following are examples of Mob Progs that I've created (or that others have). I'm not going to go through and explain them.. You can get help on mobprogs here and variables here
Prog 1
A pixie that goes through, and detects your sex, asks if you'll be her friend if you're male, kills you if you're female.. If you say yes, she rewards you, if you say no, she kicks your ass.. It's a two part prog.

The Greet Prog
if sex $n < 2
wink $n
say would you like to be my friend today?
say I could really use a friend
else
kill $n
endif

The Speech Prog ($n says yes)
if sex $n < 2
say awww, how sweet. Thank you so much. Here, take this and treasure it forever.
mob oload 32420 1 room
mob force $n get ring
else
kill $n

The Speech Prog ($n says no)
say well damn. I guess I'll just have to kill you then!
say you know, you woulda been better off as my friend.
kill $n

Prog 2
This is just a simple prog that lets a mob (Rattan) check a person's level, and if they're a level higher than 200, he issues 'em a bold challenge
if level $n > 200
say hey $n, think you can take me?? You can have my weapon if you do..
say personally, I don't think you got the balls to do it though, $n.
laugh $n

Prog 3
This is quite a well designed prog. I wish I could say I'd done it, but I can't, it's part of a quest area generated for DR. It detects if you're carrying an item, then re-welcomes you, if you are, or gives you one if you're not.
if carries $n 30900
or carries $n 30902
say Nice to see you once more, $n.
else
mob oload 30900
give wassail $n
mob oload 30902
give gingerbread $n
say Happy holidays, $n.
endif

The last two were strictly greet progs, an example of how one might use a few of them.. Enough examples for now. I'm sure I'll add more later.

Commenting option has been turned off for this article.
Welcome, Guest. Please login or register.
October 06, 2008, 11:41:13 AM

Login with username, password and session length
Members
Total Members: 27
Latest: Enkil Velland
Stats
Total Posts: 8
Total Topics: 6
Online Today: 5
Online Ever: 23
(August 08, 2008, 12:29:47 AM)
Users Online
Users: 0
Guests: 4
Total: 4
Mudmagic - Forums
Powered by MySQL Powered by PHP Powered by SMF | SMF © Simple Machines LLC
TinyPortal © Bloc
SMFone design by A.M.A.
Valid XHTML 1.0! Valid CSS!