User Tools

Site Tools


lua:ch:reward

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lua:ch:reward [2014/12/27 08:18] – created vodurlua:ch:reward [2017/02/20 07:47] (current) vodur
Line 1: Line 1:
-Give exp or qp or gold reward.+Give expqp, gold, or faith reward.
  
-Syntax1: \\ +==== Syntax1: ==== 
-reward(argument[string]) \\ + 
-Where argument has the format: '[victim] [exp|qp|gold] [amount]' \\+**CH:reward(argument<string>)** \\ 
 +Where argument has the format: '[victim] [exp|qp|gold|faith] [amount]'\\
 Accepts [[:lua:formatargs|format arguments]]. Accepts [[:lua:formatargs|format arguments]].
  
-Syntax 2\\ +Example:
-reward( victim[CH], type[string], amount[number]) \\ +
-Does not accept format arguments.+
  
-Examples: \\+<code lua>
 mob:reward("%s exp 300", ch.name) mob:reward("%s exp 300", ch.name)
 +</code>
  
 +==== Syntax 2 (preferred): ====
 +
 +**CH:reward( victim<CH>, type<string>, amount<number> )** \\
 +Does not accept format arguments.
 +
 +Examples:
 +
 +<code lua>
 mob:reward(ch, "exp", 300) mob:reward(ch, "exp", 300)
 +</code>
 +
  
lua/ch/reward.1419668302.txt.gz · Last modified: 2014/12/27 08:18 by vodur