Results 1 to 6 of 6

Thread: make simba find similar names

  1. #1
    Join Date
    Oct 2017
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default make simba find similar names

    so i'd like to that my simba script finds like similar name for example i have a thing that right clicks players: for example name is "black56". i'd like it to find only the "black" part so the same script could find like "black57".

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by rishula View Post
    so i'd like to that my simba script finds like similar name for example i have a thing that right clicks players: for example name is "black56". i'd like it to find only the "black" part so the same script could find like "black57".
    Lots of useful stuff here: http://docs.villavu.com/simba/scriptref/string.html

  3. #3
    Join Date
    Oct 2017
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    only way to do it is with strings?

  4. #4
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Well in what format is the thing that you're trying to do?
    Everything is done differently, there is not a magical way to accomplish something. If it's just names and every name starts with black, and every name is also the same font/size/spacing then you can search for a bitmap of the "black" part
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  5. #5
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by rishula View Post
    only way to do it is with strings?
    "black56", "black57" etc.. all text are strings.
    !No priv. messages please

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    You may find this old relic useful, the original thread seems to have been deleted but I found a copy on the Wayback Machine.

    These routines helped me learn a lot about manipulating strings, some of these I still use as helper functions today.

    https://web.archive.org/web/20130820...ad.php?t=82205
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •