Ulysses Stuff > General Chat & Help and Support

How to add a advert?

<< < (2/2)

Brett900:
Ok, i put them all at diffrent numbers. To me it seems like its the time peroid before they advert again. BUT, it somtimes even though there are diffrent numbers they all come up at the same time. i want them to be sepreate.

Help please.

JamminR:
*sigh* let me try this one guys.

Brett.
Let start with the simplest.
// addAdvert <msg> <repeat_time> [<group>]

if you use
ulx addAdvert "I'm a monkey!" 360

This would repeat every 6 minutes

if you use
1) ulx addAdvert "I'm a monkey!" 360
This would repeat every 6 minutes
2) ulx addAdvert "He's a monkey" 390
This would repeat every 6 minutes, 30 seconds.

Now, I believe here is where you might be getting confused. The way I just listed those two, they would only be 30 seconds apart the first time they were advertised.
They don't run at the same time.
Look at this math. (seconds were converted to minutes for easy viewing)
1) would print at (6),(12),(18),(24),(30),(36)
2) would print at (6.5),(13),(19.5),(26),(32.5),(39)
See how the times start growing apart? Depending on what numbers you chose, they usually start circling in on each other.
I see most people confusing that.

HOWEVER, if you want 2) to run 30 seconds after 1) all the time. You'd specify a groupname for both.
1) ulx addAdvert "I'm a monkey!" 360 monkey
2) ulx addAdvert "He's a monkey" 390 monkey

2) would always be 30 seconds after 1)

That help?


Megiddo:

--- Quote from: JamminR on January 16, 2007, 04:08:56 PM ---1) ulx addAdvert "I'm a monkey!" 360 monkey
2) ulx addAdvert "He's a monkey" 390 monkey

2) would always be 30 seconds after 1)

That help?
--- End quote ---
Actually it would be:
1) ulx addAdvert "I'm a monkey!" 360 monkey
2) ulx addAdvert "He's a monkey" 30 monkey

Otherwise, great explaination JamminR! :)

Brett900:
Alright, thank you. I will re-post if i'm doing anything wrong.

Navigation

[0] Message Index

[*] Previous page

Go to full version