Jump to content

LUA Scripts

Sign in to follow this  

12 files

  1. spec

    Spec Command 1.1
    Spec Command lua script which works as a shrubbot command. An alternative for the console command "follow".

    To install:

    You need to unzip the file and extract the spec.lua file
    Upload this file into the silent folder on server (/serverip/silent)
    In server.cfg cvar: lua_modules "spec.lua"
    In shrubbot.cfg add the shrubbot command information from inside Readme.txt   What's New in Version 1.1 (See full changelog)
    Fixed uncommented text --READ THIS BEFORE USING
    --------------------------------------------------------------------------------------------
    Cvar lua_modules must be set to "spec.lua"
    Shrubbot command information must be added to shrubbot.cfg
    Shrubbot command information =
    [command]
    command  = spec                            --change this to desired name of command
    exec     = putteam s; specplayer "[1?]"
    desc     = spectates the desired player
    syntax   = [name]
    levels   = 0 1 2 3 4 5                        --add the levels you want this command to be available to

    Enjoy!

    2 downloads

       (0 reviews)

    0 comments

    Submitted

  2. autopromo

    -- AutoPromo - An Enemy Territory Auto Promoting Mod
    ----------------------------------------------------------------------
    description = "AutoPromo"
    version =    "1.1"
    ----------------------------------------------------------------------
    -- This script can be freely used and modified as long as the original
    -- authors are mentioned.
    -- Created by Perlo_0ung, edited by Dragon
    -- Adapted for silEnT mod 0.5.0 and higher
    ----------------------------------------------------------------------
    -- CONFIGURATION
    ----------------------------------------------------------------------
    lvl1xp = 5000  -- XP needed for level 1
    lvl2xp = 15000 -- XP needed for level 2
    lvl3xp = 25000 -- XP needed for level 3
    lvl4xp = 35000 -- XP needed for level 4
    lvl5xp = 50000 -- XP needed for level 5
    ----------------------------------------------------------------------
    -- DO NOT EDIT BELOW THIS LINE
    -- UNLESS YOU KNOW WHAT YOU'RE DOING
    ----------------------------------------------------------------------
    function et_InitGame(levelTime,randomSeed,restart)
        local modname = string.format("%s v%s", description, version)
        et.G_Print(string.format("%s loaded\n", modname))
        et.RegisterModname(modname)
    end
    -- TheSilencerPL - To make it better, faster and less aggravating
    -- for the game, store the XP locally and reuse it
    function et_ClientSpawn(clientNum, revived, teamChange, restoreHealth)
       local valXP = getXP(clientNum)
       if valXP >=  lvl1xp and valXP < lvl2xp then    
          setlevel(clientNum,1,lvl1xp)
       elseif valXP >=  lvl2xp and valXP < lvl3xp then    
          setlevel(clientNum,2,lvl2xp)
       elseif valXP >=  lvl3xp and valXP < lvl4xp then    
          setlevel(clientNum,3,lvl3xp)
       elseif valXP >=  lvl4xp and valXP < lvl5xp then    
          setlevel(clientNum,4,lvl4xp)
       elseif valXP >=  lvl5xp then   
          setlevel(clientNum,5,lvl5xp)
       end
    end
    function getXP(playerID)
       return  et.gentity_get(playerID, "ps.persistant", 0)   
    end
    function getlevel(playerID)
       return et.G_shrubbot_level(playerID)
    end
    function setlevel(playerID, newlevel, xp)
       local name = et.gentity_get(playerID,"pers.netname")
       if isBot(playerID) or noGuid(playerID) then return end
       if newlevel <= getlevel(playerID) then return end
          et.trap_SendServerCommand(-1,"bp \"^nCongratulations ^7"..name.."^n, ^nyou have ^nbeen ^npromoted ^nto ^na ^nlevel ^7"..newlevel.." ^nuser!\"")
          et.trap_SendConsoleCommand( et.EXEC_APPEND, "setlevel ".. playerID.." "..newlevel.."\n" )
          et.trap_SendConsoleCommand( et.EXEC_APPEND, "readconfig\n" )
    end
    function noGuid(playerID)
       local userinfo = et.trap_GetUserinfo( playerID )
       local guid     = et.Info_ValueForKey( userinfo, "sil_guid" )
       if guid == "NO_GUID" or guid == "unknown" then
          return true
       end
    end
    function isBot(playerID)
       if et.gentity_get(playerID,"ps.ping") == 0 then
       return true
       end
    end
     

    4 downloads

       (0 reviews)

    0 comments

    Submitted

  3. LuaESMod

    Lua Enhanced Server Mod 2.7.5c
    Lua Enhanced Server Module or LuaESMod or LESM for short, is a server side mod written in lua which aims to provide many features for server admins and their players.
    It can be used with various mods that support lua 5.1 and up.

    Wiki  
    What's New in Version 2.7.5c (See full changelog)
    Updated connect message config option to show name or username Updated blacklist system Updated regularuser system Updated ignore system to allow sound ignores and permanent ignoring Updated the filesystem stuff to be a little more flexible Updated Sound system to work with ignore system Updated time related config options to except formats like: 5d Added lua side warn system Added automatic warning options Added admin mail events Added many keys to user profile to decide where stuff is printed if at all Added message filter keys to user profile Added Log.OneFile,Colors,Full Config options Added ShrubCommandFix Config option Added Message.ColorReplace,NameMentions,EventMentions Added Profile.AutoCreate,MaxIp,MaxGuid Added Rename table instead of RenameETPlayer Added MinNameLength Added rank to salute and welcome Added seen command Added cvar command Added experimental zelrating command (silent mod only) Added ability to block/convert to chat commands that output global chat/sound Added metricdistance key for profile Fixed showing shrubbot commands in help Removed columns key in favor of automatic cvar get (silent mod only) And probably some more stuff...

    11 downloads

       (0 reviews)

    0 comments

    Submitted

  4. lua_dynamite-counter

    To prevent 30 players to spam up the chat with their 1337 client-side dyno counters, I wrote this small server-side dyno counter.
    Build for and tested on ETpro. (since ETpub 0.9.x has built-in team-only dyno counter, but the LUA should work flawlessly on ETpub aswell).
    ~Necromancer

    8 downloads

       (0 reviews)

    0 comments

    Submitted

  5. adminchat.lua


    Tested with Silent Mod
    Admin chat lua. Allows people to talk in a private chat like /ma. With this it can be great to have for trial members etc or higher level admins your choice.

    17 downloads

       (0 reviews)

    0 comments

    Updated

  6. customvote.lua

    Tested with Silent Mod
    Custom voting system that gives users access to additional useful votes.
    To install:
    You need to unzip the file and extract the files customvote.lua and zzz_customvote.pk3
    Read the readme.txt
    Upload these files into the silent folder on your server
    In server.cfg cvar: lua_modules "customvote.lua"
    Restart the server

    7 downloads

       (0 reviews)

    0 comments

    Updated

  7. dynamic_lua

    Tested with Silent Mod
     
    https://github.com/nrother/dynamiclua

    3 downloads

       (0 reviews)

    0 comments

    Updated

  8. chat.lua

    Tested with Silent Mod

    3 downloads

       (0 reviews)

    0 comments

    Updated

  9. acpro_2-1_etpro_lua

    -Save the "acpro_2-1_etpro_lua" into your ETPro folder.
    -Add the following line to your server configuration:
        set lua_modules "acpro_2-1_etpro_lua"
    -Restart your server.

    2 downloads

       (0 reviews)

    0 comments

    Updated

  10. lua_killing-spree_1-0-2

    bennz's kspree version 1.0.2
    ----------------------------
    -Save the "kspree.lua" into your ETPro folder.
    -Add the following line to your server configuration:
        set lua_modules "kspree.lua"
    -Restart your server.

    contact:
    - mailto: [email protected]
    - bennz @ QuakeNet (#hirntot.org)

    9 downloads

       (0 reviews)

    0 comments

    Submitted

  11. CrazyMod lua

    tested with silent mod
    http://mygamingtalk.com/wiki/Silent_Lua
    A fun crazymod with multiple features allowing users to just go crazy and have a blast spamming and spraying everything in sight!
     @Originally nnlimited ammo and weapons for Hunter
     PM me for help or requests!

    What's New in Version 0.3 (See full changelog)
    •CrazyMod (originally unlimited ammo/weapons mod for hunter @ mygamingtalk.com)
    •Credits: Purple & Lilly (my gf :DDD)
    •3/31/2015 V-0.3
    •Instant spawning
    •Unlimited Ammo
    •Instant Charge
    •Instant Knifes
    •Extra x2 double jump height (disabled needs tweaking)
    •Adrenline
     
     

    3 downloads

       (0 reviews)

    0 comments

    Updated

  12. anti-spawnkill_lua

    anti-spawnkill_lua for some et maps

    9 downloads

       (0 reviews)

    0 comments

    Submitted

Sign in to follow this  
×