Ir para conteúdo

Featured Replies

Postado

Well this is a kind Rune Maker in C#, you can convert it to VB easy. Is not complete but is an idea to start one, you need to better it.

So the event for the bottom is:

       private void button1_Click(object sender, EventArgs e)

        {

            Item itemMovedToAmmo = null;

            ItemLocation newLocation = null;

            ItemLocation oldLocation = null;

            Item original = client.Inventory.GetItems().FirstOrDefault(i => i.Id == Tibia.Constants.Items.Rune.Blank.Id);

            uint item = Tibia.Constants.Items.Rune.PoisonField.Id;

            if (original != null)

            {

                oldLocation = original.Location;

                if (client.Inventory.GetItemInSlot(Tibia.Constants.SlotNumber.Right) == null)

                {

                    newLocation = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Right);

                }

                else if (client.Inventory.GetItemInSlot(Tibia.Constants.SlotNumber.Left) == null)

                {

                    newLocation = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Left);

                }

                if (newLocation == null && client.Inventory.GetItemInSlot(Tibia.Constants.SlotNumber.Ammo) != null)

                {

                    newLocation = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Right);

                    itemMovedToAmmo = client.Inventory.GetItemInSlot(Tibia.Constants.SlotNumber.Right);

                    itemMovedToAmmo.Move(ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Ammo));

                }

            }

            Thread.Sleep(200);

            original.Move(newLocation);

            Thread.Sleep(200);

            client.Console.Say("adevo grav pox");

            Thread.Sleep(200);

            Item newItem = new Item(client, item, 0, "", newLocation);

            Thread.Sleep(300);

            newItem.Move(oldLocation);

            Thread.Sleep(200);

            if (itemMovedToAmmo != null)

            {

                itemMovedToAmmo.Location = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Ammo);

                itemMovedToAmmo.Move(ItemLocation.FromSlot(Tibia.Constants.SlotNumber.Right));

            }

        }

Postado

Now remember that the blank rune not need to be in the hands rune be made, then to make a runemaker enough to just be a spellcaster, using the magic from time to time with the blank rune in bp.

Sorry the english!

# Regras Gerais - TibiaKing.com #
Contato: augusto@tibiaking.com
Não respondo dúvidas via MP.


1C2tu.png4Tlqo.png1C2tu.png


 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo