[Server Scripting] Parameters for <a href='po:xyz'>

Discussion in 'Server and Client Scripting' started by Wanderer M, Dec 6, 2012.

  1. Wanderer M

    Wanderer M Dancer

    Joined:
    Sep 14, 2011
    Messages:
    36
    Likes Received:
    0
    PO Trainer Name:
    Wanderer M
    What are the parameters one can substitute for 'xyz' in the topic title?

    I know of
    HTML:
    1. <a href='po:watch/battleId'>
    and
    HTML:
    1. <a href='po:reconnect'>
    but I recall there are more than these two.
     
  2. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
  3. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Code (html5):
    1.  
    2. <a href="po:join/channelname">Join Tournaments</a>
    3. <a href="po:watchplayer/name_or_id">Watch John's match</a>
    4. <a href="po:pm/name_or_id">PM John</a>
    5. <a href="po:ignore/name_or_id">Ignore John</a>
    6.  
     
  4. Wanderer M

    Wanderer M Dancer

    Joined:
    Sep 14, 2011
    Messages:
    36
    Likes Received:
    0
    PO Trainer Name:
    Wanderer M
    Ah, couldn't find that thread for some reason, thanks!
     
  5. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    The link above that Crystal has provided is no longer available. I've asked auth and they provided a link to new location. I post it here so others can find them.
    https://github.com/po-devs/pokemon-online/wiki/po:-Protocol

    Also I think this thread has the wrong prefix. All these all look like Client Scripting only protocols.
     
  6. sulcata

    sulcata stéphane curry best waifu Forum Moderator Server Administrator Forum Moderator Server Administrator

    Joined:
    Jun 13, 2012
    Messages:
    968
    Likes Received:
    744
    The server can send HTML in the same way, hence the reconnect button you always see with or without client scripts. I don't think it was initially intended for client scripts from the way the wiki is worded, but it functions just fine.
     
    Nightfall Alicorn likes this.
  7. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    Also the thread is like 2.5 years old, so that could be one of the issues.
     
    Nightfall Alicorn and sulcata like this.
  8. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    Is it possible to call a client script function with this method? I've tried this but no luck. Was hoping to try new script method with more GUI stuff where I click a html link it calls a function.
    Code (JavaScript):
    1. <a href='javascript:myFunction();'>Run function</a> // alerts Internet Explorer error
    2. <a href='myFunction();'>Run function</a> // doesn't work
    3. <a href='po:myFunction();'>Run function</a> // doesn't work
    4. <a onClick='myFunction();'>Run function</a> // doesn't work
     
  9. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    No, nor should it. You could use sendMessage for commands though
     
    Nightfall Alicorn likes this.
  10. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    I see. Thanks though. I was trying to make something where all user's name in messages are all click-able. Making a html table of options, for that user, like channel kick and lookup, and more.