Poll: u think i might get good at scripting?

Be advised that this is a public poll: other users can see the choice(s) you selected.

Results 1 to 8 of 8

Thread: plz help meh

  1. #1
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default plz help meh

    ok, im making a chickenkiller script, and i wana know two things.

    1) how to make a procedure that wud right click then clickoption eathers. wud it be something like..

    SCAR Code:
    procedure killchicken
    begin;
      If FindColor(x, y,347834, coord,coord,) And IsUpTex(icken) or
      FindColor(x, y,344322, coord,coord,) And IsUpTex(icken) or
      FindColor(x, y,343234, coord,coord,) And IsUpTex(icken) then
        Begin;
          MMouse(x, y)
          Mouse(x, y, 1, 1, true)
            If InFight Then Wait(until(outfight))
              If Outfight then Begin Mouse x, y, 1, 1, false)
              ClickOption(eathers)
            end;


    ima newb to scripting, dont flame me.

    and how to setup a basic... thing that allows the player to set amount of mins then logout player n nextplayer. i duno how to convert min to ms. i was thinking something simple like..

    SCAR Code:
    const
    HowLong= 60;
    then..

    SCAR Code:
    begin
    MarkTime
    //mainloop
    until (TimeFromMark>HowLong*1000)
    end.

    this is probably soo off, but its just an idea i suppose
    Originally Posted by YoHoJo
    I like hentai.

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    To click an option you use ClickOption.

    It's used like this: ClickOption(Bones, 1); It clicks the option Bones. Number 1 means it clicks it on the mainscreen. 2 means it clicks on the Inventory and 3 in the ChatBox if I'm not mistaken.

    I haven't really added timers in any script before but I'm pretty sure that SCAR takes it as Milliseconds already. Wait(1000); means it will wait 1000 Milliseconds, not seconds but I'm not positive.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i know, thats y i did Wait(until(timefrommark>HowLong*1000))

    niow what im hoping that will do, is that it will wait until the time from which the script has started. then, if the time has gone over how long the players want it to be setup for it terminates script*as an example, will make it switchplayer next*. i did *1000 hopefully meaning multiplied by 1000... 1 second. so one second times 60 is..., oh shoot, need multiply by 10000
    Originally Posted by YoHoJo
    I like hentai.

  4. #4
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  5. #5
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Nope 1000 is right Say you wanted it to stay fighting for 5 mins, you would have HowLong = 5, then the time from mark would be HowLong*1000, like you have

  6. #6
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I hate it when other members get involved...they always own me
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  7. #7
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    santa lol, i had it right n i just started scripting over 2 hrs ago!! =) ive been reading tuts fer 2 hrs as well
    Originally Posted by YoHoJo
    I like hentai.

  8. #8
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it brings me joy when i get somethign right like beating freebird on exper ^^
    Originally Posted by YoHoJo
    I like hentai.

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
  •