Results 1 to 4 of 4

Thread: Right click trade on npc?

  1. #1
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Right click trade on npc?

    How would i detect, and then right click and trade a NPC.

    If i use the findobjectcustom function, what do i do after that to trade the NPC?

    Thanks for the help.

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Simba Code:
    MMouse(x, y, 3, 3);
    If( WaitUptextMulti(['alk-to', 'andit shop', 'hopkeep'], 450))Then
    Begin
      Mouse(x, y, 3, 3, False);
      WaitOption('Trade', 450);
      FFlag(0);
      Result := WaitFunc(@ShopScreen, 150, 1000);
      if(Result)Then
        Break;
    End;

    reply if u need addional help.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Thanks for that ill try it on my script later.
    While your still here, after this how would i choose to buy x amount of one of the items, then x amount of the other items the shopkeeper is selling?

  4. #4
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    first u gotta find where the item you want to buy is. (DTM, color, bitmap, even TPA) you need coordinates.
    Simba Code:
    Mouse(x, y, 10, 10, false);
    WaitOption('Buy X', 450);
    Wait(1000); //just a wait for the chatbox to update
    Typesend('X of number u want to buy');

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

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
  •