Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 09:54

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

 

gifts for every hour available online

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   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 312
Received Thanks: 252


gr4ph0s is offline  
Thanks
1 User
Old   #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   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 312
Received Thanks: 252
Is it too hard to click on the first link? :/


gr4ph0s is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 99
Received Thanks: 34
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   #6
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,001
Received Thanks: 957
I didn't get the joke?
ThunderNikk is offline  
Old   #7
 
elite*gold: 0
Join Date: Jul 2012
Posts: 231
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   #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   #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   #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   #11
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,001
Received Thanks: 957
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



« Previous Thread | Next Thread »



All times are GMT +2. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.