[Client Scripting] Client scripts

Discussion in 'Server and Client Scripting' started by coyotte508, Jul 7, 2012.

  1. Johnidel

    Johnidel Chirp chirp

    Joined:
    May 9, 2011
    Messages:
    242
    Likes Received:
    19
    Guess, I'll ask here, how would you go about sending a challenge via scripts? Assuming there was a way, I tried fiddling around with sendChallengeStuff(), but I could not figure out what const ChallengeInfo &c was. Is there a way to retrieve it from the client? or...?
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    There's no way for now. Can you give me an example of why this would be useful?
     
  3. Johnidel

    Johnidel Chirp chirp

    Joined:
    May 9, 2011
    Messages:
    242
    Likes Received:
    19
    Anyone who wanted to do anything in terms of AI/battle bot would be able to automate the process, like shanai and ,challenge-me. Yes, it is not necessary to automate the process but I feel that it is a burden/obstacle in terms of any battling AI on PO.
     
  4. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Well then i'll look into it
     
  5. Manectric-Rang

    Manectric-Rang Unown-Ç ftw

    Joined:
    Mar 21, 2012
    Messages:
    60
    Likes Received:
    0
    I wanted to do this, but it is not possible. Accepting a challenge via scripts is also impossible. I got this to accept challenges via server scripts (sys.forceBattle), but that does not work if you are not the server host.


    Mmm... Why is sys.pokeAbility(poke_id, slot, gen) not among sys functions? I mean, if you do sys.pokeAbility() it returns Script Error line 1: TypeError: Result of expression 'sys.pokeAbility' [undefined] is not a function.
     
  6. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

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

    Yttrium Well-Known Member Developer Developer

    Joined:
    Sep 29, 2010
    Messages:
    619
    Likes Received:
    283
    PO Trainer Name:
    Yttrium
    Is there a way to change the user's name's color through scripts?
     
  8. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    Depends on how you mean. In the player list? No. In messages sent? Yes, just intercept the message in beforeChannelMessage using stopEvent() then create your own html message
     
  9. Yttrium

    Yttrium Well-Known Member Developer Developer

    Joined:
    Sep 29, 2010
    Messages:
    619
    Likes Received:
    283
    PO Trainer Name:
    Yttrium
    Oh, okay. I meant changing your color like you can through teambuilder.
     
    Nightfall Alicorn likes this.
  10. Crystal Moogle

    Crystal Moogle Ayaya~ Administrator Administrator

    Joined:
    Jul 19, 2010
    Messages:
    3,205
    Likes Received:
    531
    PO Trainer Name:
    Hanako
    Ooooh. I can see about seeing if it's possible to add that then
     
    Yttrium and Nightfall Alicorn like this.
  11. 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 change the directory of the music folder by script? Closest I've got is opening the sound config menu. Example sys.musicDir(); returns the current while sys.musicDir("c:/example/"); sets the new directory.

    I know that battle.musicPlayStop(); stops the current soundtrack and plays a random next song in the directory. I know users been after music change during certain conditions of battle.
     
  12. Yttrium

    Yttrium Well-Known Member Developer Developer

    Joined:
    Sep 29, 2010
    Messages:
    619
    Likes Received:
    283
    PO Trainer Name:
    Yttrium
    Would this be possible?
     
    Nightfall Alicorn likes this.
  13. 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
    Not at the moment. Someone needs to code it in with QT SDK. I don't know how to code in it though sorry. If you ask turbedi and it's going to be used, he may add it. :x