Author Topic: !motd and !donate?  (Read 3655 times)

0 Members and 2 Guests are viewing this topic.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
!motd and !donate?
« on: May 05, 2012, 10:41:31 PM »
I'm thinking of designing a donate page that works the same way as !motd but instead of !motd it would be !donate, when doing this would I just go to the file
\ulx\lua\ulx\modules\sh and look at "menus" or go to

\ulx\lua\ulx\modules\cl and look at motdmenu... or both of these files?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: !motd and !donate?
« Reply #1 on: May 06, 2012, 07:58:43 AM »
Both of those files are used for the motd. The shared module is sending the data to the player, the client module is displaying it.
Experiencing God's grace one day at a time.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: !motd and !donate?
« Reply #2 on: May 06, 2012, 02:40:47 PM »
Okay, so for creating a !donate module I would need to mimic the directories but put them within addons?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: !motd and !donate?
« Reply #3 on: May 06, 2012, 02:50:05 PM »
Okay, so for creating a !donate module I would need to mimic the directories but put them within addons?

Yes. :)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: !motd and !donate?
« Reply #4 on: May 06, 2012, 07:29:17 PM »
Mimic directories.
Make new functions/variables.
Though technically you could keep/mimic same file names, I wouldn't, just to ensure they are easy to tell apart when looking at paths.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: !motd and !donate?
« Reply #5 on: May 25, 2012, 09:00:48 PM »
Okay :)


I gotta take the time to say something about my time spent on ulysses forums.

You guys are very helpful and I prefer coming here for help or to talk to people. Everything about your website is just awesome. Gotta say I'm glad I have the perks of ULX administrating my server and have an awesome staff to help me out or to talk to me :)