Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Quests /Python Event calendar quest

Capturre

Member
Credits
0
Hi everyone!
Maybe you would use event calendar, but don't want to s*ck with it, so easyer if they can open from the missions.
Here one quest how to make them.

Lets go :

make new file with name : eventcalendar.lua

Code:
quest eventcalendar begin
    state start begin
        when letter begin
            send_letter("Event calendar ")
        end
            when button or info begin
                say_title("Event Calendar")
                local days = select ("Monday, Tuesday, ..., Sunday, Cancel")
                if days == 8 then
                    send_letter ("Event calendar ")
                end
                if days == 1 then
                    for chooseone in io.lines("reach.txt") do
                        say(chooseone)
                    end
                end
            end
        end
    end
end

Good luck for use.
The txt can be changed every time, and the server will read the changed txt, so its can be updated without commands or reboot.
If you need help contact me here.
Edmund.
 

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now
Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now