Author Topic: How to use adverts?  (Read 10328 times)

0 Members and 3 Guests are viewing this topic.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
How to use adverts?
« on: November 12, 2005, 03:25:21 PM »
My Adverts ARE working now, as well as everything else, amazing work guys!!
« Last Edit: November 20, 2005, 02:35:18 PM by jesus »

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to use adverts?
« Reply #1 on: November 12, 2005, 03:58:19 PM »
Go to lua/ulx/ulx_config.lua and follow the directions in there



Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to use adverts?
« Reply #2 on: November 12, 2005, 05:50:29 PM »
Also make sure you're using v0.81+ or it won't work.
Experiencing God's grace one day at a time.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts?
« Reply #3 on: November 13, 2005, 04:14:50 AM »
Yeah i'm using 8.1, when you install it you have one test add in there right?
So when I start a server what do I do to enable them? (Nothing came up by default)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to use adverts?
« Reply #4 on: November 13, 2005, 08:18:44 AM »
Sorry, turns out that function isn't working for some reason. You can call the addAdvert() and addCsayAdvert() directly and it should work, however.
Experiencing God's grace one day at a time.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts?
« Reply #5 on: November 14, 2005, 09:52:19 AM »
OK...
I have 0.9
And I use this:

Quote
function ulx_loadConfig( name, userid, steamid )
   if gConfigLoaded == true then
      return -- Already loaded
   end
   
   -- Adverts
   -- addCsayAdvert( msg, r, g, b, repeat_time, length )
   -- addAdvert( msg, repeat_time )
   -- You can use %hostname%, %curmap%, and %nextmap% in your text and have it automaticly parsed for you
   addCsayAdvert( "Welcome to %hostname%, enjoy your stay!", 100, 255, 200, 300, 5 )
   addAdvert( "Remember to play nicely!", 360 )
   addAdvert( "Jesus is admin on this server.", 613 )
   addAdvert( "Red team = Admin, yellow = VIP and blue = Normal.", 605 )
   addCsayAdvert( "The map you are playing on is %curmap%", 100, 255, 200, 150, 5 )


   gConfigLoaded = true
end

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.

Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: How to use adverts?
« Reply #6 on: November 14, 2005, 01:14:32 PM »
OK...
I have 0.9
And I use this:

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.

You're a beta tester?
If you doubt your powers you bring powers to your doubts.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts?
« Reply #7 on: November 14, 2005, 01:27:30 PM »
You're a beta tester?

No, 0.9 has been released to the public.
But can anyone help??

Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: How to use adverts?
« Reply #8 on: November 14, 2005, 02:06:44 PM »
No, 0.9 has been released to the public.
But can anyone help??


Oh, I didn't read the main site.
If you doubt your powers you bring powers to your doubts.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to use adverts?
« Reply #9 on: November 14, 2005, 03:08:20 PM »
OK...
I have 0.9
And I use this:

But nothing comes up.

If i'm doing something wrong please tell me exactly what to type into the console to activate it.

You're probably just not noticing it come up :-P . If you leave your console for a while and come back, you should see the messages in your console. ( Or you could set the time to 10 seconds to doubly make sure it's working )
Experiencing God's grace one day at a time.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts?
« Reply #10 on: November 15, 2005, 08:18:05 AM »
Wait, these messages will come up on screen like ulx_csay right?


EDIT: I did that, I set them to intervals of 5, and 10 etc.
Nothing came up, in the console or on screen.
« Last Edit: November 15, 2005, 09:33:03 AM by jesus »

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts? (EDITED)
« Reply #11 on: November 20, 2005, 02:34:57 PM »
My Adverts ARE working now, as well as everything else, amazing work guys!!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to use adverts?
« Reply #12 on: November 20, 2005, 03:53:18 PM »
So what was the problem?
Experiencing God's grace one day at a time.

Offline jesus

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 0
Re: How to use adverts?
« Reply #13 on: November 20, 2005, 04:36:19 PM »
Basically not all the 0.81 files were overwritten by the 0.90 files and so it actually loaded half 0.90 and half 0.81

I first noticed that this was the problem when I had ulx_weaponmenu on the ulx_help but it wouldn't load, this also caused errors with my melonrace and votemap changes.

Sorry for the trouble.
« Last Edit: November 20, 2005, 04:38:08 PM by jesus »