public override void OnDeath() { // call base logic base.OnDeath(); // send an info chat message chat.TargetMsgInfo(deathMessage); }
void ProcessCoinOrders() { List <long> orders = Database.singleton.GrabCharacterOrders(name); foreach (long reward in orders) { coins += reward; Debug.Log("Processed order for: " + name + ";" + reward); chat.TargetMsgInfo("Processed order for: " + reward); } }
public void CmdCreate(string guildName) { // validate if (player.health.current > 0 && player.gold >= GuildSystem.CreationPrice && !InGuild() && IsGuildManagerNear()) { // try to create the guild. pay for it if it worked. if (GuildSystem.CreateGuild(name, player.level.current, guildName)) { player.gold -= GuildSystem.CreationPrice; } else { chat.TargetMsgInfo("Guild name invalid!"); } } }