You last visited: Today at 17:56
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.
12/24/2014, 19:15
#4036
elite*gold: 0
Join Date: Oct 2013
Posts: 130
Received Thanks: 108
thdr inventory slot add nui
underground dungeon pk off ?
12/25/2014, 03:47
#4037
elite*gold: 0
Join Date: Dec 2014
Posts: 20
Received Thanks: 4
Can someone please tell me why I am getting this error:
[string “NPC_hidden_village_buffer()”]:1: attempt to call global `NPC_hidden_village_buffer’ (a nil value)
...and not just on the hidden village buffer but most of my NPC's are the same
Thanks in advance!
12/25/2014, 04:00
#4038
elite*gold: 0
Join Date: Nov 2009
Posts: 308
Received Thanks: 32
Quote:
Originally Posted by
Stormyblueyez
Can someone please tell me why I am getting this error:
[string “NPC_hidden_village_buffer()”]:1: attempt to call global `NPC_hidden_village_buffer’ (a nil value)
...and not just on the hidden village buffer but most of my NPC's are the same
Thanks in advance!
If im correct and dont hold me to it. But you have no .lua
Would anyone happen to have the hidden village buffer .lua
Im looking for a clean version, one that hasnt been added to or changed
Thank you.
Merry Xmas, Hope everyone has a wonderful time with their family
12/25/2014, 05:32
#4039
elite*gold: 0
Join Date: Dec 2014
Posts: 20
Received Thanks: 4
Thanks!
Thanks Tokes I did finally figure it out the NPC_name in Arcadia was different than my LUA so it was missing the communication between the two...
I do have a clean hidden village NPC:
Code:
-- Lua ��ũ��Ʈ ��ȣȭ
function get_module_name()
return "NPC_Buff"
end
--================================================== ==========
--=============== ��ũ��Ʈ ������ ī��Ʈ
--================================================== ==========
function NPC_Secroute_mage_init()
cprint( "!������ ī��Ʈ ����" )
set_npc_name( "@90702500" )
end
function NPC_Secroute_mage_contact()
-- ���̾�α� ���
dlg_title( "@90702501" )
if is_premium() then
dlg_text( "@90702502" )
else
dlg_text( "@90700118" )
end
-- ��ũ��Ʈ �����н��� Ȱ��ȭ�� ����(�����̾� ȸ��)
if is_premium() then
-- �Ϲ� ����
dlg_menu( "@90010197", "nomal_Buff()" )
-- ��ø ����
dlg_menu( "@90010198", "reiterate_Buff()" )
end
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
function nomal_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
if is_premium() then
dlg_text( "@90702505" )
else
dlg_text( "@90700118" )
end
-- ��ũ��Ʈ �����н��� Ȱ��ȭ�� ����(�����̾� ȸ��)
if is_premium() then
-- �Ϲ� ���� ����
dlg_menu( "@90010130", "nomal_no_charge_Buff()" )
-- �Ϲ� ���� ����
dlg_menu( "@90010131", "nomal_charge_Buff()" )
-- �Ϲ� ���� ���� ����ϱ�
dlg_menu( "@90010212", "nomal_charge_Buff_cancel()" )
end
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
function reiterate_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
if is_premium() then
dlg_text( "@90702506" )
else
dlg_text( "@90700118" )
end
-- ��ũ��Ʈ �����н��� Ȱ��ȭ�� ����(�����̾� ȸ��)
if is_premium() then
-- ��ø ���� ����
dlg_menu( "@90010130", "reiterate_no_charge_Buff()" )
-- ��ø ���� ����
dlg_menu( "@90010131", "reiterate_charge_Buff()" )
-- ��ø ���� ���� ���
dlg_menu( "@90010212", "reiterate_charge_Buff_cancel()" )
end
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ����
function nomal_no_charge_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702503" )
-- ���� ���� lv3
dlg_menu( "@90010199", "nomal_no_charge_Buff_operation(1)" )
-- ���ݷ� ���� lv3
dlg_menu( "@90010200", "nomal_no_charge_Buff_operation(2)" )
-- ���� ���� lv3
dlg_menu( "@90010201", "nomal_no_charge_Buff_operation(3)" )
-- ���� ���� lv3
dlg_menu( "@90010202", "nomal_no_charge_Buff_operation(4)" )
-- �������� ���� lv3
dlg_menu( "@90010203", "nomal_no_charge_Buff_operation(5)" )
-- �����ӵ� ���� lv3
dlg_menu( "@90010204", "nomal_no_charge_Buff_operation(6)" )
--1~6�� 6�� ���� �ѹ��� �ޱ�
dlg_menu( "@90010249", "nomal_no_charge_Buff_operation(7)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ����
function nomal_charge_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702503" )
-- ���� ���� lv6
dlg_menu( "@90010205", "nomal_charge_Buff_operation(1)" )
-- ���ݷ� ���� lv6
dlg_menu( "@90010206", "nomal_charge_Buff_operation(2)" )
-- ���� ���� lv6
dlg_menu( "@90010207", "nomal_charge_Buff_operation(3)" )
-- ���� ���� lv6
dlg_menu( "@90010208", "nomal_charge_Buff_operation(4)" )
-- �������� ���� lv6
dlg_menu( "@90010209", "nomal_charge_Buff_operation(5)" )
-- �̵��ӵ� ���� lv6
dlg_menu( "@90010210", "nomal_charge_Buff_operation(6)" )
-- �����ӵ� ���� lv6
dlg_menu( "@90010211", "nomal_charge_Buff_operation(7)" )
--1~7�� 7�� ���� �ѹ��� �ޱ�
dlg_menu( "@90010250", "nomal_charge_Buff_operation(8)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� ����ϱ�
function nomal_charge_Buff_cancel()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702507" )
-- ���� ���� lv6 ���
dlg_menu( "@90010213", "nomal_charge_Buff_cancel_operation(1)" )
-- ���ݷ� ���� lv6 ���
dlg_menu( "@90010214", "nomal_charge_Buff_cancel_operation(2)" )
-- ���� ���� lv6 ���
dlg_menu( "@90010215", "nomal_charge_Buff_cancel_operation(3)" )
-- ���� ���� lv6 ���
dlg_menu( "@90010216", "nomal_charge_Buff_cancel_operation(4)" )
-- �������� ���� lv6 ���
dlg_menu( "@90010217", "nomal_charge_Buff_cancel_operation(5)" )
-- �̵��ӵ� ���� lv6 ���
dlg_menu( "@90010218", "nomal_charge_Buff_cancel_operation(6)" )
-- �����ӵ� ���� lv6 ���
dlg_menu( "@90010219", "nomal_charge_Buff_cancel_operation(7)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� �ɱ�
function nomal_no_charge_Buff_operation( magic_set )
-- ���� 7�� �ƿ���
local state_level_1 = get_state_level( 1011 )
local state_level_2 = get_state_level( 1007 )
local state_level_3 = get_state_level( 1009 )
local state_level_4 = get_state_level( 1008 )
local state_level_5 = get_state_level( 1010 )
local state_level_6 = get_state_level( 1012 )
if magic_set == 1 and state_level_1 == 0 then
add_state( 1055, 3, 540000 ) -- ����lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 2 and state_level_2 == 0 then
add_state( 1051, 3, 540000 ) -- ���ݷ�lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 3 and state_level_3 == 0 then
add_state( 1053, 3, 540000 ) -- ����lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 4 and state_level_4 == 0 then
add_state( 1052, 3, 540000 ) -- ����lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 5 and state_level_5 == 0 then
add_state( 1054, 3, 540000 ) -- ��������lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 6 and state_level_6 == 0 then
add_state( 1056, 3, 540000 ) -- �����ӵ�lv3 ����
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 7 and state_level_1 == 0 and state_level_2 == 0 and state_level_3 == 0 and state_level_4 == 0 and state_level_5 == 0 and state_level_6 == 0 then
add_state( 1051, 3, 540000 )
add_state( 1052, 3, 540000 )
add_state( 1053, 3, 540000 )
add_state( 1054, 3, 540000 )
add_state( 1055, 3, 540000 )
add_state( 1056, 3, 540000 )
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� �ɱ�
function nomal_charge_Buff_operation( magic_set )
local gold = get_value( "gold" )
-- ���� 7�� �ƿ���
local state_level_1 = get_state_level( 1011 )
local state_level_2 = get_state_level( 1007 )
local state_level_3 = get_state_level( 1009 )
local state_level_4 = get_state_level( 1008 )
local state_level_5 = get_state_level( 1010 )
local state_level_6 = get_state_level( 1013 )
local state_level_7 = get_state_level( 1012 )
if gold >= 1000 then
if magic_set == 1 and state_level_1 == 0 then
add_state( 1055, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 2 and state_level_2 == 0 then
add_state( 1051, 6, 900000 ) -- ���ݷ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 3 and state_level_3 == 0 then
add_state( 1053, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 4 and state_level_4 == 0 then
add_state( 1052, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 5 and state_level_5 == 0 then
add_state( 1054, 6, 900000 ) -- ��������lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 6 and state_level_6 == 0 then
add_state( 1057, 6, 900000 ) -- �̵��ӵ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if magic_set == 7 and state_level_7 == 0 then
add_state( 1056, 6, 900000 ) -- �����ӵ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
nomal_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
if gold >= 7000 then
if magic_set == 8 and state_level_1 == 0 and state_level_2 == 0 and state_level_3 == 0 and state_level_4 == 0 and state_level_5 == 0 and state_level_6 == 0 and state_level_7 == 0 then
add_state( 1051, 6, 900000 )
add_state( 1052, 6, 900000 )
add_state( 1053, 6, 900000 )
add_state( 1054, 6, 900000 )
add_state( 1055, 6, 900000 )
add_state( 1056, 6, 900000 )
add_state( 1057, 6, 900000 )
set_value( "gold", gold - 7000 )
update_gold_chaos()
nomal_charge_Buff()
return
end
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
else
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� �ɱ� ����ϱ�
function nomal_charge_Buff_cancel_operation( magic_set )
if magic_set == 1 then
remove_state( 1055, 6 ) -- ����lv6 ���
elseif magic_set == 2 then
remove_state( 1051, 6 ) -- ���ݷ�lv6 ���
elseif magic_set == 3 then
remove_state( 1053, 6 ) -- ����lv6 ���
elseif magic_set == 4 then
remove_state( 1052, 6 ) -- ����lv6 ���
elseif magic_set == 5 then
remove_state( 1054, 6 ) -- ��������lv6 ���
elseif magic_set == 6 then
remove_state( 1057, 6 ) -- �̵��ӵ�lv6 ���
else
remove_state( 1056, 6 ) -- �����ӵ�lv6 ���
end
nomal_charge_Buff_cancel()
end
-- ��ø ���� ���� ���
function reiterate_no_charge_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702503" )
-- ���� ���� lv3
dlg_menu( "@90010132", "reiterate_no_charge_Buff_operation(1)" )
-- ���ݷ� ���� lv3
dlg_menu( "@90010133", "reiterate_no_charge_Buff_operation(2)" )
-- ���� ���� lv3
dlg_menu( "@90010134", "reiterate_no_charge_Buff_operation(3)" )
-- ���� ���� lv3
dlg_menu( "@90010135", "reiterate_no_charge_Buff_operation(4)" )
-- �������� ���� lv3
dlg_menu( "@90010136", "reiterate_no_charge_Buff_operation(5)" )
-- �����ӵ� ���� lv3
dlg_menu( "@90010138", "reiterate_no_charge_Buff_operation(6)" )
--1~6�� 6�� ���� �ѹ��� �ޱ�
dlg_menu( "@90010249", "reiterate_no_charge_Buff_operation(7)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- ��ø ���� ���� ���
function reiterate_charge_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702503" )
-- ���� ���� lv6
dlg_menu( "@90010139", "reiterate_charge_Buff_operation(1)" )
-- ���ݷ� ���� lv6
dlg_menu( "@90010140", "reiterate_charge_Buff_operation(2)" )
-- ���� ���� lv6
dlg_menu( "@90010141", "reiterate_charge_Buff_operation(3)" )
-- ���� ���� lv6
dlg_menu( "@90010142", "reiterate_charge_Buff_operation(4)" )
-- �������� ���� lv6
dlg_menu( "@90010143", "reiterate_charge_Buff_operation(5)" )
-- �̵��ӵ� ���� lv6
dlg_menu( "@90010144", "reiterate_charge_Buff_operation(6)" )
-- �����ӵ� ���� lv6
dlg_menu( "@90010145", "reiterate_charge_Buff_operation(7)" )
--1~7�� 7�� ���� �ѹ��� �ޱ�
dlg_menu( "@90010250", "reiterate_charge_Buff_operation(8)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� ����ϱ�
function reiterate_charge_Buff_cancel()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702507" )
-- ���� ���� lv6 ���
dlg_menu( "@90010213", "reiterate_charge_Buff_cancel_operation(1)" )
-- ���ݷ� ���� lv6 ���
dlg_menu( "@90010214", "reiterate_charge_Buff_cancel_operation(2)" )
-- ���� ���� lv6 ���
dlg_menu( "@90010215", "reiterate_charge_Buff_cancel_operation(3)" )
-- ���� ���� lv6 ���
dlg_menu( "@90010216", "reiterate_charge_Buff_cancel_operation(4)" )
-- �������� ���� lv6 ���
dlg_menu( "@90010217", "reiterate_charge_Buff_cancel_operation(5)" )
-- �̵��ӵ� ���� lv6 ���
dlg_menu( "@90010218", "reiterate_charge_Buff_cancel_operation(6)" )
-- �����ӵ� ���� lv6 ���
dlg_menu( "@90010219", "reiterate_charge_Buff_cancel_operation(7)" )
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- ��ø ���� ���� �ɱ�
function reiterate_no_charge_Buff_operation( magic_set )
-- ���� 7�� �ƿ���
local state_level_1 = get_state_level( 1055 )
local state_level_2 = get_state_level( 1051 )
local state_level_3 = get_state_level( 1053 )
local state_level_4 = get_state_level( 1052 )
local state_level_5 = get_state_level( 1054 )
local state_level_6 = get_state_level( 1056 )
if magic_set == 1 and state_level_1 == 0 then
add_state( 1011, 3, 540000 ) -- ����lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 2 and state_level_2 == 0 then
add_state( 1007, 3, 540000 ) -- ���ݷ�lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 3 and state_level_3 == 0 then
add_state( 1009, 3, 540000 ) -- ����lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 4 and state_level_4 == 0 then
add_state( 1008, 3, 540000 ) -- ����lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 5 and state_level_5 == 0 then
add_state( 1010, 3, 540000 ) -- ��������lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 6 and state_level_6 == 0 then
add_state( 1012, 3, 540000 ) -- �����ӵ�lv3 ����
reiterate_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 7 and state_level_1 == 0 and state_level_2 == 0 and state_level_3 == 0 and state_level_4 == 0 and state_level_5 == 0 and state_level_6 == 0 then
add_state( 1007, 3, 540000 )
add_state( 1008, 3, 540000 )
add_state( 1009, 3, 540000 )
add_state( 1010, 3, 540000 )
add_state( 1011, 3, 540000 )
add_state( 1012, 3, 540000 )
nomal_no_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- ��ø ���� ���� �ɱ�
function reiterate_charge_Buff_operation( magic_set )
local gold = get_value( "gold" )
-- ���� 7�� �ƿ���
local state_level_1 = get_state_level( 1055 )
local state_level_2 = get_state_level( 1051 )
local state_level_3 = get_state_level( 1053 )
local state_level_4 = get_state_level( 1052 )
local state_level_5 = get_state_level( 1054 )
local state_level_6 = get_state_level( 1057 )
local state_level_7 = get_state_level( 1056 )
if gold >= 1000 then
if magic_set == 1 and state_level_1 == 0 then
add_state( 1011, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 2 and state_level_2 == 0 then
add_state( 1007, 6, 900000 ) -- ���ݷ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 3 and state_level_3 == 0 then
add_state( 1009, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 4 and state_level_4 == 0 then
add_state( 1008, 6, 900000 ) -- ����lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 5 and state_level_5 == 0 then
add_state( 1010, 6, 900000 ) -- ��������lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 6 and state_level_6 == 0 then
add_state( 1013, 6, 900000 ) -- �̵��ӵ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 7 and state_level_7 == 0 then
add_state( 1012, 6, 900000 ) -- �����ӵ�lv6 ����
set_value( "gold", gold - 1000 )
update_gold_chaos()
reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if gold >= 7000 then
if magic_set == 8 and state_level_1 == 0 and state_level_2 == 0 and state_level_3 == 0 and state_level_4 == 0 and state_level_5 == 0 and state_level_6 == 0 and state_level_7 == 0 then
add_state( 1007, 6, 900000 )
add_state( 1008, 6, 900000 )
add_state( 1009, 6, 900000 )
add_state( 1010, 6, 900000 )
add_state( 1011, 6, 900000 )
add_state( 1012, 6, 900000 )
add_state( 1013, 6, 900000 )
set_value( "gold", gold - 7000 )
update_gold_chaos()
nomal_charge_Buff()
return
end
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
else
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
--���ư���
dlg_menu( "@90010003", "NPC_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� �ɱ� ����ϱ�
function reiterate_charge_Buff_cancel_operation( magic_set )
if magic_set == 1 then
remove_state( 1011, 6 ) -- ����lv6 ���
elseif magic_set == 2 then
remove_state( 1007, 6 ) -- ���ݷ�lv6 ���
elseif magic_set == 3 then
remove_state( 1009, 6 ) -- ����lv6 ���
elseif magic_set == 4 then
remove_state( 1008, 6 ) -- ����lv6 ���
elseif magic_set == 5 then
remove_state( 1010, 6 ) -- ��������lv6 ���
elseif magic_set == 6 then
remove_state( 1013, 6 ) -- �̵��ӵ�lv6 ���
else
remove_state( 1012, 6 ) -- �����ӵ�lv6 ���
end
reiterate_charge_Buff_cancel()
end
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
-------------------------------- �ؿ� ��ũ��Ʈ ���� ------------------------------------
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
function NPC_Foreign_Secroute_mage_contact()
-- ���̾�α� ���
dlg_title( "@90702501" )
if is_premium() then
dlg_text( "@90999607" ) --��ũ��Ʈ�� �ִ� ���
else
dlg_text( "@90700118" ) --��ũ��Ʈ�� ���� ���
end
-- ��ũ��Ʈ �����н��� Ȱ��ȭ�� ����(�����̾� ȸ��)
if is_premium() then
-- ��ø ����
dlg_menu( "@90010198", "Foreign_reiterate_charge_Buff()" )
-- ��ø ���� ���� ���
dlg_menu( "@90010212", "Foreign_reiterate_charge_Buff_cancel()" )
end
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- ��ø ���� ���� ���
function Foreign_reiterate_charge_Buff()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702503" )
-- ���� ���� lv6
dlg_menu( "@90999609", "Foreign_reiterate_charge_Buff_operation(1)" )
-- ���ݷ� ���� lv6
dlg_menu( "@90999610", "Foreign_reiterate_charge_Buff_operation(2)" )
-- ���� ���� lv6
dlg_menu( "@90999611", "Foreign_reiterate_charge_Buff_operation(3)" )
-- ���� ���� lv6
dlg_menu( "@90999612", "Foreign_reiterate_charge_Buff_operation(4)" )
-- �������� ���� lv6
dlg_menu( "@90999613", "Foreign_reiterate_charge_Buff_operation(5)" )
-- �̵��ӵ� ���� lv6
dlg_menu( "@90999614", "Foreign_reiterate_charge_Buff_operation(6)" )
-- �����ӵ� ���� lv6
dlg_menu( "@90999615", "Foreign_reiterate_charge_Buff_operation(7)" )
--1~7�� 7�� ���� �ѹ��� �ޱ�
dlg_menu( "@90999616", "Foreign_reiterate_charge_Buff_operation(8)" )
--���ư���
dlg_menu( "@90010003", "NPC_Foreign_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- ��ø ���� ���� �ɱ�
function Foreign_reiterate_charge_Buff_operation( magic_set )
local gold = get_value( "gold" )
-- ���� 7�� �ƿ���
local state_level_1 = get_state_level( 1055 )
local state_level_2 = get_state_level( 1051 )
local state_level_3 = get_state_level( 1053 )
local state_level_4 = get_state_level( 1052 )
local state_level_5 = get_state_level( 1054 )
local state_level_6 = get_state_level( 1057 )
local state_level_7 = get_state_level( 1056 )
if gold >= 3000 then
if magic_set == 1 and state_level_1 == 0 then
add_state( 1011, 6, 360000 ) -- ���� 12% ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 2 and state_level_2 == 0 then
add_state( 1007, 6, 360000 ) -- ���ݷ� 18% ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 3 and state_level_3 == 0 then
add_state( 1009, 6, 360000 ) -- ����lv6 ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 4 and state_level_4 == 0 then
add_state( 1008, 6, 360000 ) -- ����lv6 ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 5 and state_level_5 == 0 then
add_state( 1010, 6, 360000 ) -- ��������lv6 ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 6 and state_level_6 == 0 then
add_state( 1013, 6, 360000 ) -- �̵��ӵ�lv6 ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if magic_set == 7 and state_level_7 == 0 then
add_state( 1012, 6, 360000 ) -- �����ӵ�lv6 ����
set_value( "gold", gold - 3000 )
update_gold_chaos()
Foreign_reiterate_charge_Buff()
return
else
dlg_title( "@90702501" )
dlg_text( "@90702509" )
end
if gold >= 21000 then
if magic_set == 8 and state_level_1 == 0 and state_level_2 == 0 and state_level_3 == 0 and state_level_4 == 0 and state_level_5 == 0 and state_level_6 == 0 and state_level_7 == 0 then
add_state( 1007, 6, 360000 )
add_state( 1008, 6, 360000 )
add_state( 1009, 6, 360000 )
add_state( 1010, 6, 360000 )
add_state( 1011, 6, 360000 )
add_state( 1012, 6, 360000 )
add_state( 1013, 6, 360000 )
set_value( "gold", gold - 21000 )
update_gold_chaos()
nomal_charge_Buff()
return
end
else
dlg_title( "@90702501" )
dlg_text( "@90702508" )
end
else
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
--���ư���
dlg_menu( "@90010003", "NPC_Foreign_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� ����ϱ�
function Foreign_reiterate_charge_Buff_cancel()
-- ���̾�α� ���
dlg_title( "@90702501" )
dlg_text( "@90702507" )
-- ���� ���� lv6 ���
dlg_menu( "@90010213", "Foreign_reiterate_charge_Buff_cancel_operation(1) " )
-- ���ݷ� ���� lv6 ���
dlg_menu( "@90010214", "Foreign_reiterate_charge_Buff_cancel_operation(2) " )
-- ���� ���� lv6 ���
dlg_menu( "@90010215", "Foreign_reiterate_charge_Buff_cancel_operation(3) " )
-- ���� ���� lv6 ���
dlg_menu( "@90010216", "Foreign_reiterate_charge_Buff_cancel_operation(4) " )
-- �������� ���� lv6 ���
dlg_menu( "@90010217", "Foreign_reiterate_charge_Buff_cancel_operation(5) " )
-- �̵��ӵ� ���� lv6 ���
dlg_menu( "@90010218", "Foreign_reiterate_charge_Buff_cancel_operation(6) " )
-- �����ӵ� ���� lv6 ���
dlg_menu( "@90010219", "Foreign_reiterate_charge_Buff_cancel_operation(7) " )
--���ư���
dlg_menu( "@90010003", "NPC_Foreign_Secroute_mage_contact()" )
-- ��ȭ����
dlg_menu( "@90010002", " " )
dlg_show()
end
-- �Ϲ� ���� ���� �ɱ� ����ϱ�
function Foreign_reiterate_charge_Buff_cancel_operation( magic_set )
if magic_set == 1 then
remove_state( 1011, 6 ) -- ����lv6 ���
elseif magic_set == 2 then
remove_state( 1007, 6 ) -- ���ݷ�lv6 ���
elseif magic_set == 3 then
remove_state( 1009, 6 ) -- ����lv6 ���
elseif magic_set == 4 then
remove_state( 1008, 6 ) -- ����lv6 ���
elseif magic_set == 5 then
remove_state( 1010, 6 ) -- ��������lv6 ���
elseif magic_set == 6 then
remove_state( 1013, 6 ) -- �̵��ӵ�lv6 ���
else
remove_state( 1012, 6 ) -- �����ӵ�lv6 ���
end
Foreign_reiterate_charge_Buff_cancel()
end
I have adjusted this exact same code, (only addition is to buff pets too), if you want that one, let me know.
Happy Holiday!
12/25/2014, 07:28
#4040
elite*gold: 0
Join Date: Nov 2009
Posts: 308
Received Thanks: 32
Hello,
So im having issues access-in hv, Not sure what im doing wrong
Ive tried these codes:
910023
910001
910000
If possible id just like chars to have hv when they log in, So they can access it and buff
Thank you
12/26/2014, 08:03
#4041
elite*gold: 0
Join Date: Dec 2014
Posts: 20
Received Thanks: 4
Could someone please point me in the right direction for editing the drops in my game?
I assume there is a drop table, but not sure where to find it, and the only thing I get as drops is ingots. Prefer drops to be more normal.
Thanks in advance!
12/26/2014, 12:46
#4042
elite*gold: 0
Join Date: Mar 2012
Posts: 53
Received Thanks: 1
guys can any one help me
every time i enter the game it's working for a little time then i got disconnected
and i got this in ( server )
p.s when i try to edit gameserver.opt or authserver
when i put them in rappelz compressor (work normally but no changes )
12/26/2014, 14:46
#4043
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,915
Received Thanks: 1,492
@tokesbowls
Change the followingin ETC_Script_Functions.lua...
function is_premium()
-- ±¹°¡ ÄÚµå Àоî¿À±â
-- get_local_info()ÀÇ ¹Ýȯ°ªµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_GERMANY = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
--LOCAL_INFO_FRANCE = 128
--LOCAL_INFO_RUSSIA = 256
--¸»·¹ÀÌ½Ã¾Æ 512, ½Ì°¡Æú 1024, º£Æ®³² 2048, ű¹ 4096, Áßµ¿ 8192, ÅÍŰ 16384
local state_code = get_local_info()
-- Çѱ¹ÀÇ °æ¿ì º»¼·/Å×¼· ¸ðµÎ ½ÃÅ©·çÆ® ÇÁ¸®ÆÐ½º°¡ ÀÖÀ¸¸é true
if state_code == 1 and gv( "premium" ) == 1 then
return true
end
-- ½ÃÅ©·çÆ® ÇÁ¸®ÆÐ½º°¡ ÀÖÀ¸¸é true
if gv( "premium" ) == 1 and scf_is_official_server( get_server_category() ) then
return true
end
-- Å×½ºÆ® ¼*¹öÀÌ¸é ¹«Á¶°Ç true
if scf_is_official_server( get_server_category() ) == false then
-- return true
end
return false
end
To this...
function is_premium()
return true
end
@Stormyblueyes
There are two monster resource tables in the repack the active table is called arcadia.dbo.MonsterResource.
I am not sure what the other table is called as the repack come unpacked maybe dbo.MonsterResource_old or something like that.
Change the name on the active one and change the name on the other one to the active name.
This information is right on the first page of the repack release...
@claro28111
There are a few different things you can do.
1. You can restore an original billing database.
2. You can create the billing.dbo.PaidItem in the Arcadia database and rewrite the dbo.smp_check_purchased_item to direct the inquiry to the new table in Arcadia, arcadia.dbo.PaidItem
Here is some of the information you will need to create the table...
USE [Arcadia]
GO
/****** Object: Table [dbo].[PaidItem] Script Date: 12/26/2014 8:37:11 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[PaidItem](
[sid] [bigint] IDENTITY(1,1) NOT NULL,
[buy_id] [bigint] NOT NULL,
[account_id] [int] NOT NULL,
[avatar_id] [int] NOT NULL,
[avatar_name] [nvarchar](60) NOT NULL,
[server_name] [varchar](30) NOT NULL,
[taken_account_id] [int] NOT NULL,
[taken_avatar_id] [int] NOT NULL,
[taken_avatar_name] [nvarchar](60) NOT NULL,
[taken_server_name] [varchar](30) NOT NULL,
[item_code] [int] NOT NULL,
[item_count] [int] NOT NULL,
[type] [int] NOT NULL,
[rest_item_count] [int] NOT NULL,
[confirmed] [bit] NOT NULL,
[confirmed_time] [datetime] NOT NULL,
[bought_time] [datetime] NOT NULL,
[valid_time] [datetime] NOT NULL,
[taken_time] [datetime] NOT NULL,
[isCancel] [bit] NOT NULL,
[creationDate_] [bigint] NULL,
[updateDate_] [bigint] NULL,
[accessDate_] [bigint] NULL,
[creatorId_] [varchar](200) NULL,
[updatorId_] [varchar](200) NULL,
[portId_] [varchar](200) NULL,
[elixirType] [varchar](200) NULL,
[pk_] [bigint] NULL,
[gift] [int] NOT NULL,
CONSTRAINT [PK_IDX_PaidItem] PRIMARY KEY CLUSTERED
(
[sid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_avatar_id] DEFAULT ((0)) FOR [avatar_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_avatar_name] DEFAULT ('') FOR [avatar_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_server_name] DEFAULT ('') FOR [server_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_account_id] DEFAULT ((0)) FOR [taken_account_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_avatar_id] DEFAULT ((0)) FOR [taken_avatar_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_avatar_name] DEFAULT ('') FOR [taken_avatar_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_server_name] DEFAULT ('') FOR [taken_server_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_type] DEFAULT ((0)) FOR [type]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_rest_item_count] DEFAULT ((0)) FOR [rest_item_count]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_confirmed] DEFAULT ((0)) FOR [confirmed]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_confirmed_time] DEFAULT ('9999-12-31') FOR [confirmed_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_valid_time] DEFAULT ('9999-12-31') FOR [valid_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_time] DEFAULT ('9999-12-31') FOR [taken_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_isCancel] DEFAULT ((0)) FOR [isCancel]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_gift] DEFAULT ((0)) FOR [gift]
GO
Here is some information you will need to altar the SMP script...
USE [Telecaster]
GO
/****** Object: StoredProcedure [dbo].[smp_check_purchased_item] Script Date: 12/26/2014 8:41:26 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- smp_read_purchased_item_list
-- start of smp_check_purchased_item 캐쉬템 창고에 아이템 있는지 여부 검사
ALTER PROCEDURE [dbo].[smp_check_purchased_item]
@IN_ACCOUNT_ID INT,
@IN_CHARACTER_ID INT,
@OUT_TOTAL_ITEM_COUNT INT OUTPUT,
@OUT_NEW_ITEM_COUNT INT OUTPUT,
@OUT_PREMIUM_TICKET INT OUTPUT,
@OUT_PREMIUM_REST_TIME INT OUTPUT,
@OUT_STAMINA_REGEN_TIME INT OUTPUT
AS
SET NOCOUNT ON
SET @OUT_PREMIUM_TICKET = 0
SET @OUT_PREMIUM_REST_TIME = 0
SET @OUT_STAMINA_REGEN_TIME = 0
SELECT @OUT_PREMIUM_TICKET = 1, @OUT_PREMIUM_REST_TIME = DATEDIFF( second, GETDATE(), MAX( GETDATE()+30 ) )
/*SELECT @OUT_PREMIUM_TICKET = COUNT(*), @OUT_PREMIUM_REST_TIME = DATEDIFF( second, GETDATE(), MAX( valid_time ) ) FROM billing.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code = 910000 AND valid_time > GETDATE() AND isCancel = 0
IF @OUT_PREMIUM_TICKET < 1
BEGIN
SET @OUT_PREMIUM_REST_TIME = 0
DECLARE @LOGOUT_TIME DATETIME
SET @LOGOUT_TIME = GETDATE()
SELECT @LOGOUT_TIME = logout_time FROM Character WITH (NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND sid = @IN_CHARACTER_ID
SELECT @OUT_STAMINA_REGEN_TIME = DATEDIFF( minute, @LOGOUT_TIME, MAX( valid_time ) ) FROM BILLING.Billing.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code = 910000 AND valid_time > @LOGOUT_TIME AND isCancel = 0
IF @OUT_STAMINA_REGEN_TIME < 1 OR @OUT_STAMINA_REGEN_TIME IS NULL
BEGIN
SET @OUT_STAMINA_REGEN_TIME = 0
END
--DECLARE @NO_LV INT
--DECLARE @NO_Total_JP INT
--SELECT @NO_LV = MAX(lv), @NO_Total_JP = MAX(total_jp) from character WITH(NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND Name not like '@%'
--IF @NO_LV < 30 AND @NO_Total_JP < 100000
--BEGIN
--SET @OUT_PREMIUM_TICKET = 1
--SET @OUT_PREMIUM_REST_TIME = 3600 * 5
--END
END
--IF @OUT_PREMIUM_REST_TIME < 3600 * 5
--BEGIN
--DECLARE @LV INT
--DECLARE @Total_JP INT
--SELECT @LV = MAX(lv), @Total_JP = MAX(total_jp) from character WITH(NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND Name not like '@%'
--IF @LV < 30 AND @Total_JP < 100000
--BEGIN
--SET @OUT_PREMIUM_TICKET = 1
--SET @OUT_PREMIUM_REST_TIME = 3600 * 5
--END
--END
*/
SELECT @OUT_TOTAL_ITEM_COUNT = COUNT(*) from Arcadia.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code <> 910000 AND rest_item_count > 0 AND valid_time > GETDATE() AND isCancel = 0
SELECT @OUT_NEW_ITEM_COUNT = COUNT(*) from Arcadia.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code <> 910000 AND rest_item_count > 0 AND confirmed = 0 AND valid_time > GETDATE() AND isCancel = 0
RETURN @@ERROR
You can also alternatively put the table in Auth or Telecaster. If you put it in Auth then you may never have to recreate the table unless you change Auth.
Not sure what you are trying to edit in the opt files and what is not working for you. It obviously worked for you at one time because you can start your servers.
12/26/2014, 16:09
#4044
elite*gold: 0
Join Date: Mar 2012
Posts: 53
Received Thanks: 1
Quote:
Originally Posted by
thndr
@tokesbowls
Change the followingin ETC_Script_Functions.lua...
function is_premium()
-- ±¹°¡ ÄÚµå Àоî¿À±â
-- get_local_info()ÀÇ ¹Ýȯ°ªµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_GERMANY = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
--LOCAL_INFO_FRANCE = 128
--LOCAL_INFO_RUSSIA = 256
--¸»·¹ÀÌ½Ã¾Æ 512, ½Ì°¡Æú 1024, º£Æ®³² 2048, ű¹ 4096, Áßµ¿ 8192, ÅÍŰ 16384
local state_code = get_local_info()
-- Çѱ¹ÀÇ °æ¿ì º»¼·/Å×¼· ¸ðµÎ ½ÃÅ©·çÆ® ÇÁ¸®ÆÐ½º°¡ ÀÖÀ¸¸é true
if state_code == 1 and gv( "premium" ) == 1 then
return true
end
-- ½ÃÅ©·çÆ® ÇÁ¸®ÆÐ½º°¡ ÀÖÀ¸¸é true
if gv( "premium" ) == 1 and scf_is_official_server( get_server_category() ) then
return true
end
-- Å×½ºÆ® ¼*¹öÀÌ¸é ¹«Á¶°Ç true
if scf_is_official_server( get_server_category() ) == false then
-- return true
end
return false
end
To this...
function is_premium()
return true
end
@Stormyblueyes
There are two monster resource tables in the repack the active table is called arcadia.dbo.MonsterResource.
I am not sure what the other table is called as the repack come unpacked maybe dbo.MonsterResource_old or something like that.
Change the name on the active one and change the name on the other one to the active name.
This information is right on the first page of the repack release...
@claro28111
There are a few different things you can do.
1. You can restore an original billing database.
2. You can create the billing.dbo.PaidItem in the Arcadia database and rewrite the dbo.smp_check_purchased_item to direct the inquiry to the new table in Arcadia, arcadia.dbo.PaidItem
Here is some of the information you will need to create the table...
USE [Arcadia]
GO
/****** Object: Table [dbo].[PaidItem] Script Date: 12/26/2014 8:37:11 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[PaidItem](
[sid] [bigint] IDENTITY(1,1) NOT NULL,
[buy_id] [bigint] NOT NULL,
[account_id] [int] NOT NULL,
[avatar_id] [int] NOT NULL,
[avatar_name] [nvarchar](60) NOT NULL,
[server_name] [varchar](30) NOT NULL,
[taken_account_id] [int] NOT NULL,
[taken_avatar_id] [int] NOT NULL,
[taken_avatar_name] [nvarchar](60) NOT NULL,
[taken_server_name] [varchar](30) NOT NULL,
[item_code] [int] NOT NULL,
[item_count] [int] NOT NULL,
[type] [int] NOT NULL,
[rest_item_count] [int] NOT NULL,
[confirmed] [bit] NOT NULL,
[confirmed_time] [datetime] NOT NULL,
[bought_time] [datetime] NOT NULL,
[valid_time] [datetime] NOT NULL,
[taken_time] [datetime] NOT NULL,
[isCancel] [bit] NOT NULL,
[creationDate_] [bigint] NULL,
[updateDate_] [bigint] NULL,
[accessDate_] [bigint] NULL,
[creatorId_] [varchar](200) NULL,
[updatorId_] [varchar](200) NULL,
[portId_] [varchar](200) NULL,
[elixirType] [varchar](200) NULL,
[pk_] [bigint] NULL,
[gift] [int] NOT NULL,
CONSTRAINT [PK_IDX_PaidItem] PRIMARY KEY CLUSTERED
(
[sid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_avatar_id] DEFAULT ((0)) FOR [avatar_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_avatar_name] DEFAULT ('') FOR [avatar_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_server_name] DEFAULT ('') FOR [server_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_account_id] DEFAULT ((0)) FOR [taken_account_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_avatar_id] DEFAULT ((0)) FOR [taken_avatar_id]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_avatar_name] DEFAULT ('') FOR [taken_avatar_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_server_name] DEFAULT ('') FOR [taken_server_name]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_type] DEFAULT ((0)) FOR [type]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_rest_item_count] DEFAULT ((0)) FOR [rest_item_count]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_confirmed] DEFAULT ((0)) FOR [confirmed]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_confirmed_time] DEFAULT ('9999-12-31') FOR [confirmed_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_valid_time] DEFAULT ('9999-12-31') FOR [valid_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_taken_time] DEFAULT ('9999-12-31') FOR [taken_time]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_isCancel] DEFAULT ((0)) FOR [isCancel]
GO
ALTER TABLE [dbo].[PaidItem] ADD CONSTRAINT [DF_PaidItem_gift] DEFAULT ((0)) FOR [gift]
GO
Here is some information you will need to altar the SMP script...
USE [Telecaster]
GO
/****** Object: StoredProcedure [dbo].[smp_check_purchased_item] Script Date: 12/26/2014 8:41:26 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- smp_read_purchased_item_list
-- start of smp_check_purchased_item 캐쉬템 창고에 아이템 있는지 여부 검사
ALTER PROCEDURE [dbo].[smp_check_purchased_item]
@IN_ACCOUNT_ID INT,
@IN_CHARACTER_ID INT,
@OUT_TOTAL_ITEM_COUNT INT OUTPUT,
@OUT_NEW_ITEM_COUNT INT OUTPUT,
@OUT_PREMIUM_TICKET INT OUTPUT,
@OUT_PREMIUM_REST_TIME INT OUTPUT,
@OUT_STAMINA_REGEN_TIME INT OUTPUT
AS
SET NOCOUNT ON
SET @OUT_PREMIUM_TICKET = 0
SET @OUT_PREMIUM_REST_TIME = 0
SET @OUT_STAMINA_REGEN_TIME = 0
SELECT @OUT_PREMIUM_TICKET = 1, @OUT_PREMIUM_REST_TIME = DATEDIFF( second, GETDATE(), MAX( GETDATE()+30 ) )
/*SELECT @OUT_PREMIUM_TICKET = COUNT(*), @OUT_PREMIUM_REST_TIME = DATEDIFF( second, GETDATE(), MAX( valid_time ) ) FROM billing.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code = 910000 AND valid_time > GETDATE() AND isCancel = 0
IF @OUT_PREMIUM_TICKET < 1
BEGIN
SET @OUT_PREMIUM_REST_TIME = 0
DECLARE @LOGOUT_TIME DATETIME
SET @LOGOUT_TIME = GETDATE()
SELECT @LOGOUT_TIME = logout_time FROM Character WITH (NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND sid = @IN_CHARACTER_ID
SELECT @OUT_STAMINA_REGEN_TIME = DATEDIFF( minute, @LOGOUT_TIME, MAX( valid_time ) ) FROM BILLING.Billing.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code = 910000 AND valid_time > @LOGOUT_TIME AND isCancel = 0
IF @OUT_STAMINA_REGEN_TIME < 1 OR @OUT_STAMINA_REGEN_TIME IS NULL
BEGIN
SET @OUT_STAMINA_REGEN_TIME = 0
END
--DECLARE @NO_LV INT
--DECLARE @NO_Total_JP INT
--SELECT @NO_LV = MAX(lv), @NO_Total_JP = MAX(total_jp) from character WITH(NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND Name not like '@%'
--IF @NO_LV < 30 AND @NO_Total_JP < 100000
--BEGIN
--SET @OUT_PREMIUM_TICKET = 1
--SET @OUT_PREMIUM_REST_TIME = 3600 * 5
--END
END
--IF @OUT_PREMIUM_REST_TIME < 3600 * 5
--BEGIN
--DECLARE @LV INT
--DECLARE @Total_JP INT
--SELECT @LV = MAX(lv), @Total_JP = MAX(total_jp) from character WITH(NOLOCK) WHERE account_id = @IN_ACCOUNT_ID AND Name not like '@%'
--IF @LV < 30 AND @Total_JP < 100000
--BEGIN
--SET @OUT_PREMIUM_TICKET = 1
--SET @OUT_PREMIUM_REST_TIME = 3600 * 5
--END
--END
*/
SELECT @OUT_TOTAL_ITEM_COUNT = COUNT(*) from Arcadia.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code <> 910000 AND rest_item_count > 0 AND valid_time > GETDATE() AND isCancel = 0
SELECT @OUT_NEW_ITEM_COUNT = COUNT(*) from Arcadia.dbo.PaidItem WHERE taken_account_id = @IN_ACCOUNT_ID AND item_code <> 910000 AND rest_item_count > 0 AND confirmed = 0 AND valid_time > GETDATE() AND isCancel = 0
RETURN @@ERROR
You can also alternatively put the table in Auth or Telecaster. If you put it in Auth then you may never have to recreate the table unless you change Auth.
Not sure what you are trying to edit in the opt files and what is not working for you. It obviously worked for you at one time because you can start your servers.
okay where can i restore the original one and what about the rappelz compressor issue ( i can't edit any thing even the server name )
p.s (royal repack database )
12/26/2014, 16:58
#4045
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,915
Received Thanks: 1,492
Compressor only works on C: drive but obviously it worked at one time for you.
The easiest way to see if it is working is to remove the .eop file from the folder then when you use it on the .opt file it should create a new .eop file
Let us know what happens.
I got the original billing database in the 7.4 server release.
12/26/2014, 17:16
#4046
elite*gold: 0
Join Date: Mar 2012
Posts: 53
Received Thanks: 1
Quote:
Originally Posted by
thndr
Compressor only works on C: drive but obviously it worked at one time for you.
The easiest way to see if it is working is to remove the .eop file from the folder then when you use it on the .opt file it should create a new .eop file
Let us know what happens.
I got the original billing database in the 7.4 server release.
got (no new file created
)
GAME DB INIT ERROR:[DBNETLIB][ConnectionOpen(Connect()).]Specified SQL server not found
12/26/2014, 17:43
#4047
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,915
Received Thanks: 1,492
Did it create a new .eop file or not?
Are you using it on C: drive?
12/26/2014, 17:56
#4048
elite*gold: 0
Join Date: Mar 2012
Posts: 53
Received Thanks: 1
it didn't create a .eop file
and i'm using c drive ^^
12/26/2014, 18:10
#4049
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,915
Received Thanks: 1,492
So when you double click on the .exe it does open a window?
Then you drag the .opt file and drop it into the middle of the window and it does not create a new .eop file?
12/26/2014, 18:21
#4050
elite*gold: 0
Join Date: Nov 2009
Posts: 308
Received Thanks: 32
Thank you all for helping me fix that issues, Now on to my next one
So when i got to enchant my weapon i keep getting this error, Can anyone point me in the right direction of fixing this please and thank you
Also seems im unable to tame anything above t1, any clue why
Attached Images
rappelz_screen00000001.JPG
(227.8 KB, 57 views)
rappelz_screen00000000.JPG
(172.9 KB, 54 views)
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 +1. The time now is 17:59 .