TMWServ @run script command

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

TMWServ @run script command

Post by Crush » Sun Jan 18, 2009 3:24 pm

While I recently worked on the TMWServ command handler I thought about what kind of additional commands would be useful. One thing that came to mind was that it would be very useful for events when a gm or administrator could run lua script files using an admin command like @run monsterinvasion.lua.

Of course not every script should be executable in this way and not everyone should be allowed to run every script. That's why I would suggest to limit command-triggered script execution to scripts which are in special folders. I would suggest to create a folder for every access level and search there for command-runable scripts to control who can run which scripts.

What do you think about this?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Turmfalke
Novice
Novice
Posts: 350
Joined: Sun Aug 10, 2008 7:28 pm
Location: Maligree's Wonderful Garden

Re: TMWServ @run script command

Post by Turmfalke » Sun Jan 18, 2009 4:12 pm

sounds reasonable, but I guess you don't have the time to implement it?
I stand beside the holy man
The monarchs fear my wrath
None may move the way I can
Ever the crooked path
a knight
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: TMWServ @run script command

Post by Crush » Sun Jan 18, 2009 4:25 pm

I currently have the time and motivation to implement this.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: TMWServ @run script command

Post by Jaxad0127 » Sun Jan 18, 2009 5:07 pm

I say go for it. This would be a nice system to have for events. We might even add some that normal players can do too, with fun effects that don't really do anything.
Image
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: Wed Sep 08, 2004 8:48 pm
Location: Espoo, Finland

Re: TMWServ @run script command

Post by Rotonen » Sun Jan 18, 2009 7:51 pm

Also nice for in-game parsers of server-side data. For example cashflow reports of potential player run businesses.
This message used to be meaningful.
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: Wed Oct 31, 2007 4:08 pm
Location: Belgium
Contact:

Re: TMWServ @run script command

Post by 5t3v3 » Mon Jan 19, 2009 6:39 pm

In the future, another use for this could be a guildleader that uses such commands. For example to declare war against another guild, making each other pvp-able or whatever. Just thinking out loud...
In game characters: "5t3v3" and "L "
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: TMWServ @run script command

Post by Crush » Mon Jan 19, 2009 7:16 pm

I consider it quite unlikely that we will ever have lua scripts evokable by normal players on the official server. Any feature which could be implemented this way could also be implemented with a more straight-forward chat command (@pvpon vs. @run pvpon.lua) or even a graphical user interface. But I could imagine some applications for private server admins who want to implement some unique features but don't have the means to hack the client and server on the c++ level.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: TMWServ @run script command

Post by Jaxad0127 » Mon Jan 19, 2009 9:44 pm

This functionality may also be useful for scripts to use because of the different context it would run under.
Image
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: TMWServ @run script command

Post by Crush » Mon Jan 19, 2009 11:42 pm

jaxad0127 wrote:This functionality may also be useful for scripts to use because of the different context it would run under.
What exactly do you mean with that?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: TMWServ @run script command

Post by Jaxad0127 » Tue Jan 20, 2009 12:00 am

Crush wrote:
jaxad0127 wrote:This functionality may also be useful for scripts to use because of the different context it would run under.
What exactly do you mean with that?
I'll have to see how this gets implemented.
Image
Post Reply