[-]
Shout:
Click Refresh to load shouts.

Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open Corpses With HookProxy
02-23-2010, 07:43 AM
Post: #11
RE: Open Corpses With HookProxy
Ok thanks, I'll try it as soon as you get home, although I think the problem is
it is not recognizing that the Tile is a body of the dead creature, I believe that is the problem,
but anyway I will try. Thanks
Find all posts by this user
Quote this message in a reply
02-23-2010, 10:25 PM
Post: #12
RE: Open Corpses With HookProxy
The problem unfortunately persists: (
Find all posts by this user
Quote this message in a reply
02-24-2010, 09:54 PM
Post: #13
RE: Open Corpses With HookProxy
sombody?
Find all posts by this user
Quote this message in a reply
02-25-2010, 07:57 AM (This post was last modified: 02-25-2010 07:59 AM by klusbert. Edit Reason: )
Post: #14
RE: Open Corpses With HookProxy
(02-24-2010 09:54 PM)SirChops Wrote:  sombody?

Do your player running while trying to open the corpse?

If yes, try to send player.stop, and sleep 200 ms and open.

If no, add Like client.statusbar = p.item.id in your function, and throw some stuff around you to see if it triggers.

Like client.statusbar = p.item.id
Then throw some stuff around you to see it it's work.

But if you get the "sorry not possible" message it's something wrong with the packet you sending. Try item.use?

Btw the proxy is working.

Download latest version of ladabot http://www.lada.vacau.com
Find all posts by this user
Quote this message in a reply
02-27-2010, 12:18 PM (This post was last modified: 02-27-2010 12:18 PM by SirChops. Edit Reason: N/A)
Post: #15
RE: Open Corpses With HookProxy
I tried all the suggestions posted here, but now I could detect the problem, just do not know how to solve it

What used to detect the problem was:

bool _Hook_OpenCorpse(IncomingPacket packet)
        {
            Tibia.Packets.Incoming.TileAddThingPacket p = (Tibia.Packets.Incoming.TileAddThingPacket)packet;
 
            if (p.Item != null && p.Position.DistanceTo(_fClient.PlayerLocation) <= 2)
            {
		MessageBox.Show("First If");
                if (p.Item.GetFlag(Tibia.Addresses.DatItem.Flag.IsContainer) &&
                    p.Item.GetFlag(Tibia.Addresses.DatItem.Flag.IsCorpse))
                {
		    MessageBox.Show("Second If");
                    p.Item.OpenAsContainer((byte)_fClient.Inventory.GetContainers().Count());
                }
            }
            return true;
        }


the code does not pass the second IF, ie he does not see the "P" as a dead body or as a container, then it opens the body ... someone help me?
Find all posts by this user
Quote this message in a reply
02-27-2010, 04:01 PM
Post: #16
RE: Open Corpses With HookProxy
(02-27-2010 12:18 PM)SirChops Wrote:  I tried all the suggestions posted here, but now I could detect the problem, just do not know how to solve it

What used to detect the problem was:

bool _Hook_OpenCorpse(IncomingPacket packet)
        {
            Tibia.Packets.Incoming.TileAddThingPacket p = (Tibia.Packets.Incoming.TileAddThingPacket)packet;
 
            if (p.Item != null && p.Position.DistanceTo(_fClient.PlayerLocation) <= 2)
            {
		MessageBox.Show("First If");
                if (p.Item.GetFlag(Tibia.Addresses.DatItem.Flag.IsContainer) &&
                    p.Item.GetFlag(Tibia.Addresses.DatItem.Flag.IsCorpse))
                {
		    MessageBox.Show("Second If");
                    p.Item.OpenAsContainer((byte)_fClient.Inventory.GetContainers().Count());
                }
            }
            return true;
        }


the code does not pass the second IF, ie he does not see the "P" as a dead body or as a container, then it opens the body ... someone help me?

if p.item.isinlist(constants.items.corpse)

Download latest version of ladabot http://www.lada.vacau.com
Find all posts by this user
Quote this message in a reply
02-27-2010, 05:10 PM
Post: #17
RE: Open Corpses With HookProxy
Ohh thank you, but how is the syntax that I tried that but always the error

Here are what I used.
if(p.Item.IsInList(Tibia.Constants.ItemLists.Corpse));
                    {
                        client.Statusbar = p.Item.Id.ToString();
                        player.Stop();
                        p.Item.Use();
                    }
Find all posts by this user
Quote this message in a reply
03-08-2010, 05:05 PM
Post: #18
RE: Open Corpses With HookProxy
(02-27-2010 05:10 PM)SirChops Wrote:  Ohh thank you, but how is the syntax that I tried that but always the error

Here are what I used.
if(p.Item.IsInList(Tibia.Constants.ItemLists.Corpse));
                    {
                        client.Statusbar = p.Item.Id.ToString();
                        player.Stop();
                        p.Item.Use();
                    }

corpse.values or corpse.list don't know from the head.

Download latest version of ladabot http://www.lada.vacau.com
Find all posts by this user
Quote this message in a reply
Post Reply 



Contact UsTProgrammingReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication