Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 12:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



gifts for every hour available online

Discussion on gifts for every hour available online within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 1
gifts for every hour available online

Hello. please help create a lua script issue of gifts for every hour online.
sudomexa is offline  
Old 05/31/2015, 14:40   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
gr4ph0s is offline  
Thanks
1 User
Old 05/31/2015, 14:45   #3
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 1
Quote:
Originally Posted by gr4ph0s View Post
like a "good" joke. петросян хренов.
sudomexa is offline  
Thanks
1 User
Old 05/31/2015, 15:32   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Is it too hard to click on the first link? :/
gr4ph0s is offline  
Thanks
1 User
Old 05/31/2015, 15:34   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 99
Received Thanks: 35
Quote:
Originally Posted by sudomexa View Post
like a "good" joke. петросян хренов.
You create a thread for an help , there is an help thread ...
If you take your thread title and put rappelz and put this on search ,
The first result give you the solution !!!

Use search !
nimoht is offline  
Thanks
1 User
Old 05/31/2015, 16:46   #6
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
I didn't get the joke?
ThunderNikk is offline  
Old 05/31/2015, 18:33   #7
 
elite*gold: 0
Join Date: Jul 2012
Posts: 227
Received Thanks: 65
Lazy people detected

i was sure that this was solved few weeks ago, just need to search in the third page of this section

eziorav is offline  
Old 06/01/2015, 11:28   #8
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 1
the question remains the same. help create the script.
sudomexa is offline  
Old 06/01/2015, 11:44   #9
 
elite*gold: 0
Join Date: May 2015
Posts: 8
Received Thanks: 0
Quote:
Write a script called

function on_every_hour()
-- Logic
end

and create a scheduledcommand entry to fire that script every hour. (Thought I'm sure it won't be able to do targeted cmd's like insert_item, I could be wrong though)
Quote:
NFlavor did something like this for a login event in 2014.

The way I understand it, the function 'on_time_based_event_reward()' (NPC_Event.lua) is run periodically for any player who has been logged in for a certain period of time if the environment variable 'game.use_time_based_event_script' is set.
This is done automatically on startup (assuming it wasn't removed from 'on_server_init()') by 'for_event_by_liveteam()' (NPC_Event.lua):
Code:

Code:
	set_env( "game.use_time_based_event_script",1 )
	set_env( "game.term_for_time_based_event_script",120 )
...where 120 is the required login period in minutes.

For example, if you set game.term_for_time_based_event_script to 5 and add the line insert_item(900000,1) to on_time_based_event_reward() without any further conditions, any player on the server will receive 1 stamina saver for every five minutes they are logged on.




I am not sure why your "question still remains" when you have been fed these on a shiny silver plate?
JihadJoe2k9 is offline  
Old 06/01/2015, 13:40   #10
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 1
Quote:
Originally Posted by JihadJoe2k9 View Post



I am not sure why your "question still remains" when you have been fed these on a shiny silver plate?
how to connect the function?

I ask to help me make the finished script, and not cutting our colleagues.
sudomexa is offline  
Old 06/01/2015, 15:11   #11
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
The script is already written in the files.

All you need to do is finish setting it up and turn it on...

set_env( "game.use_time_based_event_script",1 )

Please take a look at the NPC_Event.lua and server_init.lua for...

on_server_init()

and

on_time_based_event_reward()

Instead of ignoring the fact that you have been helped, you just are unwilling to read the information given.
ThunderNikk is offline  
Thanks
1 User
Reply




All times are GMT +2. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.