Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Builders and Areas
Click here to Register

Reply
 
Thread Tools
Old 04-08-2003, 11:45 PM   #1
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
if ispc $n
mpecho {WAn alien throws the cow suit off.{x
mpecho {W<{Rs{ra{Ry{W>{B An Alien {w'{WGLARBEN SHENARBEN!{w'{x
mpecho {W$n is teleported to the mother ship.{X
else
if isimmort $n
mpecho {WAn alien throws the cow suit off.{x
mpecho {W<{Rs{ra{Ry{W>{B An Alien {w'{WGLARBEN SHENARBEN!{w'{x
mpecho {W$n is teleported to the mother ship.{X
endif
endif


Trying to get that code to work for an mprog, any suggestions?
Keljorian is offline   Reply With Quote
Old 04-09-2003, 01:17 AM   #2
Quicksilver
New Member
 
Join Date: Apr 2002
Location: Toronto, ONT, Canada
Posts: 23
Quicksilver is on a distinguished road
Send a message via Yahoo to Quicksilver
Talking

You didn't say what codebase this is for. It doesn't look like Rom24 MPROG, but I'll give it a quick (pardon the pun) analysis.

Here's my synopsis of what you wrote (minus any formatting)

If player, then throw off suit, say phrase, transfer triggerer to Mother Ship.
Else
2nd if Immortal, then throw off suit, say phrase, transfer triggerer to Mother Ship.
endif
endif

This seems a bit redundant, as both conditionals sense for opposite states (player vs immortal) then perform the same action. If you wanted the Immortal sent somewhere different then the situation would have looked more like this:


if ispc $n
mpecho {WAn alien throws the cow suit off.{x
mpecho {W<{Rs{ra{Ry{W>{B An Alien {w'{WGLARBEN SHENARBEN!{w'{x
mpecho {W$n is teleported to the mother ship.{X
else
mpecho {WAn alien throws the cow suit off.{x
mpecho {W<{Rs{ra{Ry{W>{B An Alien {w'{WGLARBEN SHENARBEN!{w'{x
mpecho {W$n is teleported to the Bridge (or wherever...){X
endif

IF I've gottent his wrong and you wanted the same thing to happen for PLAYER classes and not to catch an npc/mob in this situation try the following:

if ispc $n
or isimmort $n
mpecho {WAn alien throws the cow suit off.{x
mpecho {W<{Rs{ra{Ry{W>{B An Alien {w'{WGLARBEN SHENARBEN!{w'{x
mpecho {W$n is teleported to the mother ship.{X
else
mpecho {WThe cow chews its cud.{x
mpecho {W<{Rs{ra{Ry{W>{B The Cow {w'{WMOOOOOOOOOOOOOOOOO!{w'{x
endif


(Not sure if your MPROGS allow multiline conditional if_checks. If they do, then you can combine your pc and immort check in the same section, since they share the same outcome, saving a few bits along the way.)
Please incluse your codebase next time if possible.

Hope this helps
--QS
Quicksilver is offline   Reply With Quote
Old 04-09-2003, 08:23 AM   #3
jornel
Member
 
Join Date: Sep 2002
Location: Canada
Posts: 73
jornel is on a distinguished road
You didn't say if the problem was in the prog or the trigger.

As a test of this, insert 1 line at the very top of your mpog:

[code]  mpe MOOO, it triggered. [/quote]


If you do whatever it is you do to trigger the prog, and still nothing happens, then it looks like your trigger is at fault.

In SMAUG, the trigger is the line you see immediately before your program when you type either:

    rpstat             (if its a room prog)
or  mpstat mobname (if its a mob)


Since you didn't say what codebase you are using, I can only offer one last general hint:

If you suspect the trigger, then test your same mprog using a different trigger like this:

[code]  rpedit add speech p bessie [/quote]

then input your mprog and save.

then just type
 say bessie

if THAT works, then you know your mprog was not evil, it was an evil trigger!
jornel is offline   Reply With Quote
Old 04-09-2003, 12:48 PM   #4
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
The code base is for RoT, sorry it was late and I forgot to tell you guys a few things I see.  Also the keyword is stampede which i have added to the mobprog when adding it to the mob.  So far I haven't gotten it to work properly and still can't figure out why.  If there's anything else you need to know about the mprog I can tell you.
Keljorian is offline   Reply With Quote
Old 04-10-2003, 07:30 PM   #5
Syrinx
New Member
 
Join Date: Mar 2003
Posts: 6
Syrinx is on a distinguished road
Syrinx is offline   Reply With Quote
Old 04-11-2003, 08:52 PM   #6
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
I figured out why it wasn't echoing, I forgot to put mob infront of echo. It's old rot 1.4 code that is stubborn as all heck, but thanks for the help
Keljorian is offline   Reply With Quote
Reply


Thread Tools


Evil Mprogs - Similar Threads
Thread Thread Starter Forum Replies Last Post
mprogs/oprogs Enzo MUD Builders and Areas 2 10-11-2004 08:34 AM
Evil fest is on! Hephos Advertising for Players 0 05-18-2004 03:50 AM
Mprogs Enzo MUD Builders and Areas 0 08-20-2003 06:39 PM
Good vs. Evil Chapel Roleplaying and Storytelling 15 06-14-2002 11:18 PM
How evil is evil? Chapel Roleplaying and Storytelling 17 05-26-2002 12:48 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 05:11 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022