Exemple #1
0
        public Connection(Socket socket, OtItems items)
        {
            this.socket = socket;
            this.items  = items;

            message = new InMessage();
            map     = new OtMap(items);

            BeginReceive();
        }
        public NpcInfo(Creature creature, OtItems items)
        {
            this.name   = creature.Name;
            this.outfit = creature.Outfit;

            this.statements = new Dictionary <string, string>();
            this.triedWords = new HashSet <string>();
            this.voices     = new HashSet <NpcVoice>();

            NpcWordList.Words.Add(creature.Name.ToLower());
        }
Exemple #3
0
 private void LoadItems()
 {
     try
     {
         otItems = new OtItems();
         otItems.Load("items.otb");
         Trace.WriteLine("Open Tibia items successfully loaded.");
     }
     catch (Exception e)
     {
         MessageBox.Show(this, "Unable to load items. Details: " + e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
 }