Results 1 to 8 of 8

Thread: need help on droping random items

  1. #1
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help on droping random items

    hey after you do randoms and you get items how do you make the script drop just the items you get from randoms
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  2. #2
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well if you are making a miner or wcer you should do something like this:

    SCAR Code:
    procedure DropRandomItems;
    begin
      for i:= 1 to 28 do
      begin
        repeat
          if ExistsItem(i) and (not(FindColortolerance(x,y, 0202{Color of e.g the ore}, x1, y1, x2, y2, 20) then
          Chooseoption('rop');
        end;
      until( { until stuff here })
    end;

    [22:20] <[-jesus-]> freddy, go uninstall yourself

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

    Default

    Quote Originally Posted by Dumpin View Post
    well if you are making a miner or wcer you should do something like this:

    SCAR Code:
    procedure DropRandomItems;
    begin
      for i:= 1 to 28 do
      begin
        repeat
          if ExistsItem(i) and (not(FindColortolerance(x,y, 0202{Color of e.g the ore}, x1, y1, x2, y2, 20) then
          Chooseoption('rop');
        end;
      until( { until stuff here })
    end;
    Ehm...sorry, but did you look at that? You've got begins mixed up with repeats. There's no mouse clicking, and you can't do a ChooseOption without having the popup screen thing...which you get by a right mouse click.
    [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]

  4. #4
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol but is this function:
    if ExistsItem(i) and (not(FindColortolerance(x,y, 0202{Color of e.g the ore}, x1, y1, x2, y2, 20) then
    basicly what i need though
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  5. #5
    Join Date
    Dec 2007
    Location
    Canada
    Posts
    187
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    haha Santa Clause has a very good point. I am not that experienced in SCAR scripting but I am learning and I spotted those errors otherwise that was a fairly good explanation to his problem.

    ~Insanomano~

  6. #6
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it was a quick example, and no, i didn't really looked at it ;D

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  7. #7
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure DropItemsExceptColors(colorz : TIntegerArray);
    var IC : TPoint;
    var I, J, x, y : integer;
    begin
      Gametab(4);
      Wait(1000 + random(1000));
      for i := 1 to 28 do
      begin
        Wait(50);
        if ExistsItem(i) then
        begin
          IC := ItemCoords(i)
          For j := 0 to (GetArrayLength(Colorz)-1) do
          begin
            if FindColorSpiralTolerance(x, y, colorz[j],ic.x - 20, ic.y - 20, ic.x + 20, ic.y + 20, 5) then break;
            if j = (GetArrayLength(Colorz)-1) then dropitem(i);
          end;
        end;
      end;
    end;



    EDIT: Colorz are colors of items what should not be dropped
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  8. #8
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks for your help every 1 i worked summink out
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 04-16-2009, 06:40 AM
  2. Droping around 10m in game.
    By Ashur2Good in forum News and General
    Replies: 12
    Last Post: 09-20-2008, 03:52 AM
  3. Best items
    By hardman in forum News and General
    Replies: 6
    Last Post: 08-08-2007, 01:16 AM
  4. Are rare items tradeable? Is there a way to trade nontradeable items?
    By native77 in forum RuneScape News and General
    Replies: 3
    Last Post: 02-11-2007, 07:17 PM
  5. Random Event Items
    By Rick in forum News and General
    Replies: 9
    Last Post: 02-03-2007, 03:14 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
  •