supertrunks8's Server Script

Discussion in 'Server and Client Scripting' started by supertrunks8, Oct 9, 2011.

?

Should we add Mafia before tourneys?

Poll closed Oct 19, 2011.
  1. Mafia 1st

    14.3%
  2. Tourney 1st

    85.7%
  1. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    The Script:

    The Script Link: Here!
    Script Link non-raw: Here!
    Auto Update Script Link: Here!

    -----
    Script Includes:

    - Auto Update Server Script.
    - Log on with [HIGHLIGHT]127.0.0.1[/HIGHLIGHT] to get owner status.
    - '~~Server~~' is now changeable.
    - If the source is not db Registered they cannot talk in Main Chat.
    - Most of the swearing words are blocked from being entered Main Chat.
    - Source name bans. (Currently out until finished)
    - Tells you your IP Address in 'beforeLogIn' function.

    And much more!

    -----
    Poll:

    X: Should we add Mafia before Tourneys?

    [ ] : Mafia 1st
    [ ] : Tourney 1st
    -----

    Make sure to vote, you only have 10 days!

    Feel free to comment if you have any ideas, problems, ect. with the scripts.
     
    Last edited: Oct 17, 2011
  2. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
  3. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    It's not every time I change my name. It's when I create a new script._. Ok well anyways sorry. I will use only use this one from now one...
     
  4. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    I suggest you to keep on improving your current scripts ^

    I'd find it more interesting than doing the same base script again and again.

    Also the swear word filter will only filter the curse words if the whole line contain them and nothing else. (Hint: message.indexOf("curseword") > -1 instead of equal comparison)

    And you still don't structure your commands right. You really should put the ending bracket "}" after the block, not before it.
     
  5. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Well when I made the word scripting thread.

    Kalashnikov said ""nigger_" or "u nigger" can still be posted as your filter will work only if the message is exactly equal to those words, use .indexOf() instead." so I will use indexOf(). I will add that now._.
     
  6. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    -----
    Version 3.0.11 is out!:

    - Script now has a Auto Update: Auto Script
    - '*auth' is now *'dbauths' and is a new style.
    - Added a perm channel. 'Poke Chat'.
    - Added '*unaddpa'.
    - Added '*importable [data]' to view someone's team.
    - sendAll , user command.
    - sendHtmlAll , mod^ command.
    - Added '*reloadtiers' to reload your server tiers.
    - Added a commandData.spilt
    - You get muted after 250 letters not 200. 200 is to small. Lol
    -----
     
  7. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    -----
    Version 3.0.12 is out!:

    - /runjs: as a owner command. MUST log on with '127.0.0.1' to be able to use it. So no one does anything to your C hard drive, other.
    - Fixed other bugs.
    - Server Message is now Server.
    - /superimp: to imp data. It will show ~data~. // Will not let you use '~Server~' to IMP the Server Host. */
    - Took out if they post 250 > mute.
    - Added 'Smogon' to the SRC NAME BANS. // May add a lot more._. lol */
    - Made a /Version to show the Script Information.
    -----
     
    Last edited: Oct 14, 2011
  8. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    Name bans... whats the point of them >_>
    I could come in as 'SM0G0N' ._.
     
  9. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    and get banned for going around a ban.
     
  10. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    true... but cant most 'trolls' get around a ban?
    Oh yeah ._. Then you rangeban, but they can get around that too >_>
     
  11. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    They are inaccurate.


    eh? I dont think every Admin and Owner knows which names are banned when a server uses this script.


    P.S. How can you start at a script version like that? logicboom
     
  12. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Lol the name bans._. I am going to add 'toLowerCase()' and/or 'indexOf()'. i BARLEY got started on that. And as Max said I will add like sm0gon, stuff like that. After im finished it will have maybe 30-40 banned. So yeah i know so far ppl can log on and Smogon or SMOGON but Im going to fixz that.___,
     
  13. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    -----
    Version 10.3.13 is out!:

    - Now as color for everything.
    - ~~Server~~ is now ~~Server~~
    - More Trolls have been added to SRC NAME BANS._.
    - Command list.
    - /Version has "+scriptversion+".
    - Have added /ownercommands.
    - Fixed any other little bugs.
    -----
     
    Last edited: Oct 15, 2011
  14. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    -----
    Version 10.3.14 is out!:

    - Swearing words are fixed. (I still have to add on a few more. But I have most of them now.
    With .indexOf("word"); )
    *** shows in Server Window with 'print': Swear Word && Hyperbeem: fuck._. (and sys.stopEvent(); ) .-.
    - /changeAuth is owner command >=3.
    - /runjs (eval) is only for Hyperbeem (me) which I'm going to make in Server Config (In the Scripts to change your name, if you own the Server.)
    - Added couple more src name bans.

    -----
     
    Last edited: Oct 16, 2011
  15. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    Well then. :x Not so good cause the /commands tables
    just fail :/
     
  16. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Bro. I don't fail, if I did I would be able to create scripts, CLEARLY I can so go away. How about just don't post in my Scripting Threads, kbye.
     
  17. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    I didnt say you failed -_-
    And, I can continue posting if i need to.
    And btw,
    what your saying makes no sense.
     
  18. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    'just fail :/' kk sure I do, i know im not the best at HTML ._. don't post in my threads, thanks. Im not gonna get in trouble because of some little kid._.
     
  19. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Version 3.10.15:

    This is a important updated.

    • ~~Server~~ is changed.
    • sys.sendHtmlMessage is now 'botHtmlMessage'.
    • sys.sendHtmlAll is now 'botHtmlAll'.
    • sys.sendMessage is now 'botMessage'.
    • sys.sendAll is now 'botAll'.
    • New Script Check Message.
    • Fixed other bugs.
    • Log in Message is updated.
    • Now has "+servername+".
    • /Script shows the basic of JavaScripting, by me.
    • Took out /Masskick .
    • Took out Source Name Bans until i'm finished.
     
    Last edited: Oct 16, 2011
  20. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    Im not a little kid. Now stop.
    And /Script is kinda useless. ._.
    same for the bot things :x
    the implenting of servername variable thing is nice. ._.
    and thank god you took out masskick :P
     
  21. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Lol well /Script I plan to add more onto. Maybe have /help [Subject] like /help var and give more information. Also I took out "+servername+" because it was causing my whole Script to have Errors everywhere! But Version 3.10.16 is almost out.
     
  22. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Version 3.10.16

    -----
    Version 3.10.16:

    • Mute Message to Server
    • Not dbRegistered Message to Server
    • Took out "+servername+" (due to scripting errors)
    • Improved Welcome Messages.
    • Added more onto /Script Command.
    • ! is now a command start.
    • Took out * as a command start.

    -----
     
  23. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    Hm. that /help thing sounds nice.
    And then 'Topics: var, ids, functions, html'.
    Also to fix the "servername" error, name server again to 'Test' then back. ._.
     
  24. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Oh well I'm getting started on the /Help [Subject] tomorrow. Also the "+servername+" I'll take out until I think I feel like adding it back in.
     
  25. Seiki

    Seiki :derp:

    Joined:
    Aug 20, 2011
    Messages:
    117
    Likes Received:
    0
    well. sounds good >_>
     
  26. nesan

    nesan Love is blind

    Joined:
    Jun 13, 2010
    Messages:
    241
    Likes Received:
    0
    Focus more on organizing the script for better functionality and add documentations. It's hard to read, whatever it is.

    Use a Unicode for "»".

    When it's a direct crash and restart, it changes to a different ASCII. Changes to "Â".
     
  27. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    i know, and most of the scripts i read are also messy. also i have been working on them for a week or so but im in school from 7:45 to 2:15 so i dont rly have much time to fix the messyness... and wat do u mean bu unicode "»".?.......
     
  28. nesan

    nesan Love is blind

    Joined:
    Jun 13, 2010
    Messages:
    241
    Likes Received:
    0
    Instead of

    var border = "<font color=black><timestamp/><h2><font color=darkblue><b>»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»</b>";

    Do

    var border = "<font color=black><timestamp/><h2><font color=darkblue><b>\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB\u00BB";
     
  29. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Ohh okayy. and \u00BB\ does whatz?
     
  30. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    its \u00BB, and its the unicode for "»".
     
  31. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Oh OK well i'm using "»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»Â" not just "»" so I would make it "Â\u00BBÂ" and keep going on?
     
  32. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    just just use \u00BB\u00BB....

    The  comes from a bad text encoding.
     
  33. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    OK I will only use \u00BB now..
     
  34. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Or fix the text encoding issues. Always use it in UTF-8 so you won't have any problems.