Results 1 to 7 of 7

Thread: Object Pickup

  1. #1
    Join Date
    Apr 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Object Pickup

    Hi Guys,

    I'm trying to add a feature to a script I'm currently using.

    I want the script to pick up charms, all of them. I have no problem finding colors, that's the easy part, haha, what I'm having trouble is... what the heck and where the heck, do I write and call the method?

    Thanks for any assistance

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    U write them in a separate procedure/function in the script. (Where else can u write?)

    Call it anytime u want, preferably after a fight (use srl_infight or averagepixelshift to detect the end of the fight)

  3. #3
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Just write a procedure for picking them up and call it in the main loop
    Current Project: Retired

  4. #4
    Join Date
    Apr 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    @Gucci and my problem begins in the first two words of what you said.. :|

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    What script are you trying to edit?

  6. #6
    Join Date
    Apr 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    What script are you trying to edit?

    Caotoms Rock Crab Trainer v2.0.1. I'm trying to add charm pickup to it.
    http://villavu.com/forum/showthread.php?t=75527

  7. #7
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    The best place would probably be before searching for another crab. If you are wanting some one to give you the code and tell you where to put it however, that most likely won't happen. If you don't know how to make your own method for picking stuff up I suggest starting here: http://villavu.com/forum/forumdisplay.php?f=191

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
  •