[Server Scripting] TheUnknownOne's Server Script

Discussion in 'Server and Client Scripting' started by TheUnknownOne, Aug 24, 2011.

?

Should /info be in a table?

Poll closed Sep 20, 2011.
  1. Yes

    100.0%
  2. No

    0 vote(s)
    0.0%
  1. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Available at:
    https://github.com/TheUnknownOne/PO-Server-Tools

    v2 Compatible

    Installation guide:
    1. Go to https://raw.github.com/TheUnknownOne/PO-Server-Tools/master/scripts.js
    2. Press Ctrl + A (Selects All)
    3. Ctrl + C.
    4. Remove everything in your server's script window box (Ctrl + A, Backspace).
    5. Ctrl + V
    6. Press 'Ok'.
    7. Done. Shouldn't take more than 1.5 mins if you have a good computer.

    Changelog: here
    What's not done: here

    Found a bug?
    Report it via GitHub or send me a private message.

    Having trouble with crashes?
    The script should decide when the server has crashed and it will automatically turn this to on. [Latest Update]

    If you open the script window, and scroll down a bit you will see:
    NoCrash: false,

    Change this to:
    NoCrash: true,

    Basically changing 'false' to 'true' (without quotes). Click on 'Ok' and it shouldn't crash anymore, although it does limit a few things, but nothing really major.
    This shouldn't be necessary on servers 2.0.6
     
    Last edited: May 15, 2013
    roloc likes this.
  2. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Oh thats a pretty awesome Script. (It's waqq better than mine) lol but nice job and keep it up!~
     
  3. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Thanks! ^ ^

    Heres another example for styles
    Code (javascript):
    1.  
    2. {
    3. "name":"Green Daylight",
    4. "author":"TheUnknownOne",
    5. "styling":{
    6. "hashico":"<font color=green>*</font></b>",
    7. "borderStart":"<font color=green>»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»</font>",
    8. "borderEnd":"<font color=green>»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»</font>",
    9. "cmdicon":"<font color=green>*</font><b>",
    10. "escape":"</b>",
    11. "cmdmessage":"",
    12. "time":false,
    13. "authheader":"<font size=5><B>{{Name}}</b></font>",
    14. "headerstyle":"<font size=5><B>{{Name}}</b></font>"
    15. }
    16. }
     
    Last edited: Aug 25, 2011
  4. Im_The_Devil

    Im_The_Devil I liek cookiez x3

    Joined:
    Jul 27, 2011
    Messages:
    93
    Likes Received:
    0
    Error in Alpha Version of Your Scripts: ._.
    [​IMG]
     
    Last edited: Sep 6, 2011
  5. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    2.0 is done now... Alpha version link still exists(might be deleted soon).
    V. 2 link is the Full Script, might have some bugs.

    Working on the auto update script now, will edit once done.

    Edit: Done. Auto Update will cause errors.. Im not sure if they make a difference
     
    Last edited: Aug 31, 2011
  6. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    2.0.80 is out:

    Updated with a simple trivia (will be expanded soon), and some bug fixes.
    Also(almost forgot): Perm channels will be recreated automatically when starting up/[re]loading scripts/updating.
    Small change(almost forgot, too): /perm has been moved to channelowner commands due to auto recreate update.
     
  7. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    Sup TUO . I've tried out your scripts on my server, but for some reason when i typed /changegl 1:Hiragana , it messed up the /league command. when i type /league, it only shows


    League

    Gym Leaders[/HIDE]

    instead of showing

    League

    Gym Leaders

    Elite 4

    Champion[/HIDE]

    LIke before

    I also deleted the script and posted the original scripts... but still has the problem with the /league commands
     
    Last edited: Sep 1, 2011
  8. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Version 2.0.91:

    Added /changeicon + fixes.

    Oh and, league problem is fixed in 2.0.91
     
  9. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    Now the /league command won't work at all .____.
     
  10. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Try restarting.. it worked for me.
     
  11. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    When you say restart, you mean reboot server? if so, i've done that. Not working
     
  12. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Oh yeah, forgot.
    League commands(/league, /changegl, changeelite and /changechampion) display in League.
    I'll make a notifier for it soon(Message that player isn't in league channel/wasn't used in league channel).
     
  13. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    Thanks tuo, it works at the League Channel :P
     
  14. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Release of 2.1.40:

    More Trivia Commands
    + Bug fixes

    (Style guide coming soon btw)
     
  15. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    Tuo, i have never did anything to the tires, so when i opened my server, certain pokemons like breloom technician were allowed on wifi. But when i used your script, the tires were changed... how do i fix that?



    ..... its BANNING a lot of abilities v_______v
     
    Last edited: Sep 3, 2011
  16. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Huh?
    Those are PO DW ability bans.
    Either change tier names, or just play in DW tiers.
     
  17. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    Is there a way to change it though? Can you tell me how to make it the default Tires?
     
    Last edited: Sep 3, 2011
  18. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    default tiers: /synctiers (abilities still will be banned, just play dw)
    Iptions>Tiers><edit tier name, save and apply> for no ability bans, though you need to change most tier's names.
     
  19. Valstin

    Valstin iPLayCOD

    Joined:
    Aug 11, 2011
    Messages:
    126
    Likes Received:
    0
    is there a /synctiers command? if so how to use... also. i kno i've been asking alot, but how do i delete a channel?


    Suggestions: Can you add a /rangeban xxx.xxx command like Pokemon Online's script?
     
    Last edited: Sep 3, 2011
  20. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Synctiers = update tierlist,
    Deleting channels: /destroychan (something like that) or /permoff and make everyone leave(doesn't work with main/default script channels)

    /rangeban already exists, so does /rangeunban

    Useage: /rangeban <Some ip here>:Time in hours(optional)

    Might have some bugs @ rangeban command, just shorten the ip.
     
  21. Im_The_Devil

    Im_The_Devil I liek cookiez x3

    Joined:
    Jul 27, 2011
    Messages:
    93
    Likes Received:
    0
    (15:16:17) ~~Bot~~: Please wait 3 seconds before talking again <------- How do i fix this :D
     
  22. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Register your alias :3
     
  23. Im_The_Devil

    Im_The_Devil I liek cookiez x3

    Joined:
    Jul 27, 2011
    Messages:
    93
    Likes Received:
    0
    No, I mean how can I completely eliminate that spam prevention thingy :l
    My clients are getting annoyed by that :D
     
  24. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Thats the only flood check, anyway:

    changed lines 3628-34 into:

    PHP:
    1. /*
    2. if(!sys.dbRegistered(srcname)) {
    3. if(poUser.lastMsg+3-sys.time()*1 > 0&&!poChan.isChanMod(src)&&sys.auth(src) < 1&&poUser.lastMsg != 0) {
    4. botMessage(src,"Please wait "+getTimeString(poUser.lastMsg+3-sys.time()*1)+" before talking again");
    5. sys.sendHtmlAll("<timestamp/><b>[#"+sys.channel(chan)+"]Halted Message</b> -- <font color="+getColor+"><b>"+sys.name(src)+":</b></font> "+ html_escape(message), watch);
    6. sys.stopEvent();
    7. return;
    8. } }*/
     
  25. Im_The_Devil

    Im_The_Devil I liek cookiez x3

    Joined:
    Jul 27, 2011
    Messages:
    93
    Likes Received:
    0
    Bug Report:

    [​IMG]

    "/ban *Name*" <----- Does not work

    On Server > Players, their status is not banned.
     
  26. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Im pretty use it worked before..........
    Also quite unable to test cause crack in screen >_>
     
  27. Im_The_Devil

    Im_The_Devil I liek cookiez x3

    Joined:
    Jul 27, 2011
    Messages:
    93
    Likes Received:
    0
    There's a error in the server.exe window upon executing /ban command.
    Thus it renders it unusable.
    "Script Error line 6310: ReferenceError: Can't find variable: tarid"
    It should be these lines
    Code (text):
    1. sys.kick(tarid);
    2. sys.ban(mcmd[0])
     
    Last edited: Sep 8, 2011
  28. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Well with

    Code (text):
    1.  
    2. sys.kick(tarid);
    3.  
    It should be:

    Code (text):
    1.  
    2. sys.kick(src);
    3.  
    Fix that and it should work just fine.

    Because when i had /ip [person] it said can't find tarid.

    But i changed it to "src" and it worked fine (:
     
    Last edited: Sep 8, 2011
  29. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    /Ip would return user's ip, and that code will kick the user, instead of the target.

    Fixed and improved, now using ban(name) [custom function]
     
    Last edited: Sep 8, 2011
  30. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Updated once again, this time:
    V 2.1.78 ~
    Fixed bugs, added random crap, fixed stuff, updated dw list, etc.
    Improved /showteam greatly, and added command stats.

    Edit:

    V 2.1.81 (Its only a small change, so i decided to edit post):
    Added 'last user' to commandstats, updated the commands(/scriptinfo displays properly without any edits), and some other things, such as sys.dbAuths() fixed(i think ;-;)
     
    Last edited: Sep 10, 2011
  31. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    2.1.85 is out!
    This version has:

    • Auths can use mod channel commands, if they are mod. Etc.
    • channelmembers command is updating cauth of server auth now so that it displays correctly
    • Script Version link, and ability to turn auto update off
    • Scripts update each hour now, if AUScripts is on(This isn't tested though)
    • Other changes and bug fixes
     
  32. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Code (text):
    1.  
    2. sys.kick(src)
    3.  
    Yeah but
    Code (text):
    1.  
    2. sys.kick(tar)
    3.  
    now that kicks the tar.
     
  33. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Version 2.1.90!

    Features:
    • Speeded up /rules, /scriptinfo, and /authlist
    • Updated Rules
    • Changed /scriptinfo and added alot
    • Changed /authlist
    • HighPermission users
    • /getAnnouncement fixed
    • Changes made to league and trivia commands
    • Other changes and fixes
     
  34. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Wow TUO. Nice update, your coming at us soo fast i can hardly keep up :)
     
  35. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Yeah i made alot of subversions too, each version num has a 'subtheme', which is its prefix.
    For example, current script version is 2.0.90 - Air Styles, because 'Air' is this versions subtheme.
    Well scripts getting updated every day, sometimes more.
     
  36. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Oh nice :) I update my Scripts every 4-10 days :p but I add alot of new things :)
     
  37. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Version updates every 3-5 days or so,
    Oh and i added a /ranking... But i need a table for it, guess i'l try making one >_>
     
  38. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Ok that would be very nice :) GL.
     
  39. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Already finished it :x
     
  40. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    OH nice i was on JC and i saw the command, its very cool. Also nice work on your Script.