User Tools

Site Tools


lua:ch:reward

Differences

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

Link to this comparison view

lua:ch:reward [2014/12/27 08:18]
vodur created
— (current)
Line 1: Line 1:
-Give exp or qp or gold reward. 
- 
-Syntax1: \\ 
-reward(argument[string]) \\ 
-Where argument has the format: '​[victim] [exp|qp|gold] [amount]'​ \\ 
-Accepts [[:​lua:​formatargs|format arguments]]. 
- 
-Syntax 2: \\ 
-reward( victim[CH], type[string],​ amount[number]) \\ 
-Does not accept format arguments. 
- 
-Examples: \\ 
-mob:​reward("​%s exp 300", ch.name) 
- 
-mob:​reward(ch,​ "​exp",​ 300) 
  
lua/ch/reward.1419668302.txt.gz ยท Last modified: 2014/12/27 08:18 by vodur