1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved sign search

Discussion in 'Skript' started by loadka95, Aug 18, 2017.

Thread Status:
Not open for further replies.
  1. loadka95

    loadka95 Active Member

    Joined:
    Feb 24, 2017
    Messages:
    78
    Likes Received:
    6
    I want to make a seach system and I find a cool way to do it on Hypixel ,is there any possible way to replicate that with skript?, because I don't find anything in docs for that..
    2017-08-18_11.56.18.png
    2017-08-18_11.56.30.png
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Something something with packets, perhaps?

    Send the sign edit packet to the player then get the contents after they send it edited and check the first line?

    Not that I know specific code that may help you but that's an idea.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Yeah, i was trying with packets, and now I almost got it to work :emoji_grinning: Thanks!
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Do everyone here a favor and post the full code when you get it to work, as i'm pretty sure a lot of people, myself included, would want to have this. Thank you in advance
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    The "sign change" event is not working on it, thats the only problem right now, somehow I need to get the text from the line...
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    The player sends a packet to the server on sign edit. Catch that packet and see the first line, but do it only if the player has a variable set, for example, {waitingforsign.%player%}, that you set before sending the sign edit packet to the player, to avoid getting packets from all sign edits that are not a search.

    ...I guess????
     
Thread Status:
Not open for further replies.

Share This Page

Loading...