public static GetEntry ( Server.Mobile sender ) : |
||
sender | Server.Mobile | |
Результат |
public override void OnResponse(NetState state, int index) { if (index == 0) { m_From.SendLocalizedMessage(1005306, "", 0x35); // Help request unchanged. } else if (index == 1) { PageEntry entry = PageQueue.GetEntry(m_From); if (entry != null && entry.Handler == null) { m_From.SendLocalizedMessage(1005307, "", 0x35); // Removed help request. PageQueue.Remove(entry); } else { m_From.SendLocalizedMessage(1005306, "", 0x35); // Help request unchanged. } } }
public override void OnResponse(NetState state, int index) { if (index == 0) { m_From.SendAsciiMessage(0x35, "Help request unchanged."); // Help request unchanged. } else if (index == 1) { PageEntry entry = PageQueue.GetEntry(m_From); if (entry != null && entry.Handler == null) { m_From.SendAsciiMessage(0x35, "Removed help request."); // Removed help request. entry.AddResponse(entry.Sender, "[Canceled]"); PageQueue.Remove(entry); } else { m_From.SendAsciiMessage(0x35, "Help request unchanged."); // Help request unchanged. } } }