[Server Scripting] Lutra's Server Script

Discussion in 'Server and Client Scripting' started by Lutra, Jun 3, 2010.

  1. gaara

    gaara New Member

    Joined:
    Mar 16, 2012
    Messages:
    4
    Likes Received:
    0
    Help please.
     
  2. Wanderer M

    Wanderer M Dancer

    Joined:
    Sep 14, 2011
    Messages:
    36
    Likes Received:
    0
    PO Trainer Name:
    Wanderer M
    Do you plan on updating the scripts to V2?
     
  3. Lutra

    Lutra All Gen Battler/Scripter

    Joined:
    Apr 25, 2010
    Messages:
    509
    Likes Received:
    188
    PO Trainer Name:
    Lutra
    Well I'm developing a new script atm, it will support V2. I'll edit the main post when I've released it and I'll let you know if someone updates this older script for V2.
     
  4. Lutra

    Lutra All Gen Battler/Scripter

    Joined:
    Apr 25, 2010
    Messages:
    509
    Likes Received:
    188
    PO Trainer Name:
    Lutra
    Oh I think it might just be because /pm is just an experiment atm, so you have to do like /pm owner*hi*Fenix and the owner must be in lower case. /echo is similar but I put in the if statements for that.
     
  5. Lutra

    Lutra All Gen Battler/Scripter

    Joined:
    Apr 25, 2010
    Messages:
    509
    Likes Received:
    188
    PO Trainer Name:
    Lutra
    I've uploaded a tiny update which fixes the problem with /q and indicates what to replace for V2.

    Between where it says:

    /// REPLACE THIS IN V2 ////

    //////////////////////////

    delete the original code and paste the following in its place:

    Code (javascript):
    1.             var teamcount = sys.teamCount(src), index, srcteamtier, validteam = false;
    2.                 for (index=0; index < teamcount; index++){
    3.                     srcteamtier = sys.tier(src, index);
    4.                     if (tour[channel].tourtier === srcteamtier){
    5.                         validteam = true;
    6.                         break;
    7.                     }
    8.             }
    9.             if (!validteam){
    10.                 sys.sendHtmlMessage(src, "<timestamp/><i>Sorry, you are currently not battling in the " + tour[channel].tourtier + " tier. Change the tier for one of your teams to " + tour[channel].tourtier + " to be able to join.</i>", channel);
    11.                 return;
    12.             }
     
    Last edited: Nov 24, 2012
  6. Dezhovator

    Dezhovator Member

    Joined:
    Jul 21, 2012
    Messages:
    33
    Likes Received:
    0
    I'm waiting for it.
     
  7. Poof!

    Poof! New Member

    Joined:
    Apr 2, 2012
    Messages:
    3
    Likes Received:
    0
    I have tested this.
    It works, but unfortunately, when the opponent forfeits or loses the match, it is not able to automatically disqualify them from tourney.
    Great work ! ^^
    - Poof!
     
  8. Honigschnute

    Honigschnute New Member

    Joined:
    Aug 13, 2012
    Messages:
    21
    Likes Received:
    0
    i hope you have enough inspiration to add a tour system! i will ever use your script, i like it :D
     
  9. Lutra

    Lutra All Gen Battler/Scripter

    Joined:
    Apr 25, 2010
    Messages:
    509
    Likes Received:
    188
    PO Trainer Name:
    Lutra
    I am pleased to announce I will begin work on implementing a tournament supplement script. It will be based off the original tournament code, but adapted to POv2 and my newer script. The tournament will therefore now check that a player has one team that is viable for the tournament when attempting to join and the tournament message displays will incorporate colour gradients. Also, updated the OP slightly :)