This shows you the differences between two versions of the page.
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) | ||