Register for your free account! | Forgot your password?

You last visited: Today at 14:11

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

Advertisement



On log in

Discussion on On log in within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 410
Received Thanks: 33
On log in

Looking for help with on log in script for if say world boss buffs are active and a new player logs in them and there pets get them if they was not on when the boss was killed need a Script that will give the buffs with the same effect and lvl and time thats left on the current buffs running to players that are not on
mlejnek2 is offline  
Old 05/14/2019, 18:36   #2
 
elite*gold: 0
Join Date: Nov 2018
Posts: 24
Received Thanks: 3
lua script

hi , there
first you need to add script when the boss died or the buff activated for that matter then run this script which store the buff start time on global variable
Code:
-- when world boss died 
function on_boss_world()

local now_time = get_os_time()   -- get now time
--set global variable of buff start time 
set_global_variable("world_boss_buff",now_time)

end
then use this function on login to check buff time and add it to the player when he logs in

Code:
-- on player login 

function world_boss_buff()
local now_time = get_os_time()   -- get now time
local buff_time = get_global_variable("world_boss_buff") -- buff start time 
if buff_time == nil or buff_time == "" then buff_time = 0 end 
local state_time = now_time - buff_time -- buff time 
local state_id = 14011 -- buff id
local state_power = 10 -- buff power 
-- check buff time if still running 
if now_time > buff_time then
add_cstate(state_id,state_power,state_time)
end
end
--NOTICE--

Quote:
you may wanna add a remove_cstate to a script when player login to remove the buff in case player logged in couple times in case you encounter problem
Hatrick_Wildfan is offline  
Reply


Similar Threads Similar Threads
[SUCHE]Datenbank> log.log befehle:
08/02/2010 - Metin2 Private Server - 0 Replies
*done, hat sich erledigt, kann geclosed werden.
Q:C:\servers\GameServer\gmlog\error_eudemon.log 2009-11-24.log dead fish
11/25/2009 - EO PServer Hosting - 2 Replies
Uhh I didnt do it nobody saw me do it you cant prove anything i eddited my luck today but i hatch the first pet it was a dead fish the second i hatched good but im looking this file and it keeps growing we been online 35 min 33 online and the file is over 2,000 kb and growing i cut a small peice EUD_ATTR(2017173308) = EUD_INIT_LIFE(139) + EUD_LIFE_GROW_RATE(918) -- Tue Nov 24 08:59:01 2009 + EUD_INIT_PHY(104) + EUD_PHYATK_GROW_RATE(474) -- Tue Nov 24 08:59:01 2009 +...
HELP!!how to log in to rohan PH using proxy di kasi ako maka log in.
05/26/2009 - Rohan - 0 Replies
Help plss im using proxy to be able to connect to internet. i nid a philippines proxy to log in to rohan PH suddenly the philippine proxy that im using got down.how can i log in to rohan PH using foreign proxies.. plss someone help me!!!
Can't log on one char, but log normally on the other one!
01/07/2009 - Silkroad Online - 2 Replies
Well, I got a lvl60 glaive (3:2 hyb ->40 / pure str 41->) char, a staller lvl38 wizard (full int), and a lvl43 chinese nuker full int too, got some other chars, long abandoned/deleted in the way.... The point I want to get is that, I was able to log with all my main chars until some 2 or 3 weeks. But for some unknown reason I just can't log anymore with my lvl60 char.... I mean... I can log on, but as soon as the game loads up in hotan or anywhere in the entire map, (and I meant it when I...



All times are GMT +1. The time now is 14:12.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.