Skip to content

etc_mainecho.lua - bad argument #1 to 'utf_format' #28

Description

@Sopor

This script will show this error when i run it in Luadch 3.1.9:
etc_mainecho.lua:116: bad argument #1 to 'utf_format' (string expected, got table) (listener: onTimer; script: 'etc_mainecho.lua')

Oh, i think i know why.

I have a newer version that has not yet been released by pulsar (it should have been released after i tested it).

Could you fix this issue as you did with the old etc_mainecho.lua v0.3 and also make it compatible with Luadch 3.x?

Here is the etc_mainecho_v0.4.zip and it won't run in Luadch 3.x.

The etc_mainecho.tbl also look a bit different than the old one. Here you can have more that one response message on the same trigger:

return {

    -- [ "trigger" ] = { "response msg 1", "response msg 2" },   --// use %s for users nick (optional)

    [ "^morning" ] = {

    "Good morning %s",

    },
    [ "^nite$" ] = {

    "Good night %s",

    },
    [ "gn8" ] = {

    "Good night %s",

    },
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions