by Sofcase sofcase gmail com summary Give zeny summary param name char

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// by Sofcase (sofcase@gmail.com)
/// <summary>
/// Give zeny
/// </summary>
/// <param name="character">Character calling the command</param>
/// <param name="match">Regex match</param>
/// <example>!zeny count</example>
[GmAttribute("zeny", 90, "^(.+?)$")]
public static void GiveMeZeny(Character character, Match match)
{
uint zeny = Convert.ToUInt32(match.Groups[1].Value);
character.ZENY += Convert.ToUInt32(zeny) * 10000;
string message = "Получено ";
message += Convert.ToString(match.Groups[1].Value);
message += " зени.";
CommonFunctions.Broadcast(character, character, message);
CommonFunctions.UpdateZeny(character);
}
/// <summary>
/// Give rufi
/// </summary>
/// <param name="character">Character calling the command</param>
/// <param name="match">Regex match</param>
/// <example>!zeny count</example>
[GmAttribute("rufi", 90, "^(.+?)$")]
public static void GiveMeRufi(Character character, Match match)
{
character.ZENY += Convert.ToUInt32(match.Groups[1].Value);
string message = "Получено ";
message += Convert.ToString(match.Groups[1].Value);
message += " руфи.";
CommonFunctions.Broadcast(character, character, message);
CommonFunctions.UpdateZeny(character);
}