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] – created vodurlua:ch:reward [2026/10/14 17:17] (current) – removed - external edit (Unknown date) 127.0.0.1
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)