User Tools

Site Tools


lua:ch:reward

This is an old revision of the document!


Give exp or qp or gold reward.

Syntax1:
reward(argument[string])
Where argument has the format: '[victim] [exp|qp|gold] [amount]'
Accepts 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