Dropping

Discussion in 'Scar/Simba Help' started by Element1, Feb 22, 2012.

Dropping
  1. Unread #1 - Feb 22, 2012 at 8:34 PM
  2. Element1
    Joined:
    Mar 22, 2007
    Posts:
    440
    Referrals:
    0
    Sythe Gold:
    0

    Element1 Forum Addict

    Dropping

    Can someone help me write a dropping procedure. Credits will be given, its for iron ores.


    Procedure DropOre;
    Var
    X, Y, OreDTM, I:Integer;
    Slotbox:Tbox;
    OrePattern:TIntegerArray;

    Begin
    If InvFull then
    Begin
    MarkTime(TooLong);
    OreDTM := DTMFromString('mrAAAAHic42BgYHBmYmCwB2IvIA4GYj8gdgBiYyA2AeLHQDVXgfgmEN8H4tdA/AmI3wDxQyA2kRcHkkx4MG7wH4gZCWAYAAAOhgrG');
    OrePattern:=[1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28];
    StatsGuise('Dropping Ore:' + IntToStr(I));
    For I:=0 To 27 Do
    Repeat
    Begin
    SlotBox:=InvBox(OrePattern);
    If FindDTm(OreDTM, X, Y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
    Begin
    FindNormalRandoms;
    MMouseItem(OrePattern);
    Mouse(X, Y, 2, 2, mouse_Right);
    ChooseOption('Dro');
    End;
    End;
    Until(InvEmpty);
    MarkTime(TooLong);
    End;
    End;

    That is what I have right now, but it does not drop any of the ore.
     
  3. Unread #2 - Mar 3, 2012 at 10:53 AM
  4. red0roses
    Joined:
    Dec 13, 2010
    Posts:
    399
    Referrals:
    0
    Sythe Gold:
    0

    red0roses Forum Addict

    Dropping

    Hope this helps!
    Always check out the documentation http://docs.villavu.com/srl-5/inventory.html#invcount
     
  5. Unread #3 - Mar 3, 2012 at 9:18 PM
  6. XWX
    Joined:
    Apr 25, 2005
    Posts:
    723
    Referrals:
    0
    Sythe Gold:
    18

    XWX Apprentice

    Dropping

    Are you sure the DTM of the iron ore is correct?
     
  7. Unread #4 - Mar 4, 2012 at 9:46 PM
  8. red0roses
    Joined:
    Dec 13, 2010
    Posts:
    399
    Referrals:
    0
    Sythe Gold:
    0

    red0roses Forum Addict

    Dropping

    Mine is working for iron ore in one's inventory tested it myself.
     
  9. Unread #5 - Mar 10, 2012 at 7:53 PM
  10. Element1
    Joined:
    Mar 22, 2007
    Posts:
    440
    Referrals:
    0
    Sythe Gold:
    0

    Element1 Forum Addict

    Dropping

    Yes my DTM was correct I have gotten it to work thanks guys I ended up writing a different procedure.
     
  11. Unread #6 - Mar 10, 2012 at 8:43 PM
  12. red0roses
    Joined:
    Dec 13, 2010
    Posts:
    399
    Referrals:
    0
    Sythe Gold:
    0

    red0roses Forum Addict

    Dropping

    No problem... was mine of any use just out of curiosity?
     
  13. Unread #7 - Mar 14, 2012 at 12:52 PM
  14. Element1
    Joined:
    Mar 22, 2007
    Posts:
    440
    Referrals:
    0
    Sythe Gold:
    0

    Element1 Forum Addict

    Dropping

    I'm not sure I didn't test it as I had already written another one, but the code looks fine, sorry it took me so long to reply.
     
  15. Unread #8 - Mar 15, 2012 at 12:01 PM
  16. red0roses
    Joined:
    Dec 13, 2010
    Posts:
    399
    Referrals:
    0
    Sythe Gold:
    0

    red0roses Forum Addict

    Dropping

    Its all good... glad you figured everything out!
     
< new to this | simba help plz >

Users viewing this thread
1 guest


 
 
Adblock breaks this site