[SCRIPT] Zcript (Admin tools)

  • English

We've posted an important announcement regarding the current situation and the future of the game: Announcement

  • Stealth wrote:

    I have a couple of players I would like to add as moderators and give access to the script commands but without them having access to the default server commands. So that they can kick and ban griefers, edit areas etc, but not be able to spawn items, fly etc.

    Is this possible and how?

    thankyou



    yes and no lol it will be once we work out groups witch will happen just give it time ATM no sorry


    :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :S
  • Doc: rwapiref.byethost15.com/classl…1_player_information.html
    file: script.lua

    Added BrokenBones line to heal funktion.
    [lua]function heal(target)
    local tName = target:getPlayerName()
    target:setPlayerHealth(100);
    target:setPlayerHunger(100);
    target:setPlayerThirst(100);
    target:setBrokenBones(false); -- fix broken bones
    target:sendTextMessage("You've been healed !")
    end[/lua]

    Added whispers to be shown on both screens from/to.
    [lua]elseif cmd[1] == "/w" then
    if not cmd[2] then return msgInvalidUsage(event.player) end
    local args = explode(" ", cmd[2], 2)
    if not args[2] then return msgInvalidUsage(event.player) end
    -- Show message to reciver
    local toPlayer = server:findPlayerByName(args[1])
    if not toPlayer then return msgPlayerNotFound(event.player) end
    toPlayer:sendTextMessage(timePrefix{text="[#FF55FF]"..event.player:getName().." whispers: "..args[2]});
    -- Show whisper to creator
    event.player:sendTextMessage(timePrefix{text="[#FF55FF]to "..args[1]..": "..args[2]});
    end[/lua]

    thx for the script, I injoy it so much.

    The post was edited 1 time, last by Ambu ().

  • This script does not work on 0.6.4.4. I can not go to your server.

    Display Spoiler
    Client: 1 removed
    03.02.2016 08:14 C.c
    INFO: Delete Client ID: 1
    org.luaj.vm2.LuaError: @/home/rising-server/Steam/steamapps/common/RisingWorldDedicatedServer/scripts/Zcript by Zabka/script.lua:558 attempt to call nil
    at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source)
    at org.luaj.vm2.LuaValue.callmt(Unknown Source)
    at org.luaj.vm2.LuaValue.call(Unknown Source)
    at org.luaj.vm2.LuaClosure.execute(Unknown Source)
    at org.luaj.vm2.LuaClosure.onInvoke(Unknown Source)
    at org.luaj.vm2.LuaClosure.invoke(Unknown Source)
    at lua.ScriptEventList.triggerEvent(SourceFile:20)
    at lua.ScriptEventManager.triggerEvent(SourceFile:32)
    at C.c.connectionRemoved(SourceFile:1171)
    at de.jiw.network.NetworkServer.removeClient(NetworkServer.java:428)
    at de.jiw.network.NetworkServer.removeClient(NetworkServer.java:403)
    at de.jiw.network.kernel.KernelAdapter.connectionClosed(KernelAdapter.java:77)
    at de.jiw.network.kernel.KernelAdapter.run(KernelAdapter.java:235)
  • bobi7272 wrote:

    This script does not work on 0.6.4.4. I can not go to your server.

    Display Spoiler
    Client: 1 removed
    03.02.2016 08:14 C.c
    INFO: Delete Client ID: 1
    org.luaj.vm2.LuaError: @/home/rising-server/Steam/steamapps/common/RisingWorldDedicatedServer/scripts/Zcript by Zabka/script.lua:558 attempt to call nil
    at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source)
    at org.luaj.vm2.LuaValue.callmt(Unknown Source)
    at org.luaj.vm2.LuaValue.call(Unknown Source)
    at org.luaj.vm2.LuaClosure.execute(Unknown Source)
    at org.luaj.vm2.LuaClosure.onInvoke(Unknown Source)
    at org.luaj.vm2.LuaClosure.invoke(Unknown Source)
    at lua.ScriptEventList.triggerEvent(SourceFile:20)
    at lua.ScriptEventManager.triggerEvent(SourceFile:32)
    at C.c.connectionRemoved(SourceFile:1171)
    at de.jiw.network.NetworkServer.removeClient(NetworkServer.java:428)
    at de.jiw.network.NetworkServer.removeClient(NetworkServer.java:403)
    at de.jiw.network.kernel.KernelAdapter.connectionClosed(KernelAdapter.java:77)
    at de.jiw.network.kernel.KernelAdapter.run(KernelAdapter.java:235)


    intresting we seem to be getting an error on another script of ours when getDBID is called too ? might dig more into whats going on here


    had a look and getDBID does seem to be working now back to looking at what it might be


    :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :S

    The post was edited 1 time, last by yahgiggle ().

  • bleckman wrote:

    i don;t know, but the script my be kicking people off, my server was full last night, now no one is on it


    This thread and script is unsupported now oO i updated it some months back try this [Script] Admin Tools updated Zcript 0.5.6.1


    :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :S
  • yahgiggle wrote:

    This thread and script is unsupported now oO i updated it some months back try this [Script] Admin Tools updated Zcript 0.5.6.1

    The correct link is [Script] Admin Tools updated Zcript 0.5.6.1

    (apparently, case sensitivity changed at some point...)
    __________
    My plug-ins: Planks 'n Beams, GPS, UPS, Weather control, Plugin Central, RWGui (GUI back-end), Bank (Money back end)