Exemplo n.º 1
0
 public override void OnResponse(NetState sender, RelayInfo info)
 {
     if (info.ButtonID == 1)
     {
         if (m_From.InRange(m_Addon.GetWorldLocation(), 3))
         {
             m_From.AddToBackpack(m_Addon.Deed);
             m_Addon.Delete();
         }
         else
         {
             m_From.SendAsciiMessage("You are too far away to do that.");
         }
     }
 }
Exemplo n.º 2
0
 public override void OnResponse(GameClient sender, RelayInfo info)
 {
     if (info.ButtonID == 1)
     {
         if (m_From.InRange(m_Addon.GetWorldLocation(), 3))
         {
             m_From.AddToBackpack(m_Addon.Deed);
             m_Addon.Delete();
         }
         else
         {
             m_From.SendLocalizedMessage(500295);                           // You are too far away to do that.
         }
     }
 }