Results 1 to 9 of 9

Thread: Castle Wars Banking chest

  1. #1
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default Castle Wars Banking chest

    Hey guys, So I finally got round to making my scripts walk, however. It walks to far from the bank so heres my questions:

    1. How do I make it so it moves closer to the bank chest?
    2. The bank chest has all colours EXACTLY the same and a DTM would be no good because of camera angles..


    HEEELP :P

  2. #2
    Join Date
    Jun 2006
    Posts
    306
    Mentioned
    1 Post(s)
    Quoted
    4 Post(s)

    Default

    1: Use better walking ( if its walking too far your walking is bad )
    2: Walk to chest and use a FindColorsSpiralTolerance.

    Im pretty sure SRL already deals with the castle wars chest in the OpenBankChest().. Constant is SRL_BANK_CW (i think)..
    8+ Years:C++, PICBASIC(ASM), Java, PHP, Perl, AHK

    My last hobby (yes i was the dev):Electronic PIC Development And HERE

    SMARTManager 0.91 (Script management/6 Hour limit fix): View thread here

    Like my work? Help me out: http://villavu.com/forum/showthread.php?p=984147#

  3. #3
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    You can use
    FindDTMRotated()
    To find rotated DTM's on your mini map or main screen

    Optionally the SPS Positioning system could be of some service

  4. #4
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by i3egoHan View Post
    1: Use better walking ( if its walking too far your walking is bad )
    2: Walk to chest and use a FindColorsSpiralTolerance.

    Im pretty sure SRL already deals with the castle wars chest in the OpenBankChest().. Constant is SRL_BANK_CW (i think)..
    i looked in the openbankchest and it was missing CW :S but I'l have a go at that

    and for the walking what do you suggest? because I don't click anywhere near where it ends up :P is it possible to make it click the $ icon on the minimap?

  5. #5
    Join Date
    Feb 2012
    Posts
    386
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by i3egoHan View Post
    1: Use better walking ( if its walking too far your walking is bad )
    2: Walk to chest and use a FindColorsSpiralTolerance.

    Im pretty sure SRL already deals with the castle wars chest in the OpenBankChest().. Constant is SRL_BANK_CW (i think)..
    He is totaly Right. If you got problem with Walking near the Chest, Your DTM isn't good Enought because I use a castle wars banking in my script and I got no problem.

    2.Finding the chest a little bit more harder if you want to make your own method. You will need to use TPA, because there is a lot of the same color and things to confuse any kind of DTMOBJFinding in this place.

    If you want to look at a reference. Download my Script and do CTRL + F than Type FindCas
    You will find my function to find the Castle Wars Chest.

    For the Walking, Type WalkToBank
    The DTM for walking is under (WayOfBanking = 1)

    Edit:
    Save you a few time and try my Walking Procedure for fun. You will see it is posible. I don't care if you just decide to use it but give credit to me in your script.

    Simba Code:
    WalkToTresor: Array[0..2] of Integer;
    WalkToTresor[0] := DTMFromString('m1gAAAHic42JgYFjKxsAwB4h7gXgDEO8H4kNQvASIT0DxO6Dab0D8EIhvAvEzIGZiZGCQAWJZIOYH4o9AsYSEOIacHFUGF1MJhmgPBYasrAw4Bsml9xmAMT9QLTGYkUiMAACiBhgq');
    WalkToTresor[1] := DTMFromString('maQEAAHicrc8xCwEBAIbhj12RQQb8gMtqkVxiw26iI3Rdl4mOpESKgRRSYjT6Cfw0b9dlMfLVM33TG5O0DEtj3AJXHLFFGy1YsLHHGXc88MQLuZDkwkENBjKIoo4q7ODfYIIZGijDxHDg+Jyu9dGspLRan+T0LJUKedWKCZnZuIx0RHNvpMXU0+Ww87n9jpL0/Cr0B197AyctJNA=');
    WalkToTresor[2] := DTMFromString('mKgEAAHic42NgYFjOxMAwG4j3QPFJJLwCiFuhuB6IG4G4CYjXAbEAIwODFxB7ADEfEAsCsSEQuwFxOBDrArEmEKsBsT4QBwHxd6B9hXkZDNkZyQzpKfFg/Pb5NziuLS9hyExPZHCwtYSLNXdOBmMNoF5yMCOZGBUAAIafKEA=');    

    procedure  WalkToBank;
    begin
     if FindDTMRotated(WalkToTresor[0], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
      begin
        Mouse(x, y, 3, 3, True);
        FFlag(6);
        wait(1500 + random(1000));
         end else
         if FindDTMRotated(WalkToTresor[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
      begin
        Mouse(x, y, 3, 3, True);
        FFlag(6);
        wait(1500 + random(1000));
         end else
         if FindDTMRotated(WalkToTresor[2], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
      begin
        Mouse(x, y, 3, 3, True);
        FFlag(6);
        wait(1500 + random(1000));
         end else
         begin
         terminatescript;
          end;
         end;
    Last edited by Nemesis3X; 03-15-2012 at 12:15 AM.

  6. #6
    Join Date
    Jun 2006
    Posts
    306
    Mentioned
    1 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    i looked in the openbankchest and it was missing CW :S but I'l have a go at that

    and for the walking what do you suggest? because I don't click anywhere near where it ends up :P is it possible to make it click the $ icon on the minimap?
    update srl.. its there..

    Can you make it click the $ icons... Of course... Search for the yellow color on the minimap only... (MMX1, MMY1...etc

    be carefull thou because they change location significantly when you relog...

    DTM's would be best solution if you cant work with SPS
    8+ Years:C++, PICBASIC(ASM), Java, PHP, Perl, AHK

    My last hobby (yes i was the dev):Electronic PIC Development And HERE

    SMARTManager 0.91 (Script management/6 Hour limit fix): View thread here

    Like my work? Help me out: http://villavu.com/forum/showthread.php?p=984147#

  7. #7
    Join Date
    Jan 2012
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what i currently use

    procedure MoveToBank;

    begin
    wait(randomrange(400,600));
    AntiBan;
    Writeln('Moving to wcbank')
    MyPath := [Point(1606, 4304), Point(1609, 4317), Point(1615, 4321), Point(1620, 4331)];
    SPS_WalkPath(myPath);
    SPS_WalkPath(myPath);
    While (IsMoving) do
    begin
    wait(50)
    OpenBankChestEdge(SRL_BANK_CW);
    end;

  8. #8
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

  9. #9
    Join Date
    Jan 2012
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    I feel... STOOPID haha thanks guys

    welcome anytime.
    if u have done the fight kiln quest i have just got banking flawless there (10%) faster


    . if your not sure of anything its always good just to search the function list,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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