ULX

Author Topic: how do you create !motd like messages?  (Read 2979 times)

0 Members and 1 Guest are viewing this topic.

Offline suicide bomber

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
how do you create !motd like messages?
« on: August 01, 2007, 02:54:16 AM »
Im wondering how to create a !motd like message, but accessed with a different command (in this case !wca) to show a html page.
Is it possible to modify the Ulx !motd to do this? is there something already made out there for this?
Please help
~Suicide Bomber


Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: how do you create !motd like messages?
« Reply #1 on: August 01, 2007, 03:37:08 AM »
Just look how the motd is handled by scripts, then copy/paste, change what you need, "done". Note that motd is a .txt not a .htm, i've read somewhere that it's because of hl2 itself or something like that.

I don't think you can display a direct webpage, but i've never tried so i don't really know. Once in the motd i did put a link to a website, and when clicking it from inside the game, game freeze and crash after a moment - however direct download links work fine.

Offline suicide bomber

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: how do you create !motd like messages?
« Reply #2 on: August 01, 2007, 09:41:24 AM »
Just look how the motd is handled by scripts, then copy/paste, change what you need, "done". Note that motd is a .txt not a .htm, i've read somewhere that it's because of hl2 itself or something like that.

I don't think you can display a direct webpage, but i've never tried so i don't really know. Once in the motd i did put a link to a website, and when clicking it from inside the game, game freeze and crash after a moment - however direct download links work fine.

From what I can see, the ulx motd is integrated with ulx pretty deeply, and I was hoping for a addon type screen, so it can be easily accessed

Jammin, i saw your motd solution, but the download doesn't work for me
« Last Edit: August 01, 2007, 03:03:16 PM by suicide bomber »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: how do you create !motd like messages?
« Reply #3 on: August 01, 2007, 03:14:21 PM »
Suicide Bomber... This is no guarantee...but I've been considering releasing a "Umotd 2" that uses our new (and Garry's new) lua html integration.
I was gonna try to explain how to convert my old Umotd, then I realised I'd be writing a book and could have made a new one in the time it started to take me.
Its not that difficult, just lots of steps.


I'll start looking into Umotd 2 now.

[edit] Haha. Just saw you sent a PM to me. It's possible to download the file...but IT WON'T WORK without lots of modification.
« Last Edit: August 01, 2007, 03:16:46 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline suicide bomber

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: how do you create !motd like messages?
« Reply #4 on: August 01, 2007, 03:18:28 PM »
Suicide Bomber... This is no guarantee...but I've been considering releasing a "Umotd 2" that uses our new (and Garry's new) lua html integration.
I was gonna try to explain how to convert my old Umotd, then I realised I'd be writing a book and could have made a new one in the time it started to take me.
Its not that difficult, just lots of steps.


I'll start looking into Umotd 2 now.

[edit] Haha. Just saw you sent a PM to me. It's possible to download the file...but IT WON'T WORK without lots of modification.

Ok, well thanks for the info. I can't believe someone hasn't made one public yet, it would be very useful for !rules or !admins or any command like that