Results 1 to 7 of 7

Thread: go away from places where you can't light a fire?

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default go away from places where you can't light a fire?

    How to go away from places where you can't light a fire? I have made a script that chops trees and lights em and its working nicely, but i don't know how should i make the character go away when it tries to light the logs on a campfire or flowers?

    I now have a sucky system for that; i use RunTo function and then light the logs, then run back. It's not rly usable

  2. #2
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You can just blindclick three pixels from the minimap

    MouseFlag(MMCX,MMCY + 3, 2, 2, 0);

    then repeat that until you don't see a line (You cannot light a fire here)
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    thanks, but ive found another way. I show it here, so if any1 wants to use the procedure its fine (just remember to credit!!!)
    IM NOT 100% SURE ITS WORKING AS IT SHOULD BE, IM STILL TESTING!

    SCAR Code:
    Procedure avoidfire;
    var avoided : boolean;
        dx, dy, num : integer;
    begin
    repeat
    dy := (msy2-100)-(msy1+100);   //chords are like this, so it doesnt go too far
    dx := (msx2-100)-(msx1+100);
    x := 100+random(dx);
    y := 100+random(dy);
    num := 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10;
    MMouse(x, y, 0, 0);
     if IsUpText('alk here') and not IsUpText('alk here / '+IntToStr(num)+'more options') then
      begin
       avoided := true;
       Mouse(x, y, 0, 0, true);
       wait(3000+random(1000));
      end;
    until(avoided=true);
    end;

    EDIT : now its correct. Now i think its pretty damn good

  4. #4
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    num := 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10;
    MMouse(x, y, 0, 0);
     if IsUpText('alk here') and not IsUpText('alk here / '+IntToStr(num)+'more options') then
      begin

    Just do

    SCAR Code:
    s:= GetUpText;
      if pos('walk here',s) <> 0 then
        if pos('ore options',s) <> 0 then
        begin
        .....
        end;

    I don't think that bit works. I think you're using bitwise operators without knowing o.O

    http://en.wikipedia.org/wiki/Bitwise_operation#OR
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  5. #5
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    I didn't really get what your procedure does? :S i have never seen function pos()...

    And hehe yes i did use bitwise without knowing, but the procedure anyway does work. Now ive tested it and it worked correctly every time.. Please tell me if you find some real error there, that makes the procedure disfunctional.

  6. #6
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Replace my bit with your bit in the bit of your script in my post

    Confuzzled?

    If it works, fine.. But. Still. It shouldn't.

    Oh, and add s as a string var.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  7. #7
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    ok, im not much of a coder so i use your bit thanks dude.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. The fading light
    By Goobs in forum Blogs and Writing
    Replies: 7
    Last Post: 03-21-2009, 10:59 PM
  2. Fire rune seller! Sells Fire runes at Tzzhar!
    By Camaro' in forum RS3 Outdated / Broken Scripts
    Replies: 12
    Last Post: 03-03-2009, 12:19 PM
  3. Light As Air
    By skilld u in forum RS3 Outdated / Broken Scripts
    Replies: 23
    Last Post: 08-05-2008, 08:05 PM

Posting Permissions

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