Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Search and teleport (theory)

  1. #1
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default Search and teleport (theory)

    Well, I've been messing with coordinates and stuff, and I'm thinking of making a code that searches for an item, then when it finds it, it teleports to the first occurrence of that item (and after I get that to work, I'll make it check if you're already at the first item, and if so it'll teleport you to the next)

    Since I can view addresses/values etc in game with a code, I found this

    Code:
    00020FD7 = very top left corner
    22FD7 = for each full space you move right (or down) this increases by 2
    24FD7
    26FD7
    28FD7
    2AFD7
    2CFD7
    2EFD7
    30FD7
    etc
    However, I'm not quite sure how to get them to match how the game handles item slots (like, instead of going left to right all the way, it goes in 16/16 grids)

    Any help?

  2. #2
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    ....remind me to work on this when you see me on msn.

    Say what you mean, mean what you say, and let your actions speak for you.


  3. #3
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    For those who are interested, so far I have this...

    Code:
    @convert to thumb
    add r2,pc,#1
    bx r2
    .thumb
    
    @[Text to Item] = r5
    ldr r1, text
    mov r5,#0x0
    mov r0,#0xC
    mov r2,#0xF
    loop:
    ldrb r3,[r1]
    add r1,#1
    cmp r3,#0x3A
    blt number
    add r3,#9
    number:
    and r3,r2
    lsl r3,r0
    add r5,r3
    sub r0,#0x4 
    bpl loop
    
    @[Item Address] = r2
    ldr r2, Map 
    ldr r4, =0x10
    lsl r4, #0x8
    sub r4, #0x1 
    maploop:
    ldrh r3, [r2] 
    cmp r3, r5 
    beq Move
    notreplace: 
    add r2, #0x2 @add 2 to the map address, thus going to the next spot
    sub r4, #0x1 @subtract 1 from r5, this is howmany times the loop repeats
    bpl maploop 
    
    @[Calculations..]
    Move:
    ldr r3, Map
    sub r2, r3
    ....do the rest later
    
    
    
    
    
    
    .arm
    Map:
    .long 0x021E3124
    text:
    .long 0x022AF136
    This was done in like... 3 min >_> Sooooo it may be sloppy. unno.

    Say what you mean, mean what you say, and let your actions speak for you.


  4. #4
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    By the way thanks a lot for helping me with this
    I try looking at RTWE's "formulation" and I have no idea what he's saying... XD

  5. #5
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    Still trying to decide how I want to do this.. lol where is toe when you need him...

    Say what you mean, mean what you say, and let your actions speak for you.


  6. #6
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    Oh and I figured out why the top right corner is weird XD
    The very top left is 00020FD7, and the very left of the top right spot is 0009EFD7
    so the middle would be just a bit over

    It goes left to right and increases by 0x2000
    Last edited by dragonboy269; 08-14-2009 at 02:18 PM.

  7. #7

    Default

    Would it be possible to teleport by clicking on a part of the map?

  8. #8
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    Probably


    But anyway, here's what I found for each item slot

    Code:
    extreme left (or  top) of item slot
    
    20FD7
    
    extreme right (or bottom) of item slot
    
    21029
    
    difference:
    
    #0x52

  9. #9

    Default

    Quote Originally Posted by Maniac View Post
    Still trying to decide how I want to do this.. lol where is toe when you need him...
    he's been active recently :O

    Remember to always click the thanks button of those who help you! It makes them feel wanted:

  10. #10
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    Quote Originally Posted by Area51_Hacker2 View Post
    he's been active recently :O
    Considering that hes been invisible half the time I doubt you actually know how much he is actually on..

    Say what you mean, mean what you say, and let your actions speak for you.


Posting Permissions

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