Example #1
0
    public override void OnDeath()
    {
        // call base logic
        base.OnDeath();

        // send an info chat message
        chat.TargetMsgInfo(deathMessage);
    }
Example #2
0
    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);
        }
    }
Example #3
0
 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!");
         }
     }
 }