The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Happy Train Hours
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
Happy Train Hours
Hi! I need help with a script of happy Hour

I made this functions to change the adv_rate [it's right?]

Code:
[FUNCTION F_SKILLSNUMBER]
serv.skill.0.adv_rate=10,1000,3000 // ALCHEMY
serv.skill.1.adv_rate=10,1000,2200 // ANATOMY
serv.skill.2.adv_rate=10,1000,3000 // ANIMALLORE

[FUNCTION F_HAPPYHOUR]
serv.skill.0.adv_rate=10,900,2800 // ALCHEMY
serv.skill.1.adv_rate=10,500,1500 // ANATOMY
serv.skill.2.adv_rate=10,800,2500 // ANIMALLORE

Now, I had think in a happy hour every 1 day on 1 hour, like:

Code:
[function f_starthappyhour]
timerf 1,f_happyhour
timerf 3600,f_skillnumber
timerf 86400,f_starthappyhour


Any idea?
-The serv.skill.0.adv_rate it's right? 2800 its 280.0 in the script. [That is what I had tested]
-It's right the function f_starthappyhour?


Thanks!

Lazarus.

[Image: 2hy9q0y.png]
(This post was last modified: 11-29-2012 03:22 AM by Lazarus.)
11-29-2012 03:21 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #2
RE: Happy Train Hours
up plz Sad?

[Image: 2hy9q0y.png]
12-15-2012 02:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #3
RE: Happy Train Hours
using timerf is not good for this purpose, you can use f_on_servertimer with timercall=1 in sphere.ini. then f_on_servertimer will called every minute so you can look to the time with serv.rtime format.

then for example:

if time is 22.00 gains go up, when time is 23.00 gains go down again.
12-16-2012 12:25 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)