|
You last visited: Today at 19:44
Advertisement
[Help Thread] Please post your questions here.
Discussion on [Help Thread] Please post your questions here. within the Rappelz Private Server forum part of the Rappelz category.
03/17/2017, 06:43
|
#6226
|
elite*gold: 0
Join Date: Jun 2011
Posts: 97
Received Thanks: 41
|
Quote:
Originally Posted by smoegsmoeg
Thanks, but does not work.
atm I run everything in server_init
add_event_state(9004,1) <- HV <- Works
cast_world_state(2506,31) <- First buff <- no effect
add_event_state(2506,31) <- works only on character
add_event_cstate(2506,31) <- no effect
cast_world_cstate(2506,31) <- no effect
I'd be more than ok with a script that buffed every 1minute (that way I have the HV return pass as well (yeah i know you have it 60 times in inv. but idc about that))
any suggestions?
thanks in advance
|
You miss 1 parameter for "cast_world_state", cast_world_state(state_id, state_level, time),
Example:
cast_world_state(2506, 31, 500)
My advice to you is to run the world buff you want via the server init file and for the pets write a script in "on_login.lua", anyway you can add an option to buff the pets from in-game.
Note: if you'll use "on_login.lua" for the pets, only 1 summoned pet gets it I assume.
|
|
|
03/17/2017, 11:46
|
#6227
|
elite*gold: 0
Join Date: Mar 2017
Posts: 29
Received Thanks: 24
|
Quote:
Originally Posted by smoegsmoeg
Thanks, but does not work.
atm I run everything in server_init
add_event_state(9004,1) <- HV <- Works
cast_world_state(2506,31) <- First buff <- no effect
add_event_state(2506,31) <- works only on character
add_event_cstate(2506,31) <- no effect
cast_world_cstate(2506,31) <- no effect
I'd be more than ok with a script that buffed every 1minute (that way I have the HV return pass as well (yeah i know you have it 60 times in inv. but idc about that))
any suggestions?
thanks in advance
|
check if you have in server_init.lua in function on_server_init() this line:
for_event_by_liveteam() (if not add it.)
If you have that function, open NPC_Event.lua and search for it.
i cleaned the time based triggers and modified it for my intentions.
Heres a little snippet wich will do a loop every 2 Minutes to refresh the buffs on each player + creature.
Code:
function for_event_by_liveteam()
play_time_event()
end
function play_time_event()
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",2 )
end
function on_time_based_event_reward()
private_notice("2 Minute Trigger - Buffs refreshed")
cast_world_state(2506,31,0)
cast_world_cstate(2506,31,0)
end
|
|
|
03/18/2017, 17:39
|
#6228
|
elite*gold: 30
Join Date: Mar 2012
Posts: 634
Received Thanks: 297
|
couldn't imagine i'll turn to this thread
but hey, did anyone ever handle hashed ID given to a shop URL when opening it ingame? It seems like MD5 hash provided by a client but i cant see how dahell it generates.
JSON representation of $_REQUEST variable:
|
|
|
03/18/2017, 21:57
|
#6229
|
elite*gold: 0
Join Date: Mar 2017
Posts: 29
Received Thanks: 24
|
Quote:
Originally Posted by mongreldogg
couldn't imagine i'll turn to this thread
but hey, did anyone ever handle hashed ID given to a shop URL when opening it ingame? It seems like MD5 hash provided by a client but i cant see how dahell it generates.
JSON representation of $_REQUEST variable:
|
Code:
if(!isset($_SESSION['accountId']) || isset($_GET['id']))
{
$client=new client_guild_login();
$myuser=$client->accountName;
$mypass="%23%23%23".$client->userPassword;
$expire=file_get_contents($BASE_URL.$SYS_FRONT."?un=".$testUser."&pw=".$testPass."&_tdl=%25-222396333&_vas=[userName=".$myuser.",password=".$mypass."]&_cnc=pk&_an=getExpirationDate") ;
$expire=date('d/m/Y',strtotime($expire));
$_SESSION['shop_expiredate']=trim($expire);
}
else
{
$client=new client_guild_login();
$client->setValues($_SESSION['accountId'],$_SESSION['accountName'],$_SESSION['serverName'],$_SESSION['avatarName'],$_SESSION['avatarId'],$_SESSION['userPassword']);
$expire=$_SESSION['shop_expiredate'];
}
//USER NAME AND PASSWORD TO ACCESS BILLING SYSTEM FOR USER
$myuser=$client->accountName;
$mypass="%23%23%23".$client->userPassword;
//Init Values
if($client->isValid=="false")
{
$show_message_page=true;
$message="_PROCESS_DENIED";
}
class client_guild_login extends DbConnector{
var $avatarId = "";
var $accountId = "";
var $accountName = "";
var $avatarName = "";
var $passWord = "";
var $userPassword="";
var $serverName = "";
var $isValid = "";
function client_guild_login()
{
$moveUrl = "login.php";
$encodeId="";
if(isset($_GET["id"]))
{
$encodeId = $_GET["id"];
}
if(isset($_GET["server"]))
{
$this->serverName = $_GET["server"];
}
//$encodeId = $this->Encode();
//echo $encodeId;
//die();
$this->Decode($encodeId);
if ($this->AvatarCheck() == true)
{
$this->isValid="true";
}
else
{
$this->isValid="false";
}
}
function Encode()
{
$avatar_id = 8371229;
$account_id = 42;
$password =595 ;
$checksum = $avatar_id + $account_id + $password;
//Random randObj = new System.Random();
$randObj= rand(1,1000);
$randObj1= rand(1,10);
$randObj2= rand(1,10);
$seed = ($randObj * $randObj * $randObj);
$avatar_id ^= $seed;
$account_id ^= $avatar_id;
$password ^= $account_id;
$checksum ^= $password;
$avatar_id ^= 0xD8FB51A9;
$account_id ^= 0x9DC720AC;
$password ^= 0x31F42CB7;
$checksum ^= 0x7F9B3D2E;
$result = "";
$result .= $this->dec2hex($seed,8);
$result .= $this->dec2hex($avatar_id,8);
$result .= $this->dec2hex($account_id,8);
$result .= $this->dec2hex($password,8);
$result .= $this->dec2hex($checksum,8);
return $result;
}
function dec2hex($dec, $digits=false) {
$hex = '';
$sign = $dec < 0 ? false : true;
while ($dec) {
$hex .= dechex(abs(bcmod($dec, '16')));
$dec = bcdiv($dec, '16', 0);
}
if ($digits) {
while (strlen($hex) < $digits) { $hex .= '0'; }
}
if ($sign) {
return strrev($hex);
}
for ($i = 0; isset($hex[$i]); $i++) { $hex[$i] = dechex(15 - hexdec($hex[$i])); }
for ($i = 0; isset($hex[$i]) && $hex[$i] == 'f'; $i++) { $hex[$i] = '0'; }
if (isset($hex[$i])) { $hex[$i] = dechex(hexdec($hex[$i]) + 1); }
return strrev($hex);
}
function Decode($encodeId)
{
$seed;
$avatar_id;
$account_id;
$password;
$checksum;
if (strlen($encodeId) != 40)
{
}
$seed = hexdec(substr($encodeId,0,8));
$avatar_id = hexdec(substr($encodeId,8,8));
$account_id = hexdec(substr($encodeId,16,8));
$password = hexdec(substr($encodeId,24,8));
$checksum = hexdec(substr($encodeId,32,8));
$avatar_id ^= 0xD8FB51A9;
$account_id ^= 0x9DC720AC;
$password ^= 0x31F42CB7;
$checksum ^= 0x7F9B3D2E;
$checksum ^= $password;
$password ^= $account_id;
$account_id ^= $avatar_id;
$avatar_id ^= $seed;
if ($checksum != $avatar_id + $account_id + $password)
{
}
$this->passWord = $avatar_id;
$this->avatarId = $account_id;
$this->accountId = $password;
}
function AvatarCheck()
{
$isValidAvatar = false;
$connectName = "";
$isMember = false;
parent::DbConnector("Telecaster");
odbc_exec($this->conn,"use Telecaster");
$myArray=odbc_exec($this->conn,"exec SP_Check_OTP '".$this->avatarId."','".$this->accountId."','".$this->passWord."'");
$row =odbc_fetch_array($myArray);
odbc_close($this->conn);
$this->avatarName=$row['name'];
$this->accountName=$row['account'];
if ($this->avatarName != "")
{
$isValidAvatar = true;
parent::DbConnector("Auth");
odbc_exec($this->conn,"use Auth");
$query="sp_get_account_pass ".$this->accountId."";
$account=odbc_exec($this->conn, $query);
$accountArray=odbc_fetch_array($account);
odbc_close($this->conn);
$this->userPassword=$accountArray['password'];
$_SESSION['accountId']=trim($this->accountId);
$_SESSION['accountName']=trim($this->accountName);
$_SESSION['serverName']=trim($this->serverName);
$_SESSION['avatarName']=trim($this->avatarName);
$_SESSION['avatarId']=trim($this->avatarId);
$_SESSION['userPassword']=trim($this->userPassword);
}
else
{
$isValidAvatar = false;
}
return $isValidAvatar;
}
function setValues($accountId,$accountName,$serverName,$avatarName,$avatarId,$userPassword)
{
parent::DbConnector("Auth");
odbc_exec($this->conn,"use Auth");
$query="sp_get_account_pass ".$this->accountId."";
$account=odbc_exec($this->conn, $query);
$accountArray=odbc_fetch_array($account);
odbc_close($this->conn);
if(!$accountArray['password']==$userPassword)
{
$isValidAvatar = false;
}
$this->accountId=$accountId;
$this->accountName=$accountName;
$this->serverName=$serverName;
$this->avatarName=$avatarName;
$this->avatarId=$avatarId;
$this->userPassword=$userPassword;
$this->isValid="true";
}
}
|
|
|
03/18/2017, 22:44
|
#6230
|
elite*gold: 0
Join Date: May 2015
Posts: 54
Received Thanks: 6
|
Quote:
Originally Posted by _-Seizure-_
check if you have in server_init.lua in function on_server_init() this line:
for_event_by_liveteam() (if not add it.)
[...]
[/code]
|
Thanks - that was kinda what I was looking for yet I get an error: Herlock starts into an error:
I have "for_event_by_liveteam()" in my server_init.lua I edited the bit in NPC_event.lua yet herlock crashes now - deleting all results in crash.
adding it just in ends in nothing happening. (see spoiler)
I don't know enough to know what to sanitize and what to leave - or if I am at the correct segment
(I'm using the "retail" 9.1 how to PServer)
Thanks,
sm
Code:
function for_event_by_liveteam()
play_time_event()
end
function play_time_event()
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",2 )
local state_code = get_local_info()
if state_code == 1 then -- 한국
-- local current_time = get_os_date( "%Y-%m-%d %H:%M:%S" )
-- local event_begin_time = '2013-07-11 10:00:00'
-- local event_end_time = '2013-08-08 10:00:00'
-- if event_begin_time <= current_time and
-- current_time <= event_end_time then
-- set_env( "game.use_time_based_event_script", 1 )
-- set_env( "game.term_for_time_based_event_script", 120 )
-- end
--2013년 한국 추석 플레이 타임 이벤트 주차별 세부 조건 체크 없음 시작, 종료 파일 업데이트 형식으로 진행
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",120 )
elseif state_code == 4 --미국
or state_code == 8192 -- 중동
or state_code == 8 --독일
or state_code == 128 -- 프랑스
or state_code ==16384 -- 터키
or state_code ==32768 -- 폴란드
or state_code ==65536 -- 이탈리아
or state_code == 256 -- 러시아
or state_code == 512 -- 동남아
then
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",120 )
elseif state_code == 16 then -- 일본
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",120 )
end
end
function on_time_based_event_reward()
local state_code = get_local_info() -- 국가코드
local pcbang_grade = get_value("pcbang_user") -- 프리미엄PC방 판단변수
local t_flag = get_flag( "reward_time_event" ) -- 캐릭터 별 플래그 값
local account_t_flag = get_account_flag( "reward_time_event" ) -- 계정 별 플래그 값
local current_time = get_os_date( "%Y-%m-%d %H:%M:%S" )
local flag_current_time = get_os_date( "%Y-%m-%d" )
local event_current_week = 0
local lv = get_value( "level" )
private_notice("2 Minute Trigger - Buffs refreshed")
cast_world_state(2506,31,0)
cast_world_cstate(2506,31,0)
-- 2014 한국 PC방 이벤트 기간이고 한국이면
if '2014-04-24' <= current_time and current_time < '2014-05-22' and state_code == 1 then
if pcbang_grade == 2 then --한국 피씨방 이벤트
insert_item(2012866,1)
private_notice("@90605876")
return
end
end
if '2014-04-22' <= current_time and current_time < '2014-05-13' and state_code == 16 then --일본
insert_item(2012866,1)
private_notice("@90606226")
return
end
--[[if '2014-05-13' <= current_time and current_time < '2014-06-01' and state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 then --미국, 유럽
insert_item(2012866,1)
private_notice("@90606226")
return
end]]
if '2014-05-12' <= current_time and current_time < '2014-06-03' and state_code == 256 then --러시아
insert_item(2012866,1)
private_notice("@90606226")
return
end
-- 0. 보상 조건 체크 (기본적으로 한번 보상을 받았으면 안 준다.)
if t_flag == flag_current_time or account_t_flag == flag_current_time or t_flag == current_time or account_t_flag == current_time then
return
end
-- 1. 이벤트 기간인지 체크: 오늘 날짜가 몇 주차에 해당하는지 구한다. ( event_current_week 값 설정 )
-- 한국
if state_code == 1 then
if '2014-06-26 10:00:00' <= current_time and current_time < '2014-07-03 10:00:00' then
event_current_week = 1
elseif '2014-07-03 10:00:00' <= current_time and current_time < '2014-07-10 10:00:00' then
event_current_week = 2
elseif '2014-07-10 10:00:00' <= current_time and current_time < '2014-07-17 10:00:00' then
event_current_week = 3
elseif '2014-07-17 10:00:00' <= current_time and current_time < '2014-07-24 10:00:00' then
event_current_week = 4
end
end
--중동
if state_code == 8192 then
if '2014-02-24' <= current_time and current_time < '2014-03-03' then
event_current_week = 1
elseif '2014-03-03' <= current_time and current_time < '2014-03-10' then
event_current_week = 2
elseif '2014-03-10' <= current_time and current_time < '2014-03-17' then
event_current_week = 3
elseif '2014-03-17' <= current_time and current_time < '2014-03-24' then
event_current_week = 4
end
end
-- 일본
if state_code == 16 then
if '2014-08-12 11:00:00' <= current_time and current_time < '2014-08-19 11:00:00' then
event_current_week = 1
elseif '2014-08-19 11:00:00' <= current_time and current_time < '2014-08-26 11:00:00' then
event_current_week = 2
elseif '2014-08-26 11:00:00' <= current_time and current_time < '2014-09-02 11:00:00' then
event_current_week = 3
elseif '2014-09-02 11:00:00' <= current_time and current_time < '2014-09-09 11:00:00' then
event_current_week = 4
end
end
-- 미국, 터키, 이탈리아
if state_code == 4 or state_code == 16384 or state_code == 65536 then
if '2014-02-27' <= current_time and current_time < '2014-03-06' then
event_current_week = 1
elseif '2014-03-06' <= current_time and current_time < '2014-03-13' then
event_current_week = 2
elseif '2014-03-13' <= current_time and current_time < '2014-03-20' then
event_current_week = 3
elseif '2014-03-20' <= current_time and current_time < '2014-03-27' then
event_current_week = 4
end
end
-- 독일, 프랑스, 폴란드
if state_code == 8 or state_code == 128 or state_code == 32768 then
if '2014-02-25' <= current_time and current_time < '2014-03-04' then
event_current_week = 1
elseif '2014-03-04' <= current_time and current_time < '2014-03-11' then
event_current_week = 2
elseif '2014-03-11' <= current_time and current_time < '2014-03-18' then
event_current_week = 3
elseif '2014-03-18' <= current_time and current_time < '2014-03-25' then
event_current_week = 4
end
end
-- 러시아
if state_code == 256 then
if '2014-02-10' <= current_time and current_time < '2014-02-15' then
event_current_week = 1
elseif '2014-02-15' <= current_time and current_time < '2014-02-17' then
event_current_week = 2 --1주
elseif '2014-02-17' <= current_time and current_time < '2014-02-22' then
event_current_week = 3
elseif '2014-02-22' <= current_time and current_time < '2014-02-24' then
event_current_week = 4 --2주
elseif '2014-02-24' <= current_time and current_time < '2014-02-27' then
event_current_week = 5
elseif '2014-02-27' <= current_time and current_time < '2014-03-03' then
event_current_week = 6 --3주
elseif '2014-03-03' <= current_time and current_time < '2014-03-10' then
event_current_week = 7 --4주
end
end
-- 동남아
if state_code == 512 then
if '2014-02-14' <= current_time and current_time < '2014-02-19' then
event_current_week = 1 --1주
elseif '2014-02-19' <= current_time and current_time < '2014-02-21' then
event_current_week = 2 --1주
elseif '2014-02-21' <= current_time and current_time < '2014-02-27' then
event_current_week = 3 --2주
elseif '2014-02-27' <= current_time and current_time < '2014-02-28' then
event_current_week = 4 --2주
elseif '2014-02-28' <= current_time and current_time < '2014-03-03' then
event_current_week = 5 --3주
elseif '2014-03-03' <= current_time and current_time < '2014-03-07' then
event_current_week = 6 --3주
elseif '2014-03-07' <= current_time and current_time < '2014-03-14' then
event_current_week = 7 --4주
end
end
-- 2. 날짜 계산이 끝났으니 보상 지급: 보상 조건은 event_current_week가 0보다 클 때 (이벤트 기간이 아니면 0으로 나옴.)
if event_current_week > 0 then
-- 지급
if state_code == 512 then
if event_current_week == 1 then
insert_item ( 2013064, 1 )
elseif event_current_week == 2 then
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
elseif event_current_week == 3 then
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2902162, 3 )
insert_item ( 900010, 3 )
-- 1주차 보상.
elseif event_current_week == 4 then
insert_item ( 2013062, 1 )
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2902162, 3 )
insert_item ( 900010, 3 )
-- 1주차 보상.
elseif event_current_week == 5 then
insert_item ( 2902162, 3 )
insert_item ( 900010, 3 )
-- 1주차 보상.
elseif event_current_week == 6 then
insert_item ( 2012787, 10 )
insert_item ( 2012788, 10 )
-- 2주차 보상.
elseif event_current_week == 7 then
insert_item ( 2013058, 1 )
insert_item ( 2013058, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
-- 3주차 보상.
elseif event_current_week == 8 then
insert_item ( 601100308, 2 )
-- 4주차 보상.
end
-- 보상 지급이 끝났으니 아이템창 확인해보라는 공지메시지 출력.
private_notice( sconv( "@90605850" , "#@player_name@#", get_value("name") ) )
-- 한국, 일본
elseif state_code == 1 or state_code == 16 then
if event_current_week == 1 then
insert_item ( 2012787, 10 )
insert_item ( 2012788, 10 )
insert_item ( 601100285, 2 )
insert_item ( 2012834, 2 )
insert_item ( 2902163, 3 )
insert_item ( 2012825, 3 )
-- 1주차 보상.
elseif event_current_week == 2 then
insert_item ( 801321, 1 )
insert_item ( 801322, 1 )
insert_item ( 801323, 1 )
insert_item ( 801324, 1 )
insert_item ( 2011150, 4 )
insert_item ( 2902164, 3 )
insert_item ( 3800282, 3 )
insert_item ( 930037, 1 )
insert_item ( 950081, 5 )
-- 2주차 보상.
elseif event_current_week == 3 then
insert_item ( 601100308, 3 )
insert_item ( 710004, 3 )
insert_item ( 2013058, 1 )
insert_item ( 2013058, 1 )
insert_item ( 2013058, 1 )
-- 3주차 보상.
elseif event_current_week == 4 then
insert_item ( 540200, 3 )
insert_item ( 540201, 3 )
insert_item ( 540202, 3 )
insert_item ( 2012223, 1 )
insert_item ( 2013426, 5 )
-- 4주차 보상.
end
-- 보상 지급이 끝났으니 아이템창 확인해보라는 공지메시지 출력.
private_notice( sconv( "@90605850" , "#@player_name@#", get_value("name") ) )
-- 러시아, 보상 지급
elseif state_code == 256 then
if event_current_week == 1 then
insert_item ( 2013064, 1 )
insert_item ( 2902162, 3 )
insert_item ( 900010, 3 )
-- 1주차 보상.
elseif event_current_week == 2 then
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2902162, 3 )
insert_item ( 900010, 3 )
-- 1주차 보상.
elseif event_current_week == 3 then
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2012787, 10 )
insert_item ( 2012788, 10 )
-- 2주차 보상.
elseif event_current_week == 4 then
insert_item ( 2013062, 1 )
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2012787, 10 )
insert_item ( 2012788, 10 )
-- 2주차 보상.
elseif event_current_week == 5 then
insert_item ( 2013062, 1 )
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
insert_item ( 2013058, 1 )
insert_item ( 2013058, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
-- 3주차 보상.
elseif event_current_week == 6 then
insert_item ( 2013058, 1 )
insert_item ( 2013058, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
insert_item ( 930077, 1 )
-- 3주차 보상.
elseif event_current_week == 7 then
insert_item ( 601100308, 2 )
-- 4주차 보상.
end
-- 보상 지급이 끝났으니 아이템창 확인해보라는 공지메시지 출력.
private_notice( sconv( "@90605850" , "#@player_name@#", get_value("name") ) )
else
if event_current_week == 1 then
insert_item ( 2013064, 1 )
-- 1주차 보상.
elseif event_current_week == 2 then
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
-- 2주차 보상.
elseif event_current_week == 3 then
insert_item ( 2013062, 1 )
insert_item ( 2013063, 1 )
insert_item ( 2013064, 1 )
-- 3주차 보상.
end
-- 보상 지급이 끝났으니 아이템창 확인해보라는 공지메시지 출력.
private_notice( sconv( "@90605850" , "#@player_name@#", get_value("name") ) )
end
--set_flag("reward_time_event",flag_current_time) -- 캐릭터별 플래그 설정
set_account_flag("reward_time_event",flag_current_time) --계정별 플래그 설정
end
end
|
|
|
03/18/2017, 23:24
|
#6231
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
|
To do what they are suggesting you have to get rid of the entire script (not the entire .lua but just the time based portion of it) and only include what they have written for you.
It will make it impossible to use the script for log in rewards.
Not sure how theirs works every 2 minutes as mine is a one shot deal you get one reward after the 15 minutes that I edited it to and that is it.
|
|
|
03/19/2017, 07:22
|
#6232
|
elite*gold: 0
Join Date: Oct 2013
Posts: 474
Received Thanks: 41
|
Quote:
Originally Posted by _-Seizure-_
check if you have in server_init.lua in function on_server_init() this line:
for_event_by_liveteam() (if not add it.)
If you have that function, open NPC_Event.lua and search for it.
i cleaned the time based triggers and modified it for my intentions.
Heres a little snippet wich will do a loop every 2 Minutes to refresh the buffs on each player + creature.
Code:
function for_event_by_liveteam()
play_time_event()
end
function play_time_event()
set_env( "game.use_time_based_event_script",1 )
set_env( "game.term_for_time_based_event_script",2 )
end
function on_time_based_event_reward()
private_notice("2 Minute Trigger - Buffs refreshed")
cast_world_state(2506,31,0)
cast_world_cstate(2506,31,0)
end
|
if you used cast_world_state you will get a crash
|
|
|
03/19/2017, 19:26
|
#6233
|
elite*gold: 0
Join Date: May 2015
Posts: 54
Received Thanks: 6
|
Quote:
Originally Posted by Sherock
if you used cast_world_state you will get a crash
|
so in that case what would actually do the trick then? for pets?
|
|
|
03/19/2017, 20:35
|
#6234
|
elite*gold: 0
Join Date: Mar 2017
Posts: 29
Received Thanks: 24
|
Quote:
Originally Posted by smoegsmoeg
so in that case what would actually do the trick then? for pets?
|
Since this is a trigger for each character on the server wich is online, you can try add_cstate () instead of cast_world_state()
Didnt tested the cast_world_state in this trigger.
|
|
|
03/20/2017, 14:58
|
#6235
|
elite*gold: 0
Join Date: Apr 2015
Posts: 39
Received Thanks: 0
|
hi all
i try dev remix battle map (island pvp) i want affect point into other table cause flag_list (in character can't update manually) i need winnername and losername for affect my new point but i don't know how to have this
if one have one idea pls ^^ <3
|
|
|
03/22/2017, 13:35
|
#6236
|
elite*gold: 0
Join Date: Mar 2012
Posts: 990
Received Thanks: 391
|
I got one issue if more experienced dev could help out a bit.
I am adding skill to new pet by using from mix of other pets but with new icons and descriptions.
I have issue that i can see my skills on my new pet but i cannot use them.
I did update this to db and client:SkillTreeResource,SkillJPResource,SkillStag e,SkillResource,StringResource and 02_item.spr
Could anyone tell me where might be issue?
|
|
|
03/23/2017, 15:30
|
#6237
|
elite*gold: 0
Join Date: Dec 2009
Posts: 63
Received Thanks: 9
|
Quote:
Originally Posted by Älucard
I did update this to db and client:SkillTreeResource,SkillJPResource,SkillStag e,SkillResource,StringResource and 02_item.spr
Could anyone tell me where might be issue?
|
Hey did you check the Summon DB ? You need to set the skilltree IDs to your new pet / monster
But @ might help you out since hes clearly more into it then iam
__________________
|
|
|
03/23/2017, 18:15
|
#6238
|
elite*gold: 0
Join Date: Mar 2012
Posts: 990
Received Thanks: 391
|
Quote:
Originally Posted by fumble2010
Hey did you check the Summon DB ? You need to set the skilltree IDs to your new pet / monster
But @ might help you out since hes clearly more into it then iam
__________________
|
as i say above i did all.I can see skills ingame but can't use it.
|
|
|
03/23/2017, 20:10
|
#6239
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
|
Quote:
Originally Posted by Älucard
as i say above i did all.I can see skills ingame but can't use it.
|
Well in his defense you did not mention arcadia.dbo.summon or the rdb above.
|
|
|
03/23/2017, 20:26
|
#6240
|
elite*gold: 0
Join Date: Mar 2012
Posts: 990
Received Thanks: 391
|
Quote:
Originally Posted by thndr
Well in his defense you did not mention arcadia.dbo.summon or the rdb above.
|
Well my bad but i did
Rdb.skillresource,rdb.skilltreeresource,skilljpres ource.string,summon and item02.spr for icons
|
|
|
Similar Threads
|
[Helping Topic] 24/7 Helping Services!
08/27/2008 - EO PServer Hosting - 31 Replies
stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""
|
All times are GMT +2. The time now is 19:44.
|
|