Results 1 to 6 of 6

Thread: Reflection help please

  1. #1
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection help please

    Ok some im trying to find a fishing spot which is a npc, and the id is 329 so what do i need to do to find it ? I've gone though Cstrike tut and could not seem to find it.

    Thanks
    Quote Originally Posted by DD on IRC
    wanted to troll the troll

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Well technically the only thing required to find NPCs is the line of code "GetNPC(329)" although you'll find that NPCs are actually less easy to get than that and will require some innovation to provide failsafes.

    I'm releasing a *Learners* version of my script very soon which has detailed comments on every line of the script. You may find it useful

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  3. #3
    Join Date
    Oct 2010
    Location
    Under a bridge
    Posts
    648
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks, umm lets see what i can find in the include Also a tut like that would be great i find seeing a working item helps me learn better
    Quote Originally Posted by DD on IRC
    wanted to troll the troll

  4. #4
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Simba Code:
    function FindFishingSpot(var Tile: TTile): Boolean;
    var
      fishSpot: TNPC;
    begin
      if not LoggedIn then Exit;
      fishSpot := GetNPC(329);
      if not (fishSpot = NULL_NPC) then
      begin
        Tile := fishSpot.Tile;
        result := true;
      end;
    end;

  5. #5
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    i would do...

    Simba Code:
    function FindSpot(var Tile: TTile): Boolean;
    var
      NPCs: TNPCArray;
      i: Integer;
    begin
      if not(LoggedIn) then
        Exit;
      NPCs := SortNPCs(GetNPCsBy(329));
      for i := 0 to High(NPCs) do
        if (TileOnMS(NPCs[i].Tile)) then
        begin
          Result := True;
          Tile := NPCs[i].Tile;
          Break;
        end;
    end;

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    i would do...

    Simba Code:
    function FindSpot(var Tile: TTile): Boolean;
    var
      NPCs: TNPCArray;
      i: Integer;
    begin
      if not(LoggedIn) then
        Exit;
      NPCs := SortNPCs(GetNPCsBy(329));
      for i := 0 to High(NPCs) do
        if (TileOnMS(NPCs[i].Tile)) then
        begin
          Result := True;
          Tile := NPCs[i].Tile;
          Break;
        end;
    end;
    GetNPC sorts them...

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
  •