summary Give zeny summary param name character Character calling the c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
/// <summary>
/// Give zeny
/// </summary>
/// <param name="character">Character calling the command</param>
/// <param name="match">Regex match</param>
/// <example>!zeny count</example>
[GmAttribute("zeny", 1, "^(.+?)$")]
public static void GiveMeZeny(Character character, Match match)
{
character.ZENY += Convert.ToUInt16(match.Groups[1].Value);
string message = "Получено ";
message += Convert.ToString(match.Groups[1].Value);
message += " руффи.";
CommonFunctions.Broadcast(character, character, message);
CommonFunctions.UpdateZeny(character);
}