Jump to content

location script


Recommended Posts

on *:SIGNAL:mta.command: {
if ($3 == !loc) || ($3 == !wru) {
%b = $iif($4 isnum,$4,$mta.getid($1,$4))
if ($4 != $null) {
mta.say $1 $mta.name($1,%b) are in $mta.location($1,%b)
}
else mta.say $1 $mta.name($1,$2) you are in $mta.location($1,$2)
}
}

Link to comment

errr. niels... no!

try this:

on *:SIGNAL:mta.command: { 
 if (!loc* iswm $3) { 
   var %b = $iif($4 == $null,$2,$iif($4 isnum,$iif($ini($mta.dir $+ $1.ini,ID $+ $2),$4,-1),$mta.getid($1,$4))) 
   if (%b == -1) mta.msg $1 $2 Invalid Name/ID
   else mta.say $1 $mta.name($1,%b) $+ 's location $mta.area($1,%b)
 }
}

Niels: Spot whats wrong with ures compared to this?

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...