Difference between revisions of "MQ2MMOTLO" - MMOBugs Wiki

(→‎Task Members: updated)
Line 69: Line 69:
 
* <font color="magenta">${Task.Member[Razza].IsLeader}</font> <font color="DeepSkyBlue">Is Razza task leader?</font>
 
* <font color="magenta">${Task.Member[Razza].IsLeader}</font> <font color="DeepSkyBlue">Is Razza task leader?</font>
 
* <font color="magenta">${Task.Member[Razza].Spawn.Level}</font> <font color="DeepSkyBlue">Razza's level (must be in zone)</font>
 
* <font color="magenta">${Task.Member[Razza].Spawn.Level}</font> <font color="DeepSkyBlue">Razza's level (must be in zone)</font>
 +
* <font color="magenta">${Task.Total}</font> <font color="DeepSkyBlue">Total number of tasks in list</font>
 +
* <font color="magenta">${Task.Names[2]}</font> <font color="DeepSkyBlue">Name of 2nd task</font>
 +
* <font color="magenta">${Task.Names[Fight or Flight]}</font> <font color="DeepSkyBlue">Task list index number of the task 'Fight or Flight'</font>
  
 
As you can see, members can be indexed by name or #. # is member 1 through x. If name is used, and is not in task, NULL is returned (as expected).
 
As you can see, members can be indexed by name or #. # is member 1 through x. If name is used, and is not in task, NULL is returned (as expected).
 
  
 
==Availability==
 
==Availability==
  
 
This plugin is included with the MMOBugs Compile.
 
This plugin is included with the MMOBugs Compile.

Revision as of 15:35, 21 December 2010

Plugin Info
Name MQ2MMOTLO
Author htw
Link Forum Link
Commands None
Source Available No
Uses INI File No



Description

MQ2MMOTLO adds some new Top-Level Objects.

New Top-Level Objects

The following TLOs are added by this plugin:

Range

Range Allows you to check if a value is inside or between a specified upper or lower bounds. If the value falls with the specified parameters it will return TRUE, else it will return FALSE.


  • Range :bool

Range Members

  • Between[lower,upper:value]
  • Inside[lower,upper:value]

Range Examples

${Range.Inside[10,90:${Me.PctHPs}]}
${Range.Between[80,100:${Me.PctEndurance}]}
${Range.Inside[10,90:${Target.PctHPs}]}
${Range.Between[10,100:${Target.Distance}]}

Inside is like: (value>lower) && (value<upper)
Between is like: (value>=lower) && (value<=upper)


Task

Task Allows you to check various task information for your toon.


Task Members

The TLO members are as follows:

  • string Name The char name in task
  • Task Leader The leader of the task
  • Task Member[#|name] The task member # or name
  • int Members Current number of characters in the task
  • bool IsLeader Is the char the task leader?
  • spawn Spawn Object for this player if available (must be in zone)
  • To String Same as Name
  • string Names[x] The task name for task #x in list
  • int Names[taskname] The task number for task taskname in list
  • int Total Current number of tasks in list

Task Examples

  • ${Task.IsLeader} Am I the task leader?
  • ${Task.Name} My name
  • ${Task.Members} # of members in task
  • ${Task.Member[3].Name} Name of 3rd task member
  • ${Task.Member[2].IsLeader} Is 2nd task member task leader?
  • ${Task.Member[Razza].IsLeader} Is Razza task leader?
  • ${Task.Member[Razza].Spawn.Level} Razza's level (must be in zone)
  • ${Task.Total} Total number of tasks in list
  • ${Task.Names[2]} Name of 2nd task
  • ${Task.Names[Fight or Flight]} Task list index number of the task 'Fight or Flight'

As you can see, members can be indexed by name or #. # is member 1 through x. If name is used, and is not in task, NULL is returned (as expected).

Availability

This plugin is included with the MMOBugs Compile.