Results 1 to 12 of 12

Thread: [Req]Color cooking detection?

  1. #1
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default [Req]Color cooking detection?

    So... I'm looking for some suggestions on how to detect our player is cooking (on a log fire). I could use pixelshift but that wouldn't be very accurate for something like this. I could do inventory check for cooked/raw items, but then what happens if the fire extinguishes before we're done? Could also check for for the fire color, as long as it exists within a pixel range from our player (MSCX/MSCY), but what happens if another player lights a fire near us at the same distance?

    I don't know how anyone else has done it or even MSI for that matter, but if you have dealt with this before or just have some good suggestions I'm all ears!

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    MSI only has support for ranges currently, and it just waits until there isn't any raw material left. You can count the raw materials every couple seconds and if the number hasn't changed, the player isn't cooking anymore. Should work since you always cook at a constant speed.

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    time marking based on last change in raw fish count.

  4. #4
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    time marking based on last change in raw fish count.
    This. If you know the exact time it takes to cook with some give room 100-400 ms then u'll know if fire went out or some other problem arises that u can use to trigger to cook again.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  5. #5
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Or while cooking on logs, for an example, if uncooked sharks stop changing into sharks then we know the fire's out or something's wrong. Have the script count the dtm's of each shark and if that number fails to increase after a period of time then you would have it restart the cooking phase by burning the logs and so on.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Ah yeah, cooking does have a constant time, and if I have some allowances in there (for lag and such) I could just use some DTM/Bitmap counting and compare that to the changes in quantity per X amount of milliseconds. Thanks for the suggestions guys, I'll give that a go.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    use quick exp tab and read the current exp off that, or I guess do the good old mouse over skill and read off exp
    Oh Hai Dar

  8. #8
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Got it working perfectly, thank you guys very much.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  9. #9
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Well, I see you've already figured it out... nonetheless, when you first start cooking on a fire you have to click the fire. You could just keep those coords and check for fire colours there. The only exception would be if someone lit a fire in the same exact spot as you

    -RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  10. #10
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Sir R. M8gic1an View Post
    Well, I see you've already figured it out... nonetheless, when you first start cooking on a fire you have to click the fire. You could just keep those coords and check for fire colours there. The only exception would be if someone lit a fire in the same exact spot as you

    -RM
    Yep, that was one of my original ideas but like you just stated, there's the slim chance another fire could be lit there. But, luckily through some bitmap counting and time checking/comparing, I have it working wonderfully and much faster than I could have hoped for.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  11. #11
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Yep, that was one of my original ideas but like you just stated, there's the slim chance another fire could be lit there. But, luckily through some bitmap counting and time checking/comparing, I have it working wonderfully and much faster than I could have hoped for.
    That's awesome I'm glad you got it. Hey if you need any testing just hit me up. My army is based right now in Draynor Bank!
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  12. #12
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    That's awesome I'm glad you got it. Hey if you need any testing just hit me up. My army is based right now in Draynor Bank!
    Yeah I may just do that. I've a bit of tweaking to do, especially with the fishing detection (pixelshift) and adding a couple more bits, but I'll surely let ya know if I need some testing. Thank you, Kingarabian.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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
  •