Something like this should do it if camp names are one word, as most are. Untested, use at your own risk, etc etc. May need to modify the trigger string to return less false positives, but thats up to you.
You could always setup a loop to go through each Param to see if its not NULL and all that, but I'm too lazy for that, so you just get 1 word camp names with my example.
If you were really serious about it, you could check to make sure you only annouce your camp checks 1 time every x minutes. Maybe also an occasional /ooc announcing that your place is camped also.
Code: Select all
#event CampCheck "#*#camp#*#"
Sub Main
/declare campname string local
/if (!${Defined[Param0]}) {
/echo /mac campcheck <camp name>
} else {
/varset campname ${Param0}
}
:Loop
/doevents
/delay 1s
/goto :Loop
/endmac
Sub Event_CampCheck
/delay 5s
/ooc ${campname}
/return