Results 1 to 3 of 3

Thread: Trading player based on name

  1. #1
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default Trading player based on name

    Hello guys

    As you can probably guess by the name, i need a way of trading a player. I want to trade the person based on somthing more accurate than colors (Most likely their name as that would make it easy to add new "masters"). As you can imagine, nobody want their bot to trade a random person their bank. I can easily make the "master" trade the botter back and accept the items, but i'm pretty lost. In advanced thanks.

    -Rune
    Last edited by rune3132; 01-03-2016 at 06:00 PM.

  2. #2
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    I have not tried this; but i might fiddle around with my nat runner in karamja.

    Why not use reflection - im not sure if players can be found by NPC.Find Functions but i see no reason it wont.

    If you are to use colour you would need to find and object that has colour so obscure they cant be confused with others; and make your bots carry that objects.

    A soft example might be Bronze Knives; As no nobody generally has these equiped.

    When a trade it sent; you can use the trade acceptance text to confirm who is proposing the trade.

    <------------------>



  3. #3
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Th function for anyone interest is -

    TReflectPlayerArray.GetAll; - This function gets all player names near you

    TReflectPlayerArray.Get(Name: string); - This function will look for a specific name; found through .GetAll

    <------------------>



Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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