Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
[HELP] Easy (hard) Loot
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [HELP] Easy (hard) Loot

  1. #1

    [HELP] Easy (hard) Loot

    Hi guys.

    I was trying to make a easy looter...
    Yah, I know have infinite threads contains. I read all them during for last 8 hours.

    Im using TibiaApi (ohhh)...

    [code=c#]
    //item is inside dead body.
    //I dont post the rest of code cause this problem is here.
    item.Move(ItemLocation.FromSlot(SlotNumber.Backpac k));
    [/code]

    I tried many options but all said "Sorry, Not Possible".

    I thought can be the packet, but I took a look and don't looks like have changes.

    I thinking may can be Location.

    If someone have a tip...please, give me.

    One more thing, someone can confirm the container structs?

    [code=c#]
    Container.Start = 0x3FB3B0 + baseAdress;
    //... its ok so far
    //Whats the diference between itemamount and count?
    Container.DistanceItemAmount = -4
    Container.DistanceItemCount = 8;
    [/code]

    Sorry for this, but Im really frustrated.

  2. #2

    RE: [HELP] Easy (hard) Loot

    The object item must be the item you want to move.
    And the move function works like this:
    item.Move(moveToThisLocation, Count);

    Item item = c.GetItems().FirstOrDefault(i => i.Location.Type == Tibia.Constants.ItemLocationType.Container && i.Id == EnterHereTheItemId);

    bp = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.B ackpack); //your BP
    item.Move(bp, 1);

  3. #3

    RE: [HELP] Easy (hard) Loot

    Quote Originally Posted by alkamenes
    The object item must be the item you want to move.
    And the move function works like this:
    item.Move(moveToThisLocation, Count);

    Item item = c.GetItems().FirstOrDefault(i => i.Location.Type == Tibia.Constants.ItemLocationType.Container && i.Id == EnterHereTheItemId);

    bp = ItemLocation.FromSlot(Tibia.Constants.SlotNumber.B ackpack); //your BP
    item.Move(bp, 1);
    I just dont post the unnecessary code.
    I'm using:

    [code=c#]
    //the containers I need are opens.
    List<CTibia.Objects.Container> containerss = GLOBAL.client.Inventory.GetContainers().ToList();
    foreach (CTibia.Objects.Container con in containerss)
    {
    //System.Console.WriteLine(con.Name);
    if (!con.Name.Contains("Backpack") || !con.Name.Contains("Bag"))
    {
    foreach (Item item in con.GetItems())
    {
    //meat ID
    if (item.Id == 3577)
    item.Move(ItemLocation.FromSlot(SlotNumber.Backpac k));
    }
    }
    [/code]

    I 'picked' the right item, just don't work.

  4. #4

    RE: [HELP] Easy (hard) Loot

    Okay I Found.LOL
    After 9 hours was just the Id I getting wrong.

    Im force to see if will work, and worked

    [code=c#]
    item.Id = 3577;
    item.Move(ItemLocation.FromSlot(SlotNumber.Backpac k), item.Count);
    [/code]

  5. #5

    RE: [HELP] Easy (hard) Loot

    I have a problem (again)....

    I found the step tile but I can't make it work properly. And before blaster send "solving map puzzle", I've read. And I've read the blackD cavebot too. And understood all this, I just can't get right tile.

    Here we go:
    my code:
    [code=c#]
    //adress
    StepTile = 168;

    //getting tile
    //example (1235 = symbolic number of map tile)
    uint offset = 1235*stepTile; //(print 32A78 in hex)
    [/code]

    Im getting the offset 32A78 but the correct is 32A1C. So I have 5C difference.
    What am I doing wrong?
    If i divide by A8(168) by (32A1C) I got 4D3 (1234). Well, of sure this count is wrong.

    Please someone.



  6. #6
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: [HELP] Easy (hard) Loot

    Mind posting your code?

  7. #7

    RE: [HELP] Easy (hard) Loot

    =) I'm using tibiaAPI.

    //Map.cs -> GetTiles(false,false)
    [code=c#]
    uint startNumber = 0;
    uint endNumber = Addresses.Map.MaxTiles + 1; //2016+1
    for (uint i = startNumber; i < endNumber; i++)
    {
    yield return GetTile(i);
    }
    [/code]

    //Map.cs ->GetTile(uint)
    [code=c#]
    return new Tile(client, tileNumber.ToMapTileAddress(client), tileNumber);
    [/code]

    //Extension.cs -> ToMapTileAddress
    [code=c#]
    //here i got the print above.
    int a = (int)Addresses.Map.StepTile * (int)tileNumber;
    System.Console.WriteLine("///////////////////>" + tileNumber + " - " + Addresses.Map.MapPointer + "(" + a.ToString("X") + ")");
    return client.Memory.ReadUInt32(Addresses.Map.MapPointer) + (Addresses.Map.StepTile * tileNumber);
    [/code]

    I can't figure out Blaster.
    I tried some numbers, but all fails. (not randomic)

    Did you think I need rewrite this code? (make a new?)

  8. #8
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: [HELP] Easy (hard) Loot

    What exactly are you trying to do? Just getting random tiles?

  9. #9

    RE: [HELP] Easy (hard) Loot

    Im trying get the right tile to get player tile.
    These tiles I'm getting don't work.

    When I play this script, almost in tile number 1235 it show me offset 32A78 but when I check in cheatengine or ollydbg I get 32A1C.

    I don't know what is wrong. The scripts looks fine but seems the tiles or map struct change.

    Im using steptile = 168 (0xA8). If you multiply for 1235 you get 0x32A78 but in cheatengine this offset doesn't exist The right is 32A1C (32A78 - 5C).

  10. #10
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: [HELP] Easy (hard) Loot

    What does GetTileWithPlayer() return?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •