Results 1 to 3 of 3

Thread: checking if 'stunned' ?

  1. #1
    Join Date
    Jan 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default checking if 'stunned' ?

    How can i reliably find out if my character is 'stunned' while pickpocketing?

    I am currently using this:

    Code:
    Procedure checkafterpunch;
    Begin
      Wait(RandomRange(650, 975));
      if findblackchatmessage('hump') then
        Begin
        writeln('ok punch')   //
        pocket;
        end;
      if findblackchatmessage('glances') then
        Begin
        writeln ('arrgh im stunned');
        wait (3000 + random (500));
        end;
    end;
    But the above doesnt always seem to work. It could be that i am trying to 'read' it too soon? or more likely is the text changing slightly so simba cant read it?

    I also tried to check the XP counter, but again the timing seems to be an issue, and the time taken for the XP to appear on the counter seems non linear.

    is there a better way to do this, or any other tips more experienced members can tell me?



    ps current exp/h (was closer to 137k after 12 mins but then i messed with it)

    Time: 23 Minutes and 26 Seconds
    We have gained 40990 Thieving Experience!
    We are gaining 104878 Thieving Experience per Hour!

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

    Default

    Check out this nifty function I made:
    http://villavu.com/forum/showthread.php?t=74087

    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..."


  3. #3
    Join Date
    Jan 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    wow thats great, if a bit beyond me

    I will try to work out what it does and add it in thanks.

    I always assumed the script i am doing for myself (rhymes with donkey wife lighters) already exists as a members script? The only way i can learn this stuff from scratch is breaking down each step and playing with it one function/procedure at a time, all good fun.

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
  •