Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Sat Feb 25, 2017 6:08 am   

Recognize / differentiate CMUD pro or basic
 
Hi,
How can I check if the script is running in CMUD Pro version or the regular CMUD? Based on that I could run a more advanced or simplified version of the script. It surely was mentioned in the forums, but I cannot find it.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Feb 25, 2017 12:50 pm   
 
I don't know of any specific way. I think there are no features that are scripting exclusive and different between the 2 versions. I think the Pro version may include support for the zMapper plugin capabilities without needing zMapper installed, and the regular version would need zMapper to enable those abilities. The other differences are not script controllable or accessible.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Sun Feb 26, 2017 7:27 pm   
 
Solution:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <func name="cmudpro" copy="yes">
    <value>#if (%null(%url("http://www.google.com"))) {
  #return false
} {
  #return true
}</value>
  </func>
</cmud>

Example usage:
Code:
#if (@cmudpro()) {
  #echo {This is Cmud Pro}
} {
  #echo {This is Cmud Noob}
}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net