mprog help

Posted by Primus on Thu 17 May 2012 01:42 PM — 3 posts, 13,250 views.

#0
i've been building an area, unfortunately the one thing i suffer with is progs.

The Problem:- Log: [*****] BUG: Unknown ifcheck, Mob #599.

The Code:-

mpedit $n add greet 100
if ispc($n)
mea $n Greetings $n*!
if Wearingvnum(491)
say Ahh i see you have found the chosen one navi, $n time is short, will you hear my story?.
else
say Sorry, but you are not the choosen one i requested, come back later.
endif




The Idea:-
I need the mobile in this case, the great deku tree (for those who have played ocarina of time, will understand this)

Basically you must have Navi the fairy (Onum:491)
to be able to talk to the tree and accept his mission, but if you do not have navi, he politely tells you to go away.

if anyone can help.. thanks in advance
#1
I believe the proper syntax is ovnumwear

IE

if ovnumwear(491)

I am not sure if stock SMAUG comes with a list of ifchecks or not.
#2
If you want them to have to have it on a "wear" slot, then yeah:

if ovnumwear(491)

But that won't check in containers (i.e. if you put the fairy in a bottle and hold the bottle in your hand).

You can also do:

if ovnuminv(491)

This will check their inventory if you don't plan on the character actually "wearing" the fairy.