Results 1 to 3 of 3

Thread: Couple of questions

  1. #1
    Join Date
    Mar 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Couple of questions

    I am starting to script and I looked at the wiki and I was wondering, what is the set of chat chars for the game text in the chatbox, like the text that goes "you do not have an axe which you have the proper woodcutting level to use" when you cut a tree without an axe. Also how do you count the stack of an item?

    Thanks

  2. #2
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not exactly sure what you're asking but do you mean something like

    SCAR Code:
    procedure Randoms;
    begin
      FindNormalRandoms;
      if FindFight then
      begin
        Runto(RunDirection, True);
        Wait(10000+random(456));
        RunBack;
      end;
      if FindBlackChatMessage('have an axe') then
      begin
        NextPlayer(False);
      end;
    end;

    Ignore the first part. The 2nd will look for a black chat message (<---Shocker) of have an axe, which is a unique part of the you have no axe message. If it finds that then you're out of axes and it will go to the next player in the array.
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  3. #3
    Join Date
    Mar 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks, that was it.

    Do you know how to count the stack of an item such as coins?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I have a couple questions to ask a scripter.
    By BustaHemo in forum OSR Help
    Replies: 4
    Last Post: 07-09-2008, 06:11 AM
  2. Couple questions
    By kryptonite in forum OSR Help
    Replies: 5
    Last Post: 07-23-2007, 02:18 AM
  3. A couple of scripting questions.
    By Buckleyindahouse in forum OSR Help
    Replies: 3
    Last Post: 12-01-2006, 06:04 AM

Posting Permissions

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