public override void ExcuteGameGuide() { GS_TREASUREBOX_MOVE_REQ gS_TREASUREBOX_MOVE_REQ = new GS_TREASUREBOX_MOVE_REQ(); gS_TREASUREBOX_MOVE_REQ.i16TreasureUnique = this.m_i16TreasureUniqe; gS_TREASUREBOX_MOVE_REQ.i32Day = this.m_i32TreasureDay; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_TREASUREBOX_MOVE_REQ, gS_TREASUREBOX_MOVE_REQ); }
private static void TreasureBoxFunc(string strText) { if (strText.Contains("[#")) { strText = strText.Remove(0, 11); } if (strText.Contains("[")) { strText = strText.Replace("[", string.Empty); } if (strText.Contains("]")) { strText = strText.Replace("]", string.Empty); } int i32Day = 0; if (!NrLinkTextProcessor.TreasureRewardTimeCheck(strText, ref i32Day)) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("632"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } short num = NrLinkTextProcessor.TreasureRewardTreasureCheck(strText); GS_TREASUREBOX_MOVE_REQ gS_TREASUREBOX_MOVE_REQ = new GS_TREASUREBOX_MOVE_REQ(); if (num == -1) { gS_TREASUREBOX_MOVE_REQ.i16TreasureUnique = 0; gS_TREASUREBOX_MOVE_REQ.i32Day = i32Day; } else { gS_TREASUREBOX_MOVE_REQ.i16TreasureUnique = num; gS_TREASUREBOX_MOVE_REQ.i32Day = i32Day; } SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_TREASUREBOX_MOVE_REQ, gS_TREASUREBOX_MOVE_REQ); }