Search found 68 matches

by zhenzh
Fri Nov 24, 2023 11:34 am
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 20
Views: 39027

Re: Wait and Wait Line

It's very easy defining an alias to invoke a coroutine function like:

Code: Select all

coroutine.wrap(function()
    <sing or say>
    wait(math.random(1, 5))
    <sing or say>
    wait(math.random(1, 5))
    <sing or say>
end )
by zhenzh
Thu Oct 05, 2023 3:37 pm
Forum: General Forum
Topic: Whats Your Gui Look like?
Replies: 114
Views: 405679

Re: Whats Your Gui Look like?

Just made UI for my playing mud with Chinese Wuxia theme
5003D5B2-8298-4259-9214-28092A73307F.jpg
by zhenzh
Fri Apr 21, 2023 4:37 am
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 20
Views: 39027

Re: Wait and Wait Line

@tyst8 does this still work on mudlet v 4.16.0? Should work, the module is composed with pure lua code which should not be impacted on the release update of mudlet, unless tempTrigger() and tempTimer() get incompatible. wait_line(): [string "Alias: alias - test"]:5: attempt to index local ...
by zhenzh
Thu Apr 20, 2023 7:19 am
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 20
Views: 39027

Re: Wait and Wait Line

@Vagonuth I think you may get something misunderstood. The wait module uses coroutine suspend/yield function to implement the action WAIT. So, it requires all your codes are included by an overall coroutine. In your example, the foo() and print() function will not be correctly controlled by the wait...
by zhenzh
Sat Jun 25, 2022 4:42 am
Forum: General Forum
Topic: Can mudlet provide websocket related functions
Replies: 1
Views: 13825

Can mudlet provide websocket related functions

I'm going to connect to outside websocket server to implement some advanced features for my robot.
Since it can communicate with discord in mudlet, I guess there may be websocket lua library included.
Can you provide lua functions for websocket connection in mudlet?
by zhenzh
Sun Feb 13, 2022 3:17 pm
Forum: Geyser Layout Manager
Topic: Mapper window can not fully satisfy the parent window
Replies: 1
Views: 14024

Mapper window can not fully satisfy the parent window

I'm trying to put the mapper into a specified parent lable, but the window position has malposition:
99EF0858-8AEA-4D2A-B5F9-C89E69F8ABC3.jpg
The label2 can correctly process the relative position between its parent label1 and itself. But the mapper can not fully cover its parent label2
by zhenzh
Sun Nov 14, 2021 4:03 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 17848

Re: Can I get the raw data sent from server

Besides, I find the getTextFormat() has an issue that the format of tha last character of a line can not be got. Here's a test for the line contains "NarutoMUD" string: B716262D-A2DC-4E2E-BB7E-9CA43AD99CAE.jpg Below are prints of format capture: 0/69 character: " " -> format: tab...
by zhenzh
Sun Nov 14, 2021 3:12 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 17848

Re: Can I get the raw data sent from server

Even utf8.len() may also count unexpected character number. Here's a test for some special case: 841EF063-140D-4C51-8152-F0EC210FC3B0.jpg When I count form the value of line captured by mudlet, it got a smaller number than I count the string manually copy/paste from the line I think that should not ...
by zhenzh
Sun Nov 14, 2021 12:44 pm
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 17848

Re: Can I get the raw data sent from server

I need to process some qeusts in my playing mud, it's a colored trigger looks like this: -328ad242544cd46f.jpg Players are required to recognize the number consist of special colored characters across multiple lines. Since the color and position are not fixed, I can not use the color trigger provide...
by zhenzh
Sun Nov 14, 2021 3:54 am
Forum: General Forum
Topic: Can I get the raw data sent from server
Replies: 6
Views: 17848

Re: Can I get the raw data sent from server

Here's the example raw data I can received from tintin++:
BB2F7ED7-A229-4FE4-9AD0-B4BF34C51C15.jpg
BB2F7ED7-A229-4FE4-9AD0-B4BF34C51C15.jpg (34.1 KiB) Viewed 17812 times
^[[1;32mEnter your character's ^[[1;31mname^[[1;32m, or type ^[[1;31mnew^[[1;32m: Illegal name, try another.