Initial commit: server + serverfiles
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ItemInformer={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
alter_of_power={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
arena_manager={["start"]=0}
|
||||
@@ -0,0 +1,4 @@
|
||||
assassin_shop_box={["start"]=0,give_costume_item= function (costume_vnum,duration)local remain_time = 86400 * duration
|
||||
pc . give_item2_select ( costume_vnum , 1 )
|
||||
item . set_socket ( 0 , get_global_time ( ) + remain_time )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
blacksmith={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
buy_fishrod={["start"]=0,["__COMPLETE__"]=668443392,["notify_event"]=433615558,["play_event"]=-898503397,["reward"]=1322349139}
|
||||
@@ -0,0 +1 @@
|
||||
chagne_name={["start"]=0}
|
||||
@@ -0,0 +1,60 @@
|
||||
change_empire={["start"]=0,move_pc= function ()if pc . is_engaged ( ) then
|
||||
say_title ( gameforge . change_empire . _50_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _90_sayReward )
|
||||
say ( gameforge . change_empire . _100_say )
|
||||
return false
|
||||
end
|
||||
if pc . is_married ( ) then
|
||||
say_title ( gameforge . change_empire . _50_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _90_sayReward )
|
||||
say ( gameforge . change_empire . _110_say )
|
||||
return false
|
||||
end
|
||||
if pc . is_polymorphed ( ) then
|
||||
say_title ( gameforge . change_empire . _50_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _120_sayReward )
|
||||
say ( gameforge . change_empire . _130_say )
|
||||
return false
|
||||
end
|
||||
if pc . has_guild ( ) then
|
||||
say_title ( gameforge . change_empire . _50_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _140_sayReward )
|
||||
say ( gameforge . change_empire . _150_say )
|
||||
return false
|
||||
end
|
||||
if pc . money < 500000 then
|
||||
say_title ( gameforge . change_empire . _50_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _160_sayReward )
|
||||
say ( gameforge . change_empire . _170_say )
|
||||
return false
|
||||
end
|
||||
say ( gameforge . change_empire . _180_say )
|
||||
local s = select ( gameforge . change_empire . _190_select , gameforge . change_empire . _200_select , gameforge . change_empire . _205_select , gameforge . locale . cancel )
|
||||
if 4 == s then
|
||||
return false
|
||||
end
|
||||
say_reward ( gameforge . change_empire . _210_sayReward )
|
||||
local a = select ( gameforge . locale . guild . yes , gameforge . locale . cancel )
|
||||
if 2 == a then
|
||||
return false
|
||||
end
|
||||
local ret = pc . change_empire ( s )
|
||||
local oldempire = pc . get_empire ( )
|
||||
if ret == 999 then
|
||||
say_title ( gameforge . change_empire . _220_sayTitle )
|
||||
say_reward ( gameforge . change_empire . _230_sayReward )
|
||||
pc . change_gold ( - 500000 )
|
||||
pc . remove_item ( 71054 ) ;
|
||||
char_log ( 0 , "CHANGE_EMPIRE" , string . format ( gameforge . change_empire . _240_stringFormat , oldempire , s ) )
|
||||
return true
|
||||
else
|
||||
if ret == 1 then
|
||||
say ( gameforge . change_empire . _250_say )
|
||||
elseif ret == 2 then
|
||||
say ( gameforge . change_empire . _260_say )
|
||||
elseif ret == 3 then
|
||||
say ( gameforge . change_empire . _270_say )
|
||||
end
|
||||
end
|
||||
return false
|
||||
end }
|
||||
@@ -0,0 +1,23 @@
|
||||
change_guild_master={["start"]=0,change_master= function (name,level_limit,time_resign_limit,time_be_other_leader,time_be_other_member,iscacheitem)local ret = guild . change_master_with_limit ( name , level_limit , time_resign_limit , time_be_other_leader , time_be_other_member , iscacheitem )
|
||||
local result = false
|
||||
if ret == 0 then
|
||||
say ( gameforge . change_guild_master . _30_say )
|
||||
elseif ret == 1 then
|
||||
say ( gameforge . change_guild_master . _40_say )
|
||||
elseif ret == 2 then
|
||||
say ( gameforge . change_guild_master . _50_say )
|
||||
elseif ret == 3 then
|
||||
say ( gameforge . change_guild_master . _60_say )
|
||||
result = true
|
||||
pc . remove_item ( 71099 )
|
||||
elseif ret == 4 then
|
||||
say ( gameforge . change_guild_master . _70_say )
|
||||
elseif ret == 5 then
|
||||
say ( gameforge . change_guild_master . _90_say )
|
||||
elseif ret == 6 then
|
||||
say ( gameforge . change_guild_master . _100_say )
|
||||
elseif ret == 7 then
|
||||
say ( gameforge . change_guild_master . _110_say )
|
||||
end
|
||||
return result
|
||||
end }
|
||||
@@ -0,0 +1,16 @@
|
||||
charge_cash_by_voucher={["start"]=0,charge= function (amount,charge_type)if charge_type == nil then
|
||||
charge_type = "cash"
|
||||
end
|
||||
if 0 < amount then
|
||||
local result = pc . charge_cash ( amount , charge_type )
|
||||
if true == result then
|
||||
local item_id = item . get_id ( )
|
||||
char_log ( item_id , "CHARGE_CASH_BY_VOUCHER" , amount )
|
||||
syschat ( string . format ( gameforge . charge_cash_by_voucher . _010_syschat , amount ) )
|
||||
local flag_name = "total_" .. charge_type
|
||||
pc . setqf ( flag_name , pc . getqf ( flag_name ) + amount )
|
||||
item . remove ( )
|
||||
end
|
||||
end
|
||||
return false
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
check_collect_reward={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
check_trans_ticket={["start"]=0,["zone_enter"]=526282696}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
christmas_costume_shop_box={["start"]=0,give_costume_item= function (costume_vnum,duration)local remain_time = 86400 * duration
|
||||
pc . give_item2_select ( costume_vnum , 1 )
|
||||
item . set_socket ( 0 , get_global_time ( ) + remain_time )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
christmas_santa={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
christmas_tree={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv30={["start"]=0,["__complete"]=557528158,["__giveup__"]=-2144290719,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv40={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv50={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv60={["start"]=0,["__complete"]=557528158,["__giveup__"]=-2144290719,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv70={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv80={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv85={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv90={["start"]=0,["__complete"]=557528158,["__reward"]=-1012239187,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv92={["start"]=0,["__complete"]=557528158,["go_to_disciple"]=1675612723,["information"]=695801987,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
collect_quest_lv94={["start"]=0,["__complete"]=557528158,["go_to_disciple"]=1675612723,["information"]=695801987,["key_item"]=-1726153001,["run"]=1349952704}
|
||||
@@ -0,0 +1,3 @@
|
||||
couple_ring={["start"]=0,["__COMPLETE__"]=668443392,["failure"]=563807169,["kill"]=120149609,["report"]=-1003522172,get_rest_count= function ()return 30 - pc . getqf ( "kill_count" )
|
||||
end ,is_completed= function ()return pc . getqf ( "kill_count" ) >= 30
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
cube={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
cube_opener_list={["start"]=0}
|
||||
@@ -0,0 +1,99 @@
|
||||
devilcatacomb_zone={["start"]=0,is_closed= function ()return ( game . get_event_flag ( "dc_closed" ) > 0 )
|
||||
end ,setting= function ()return
|
||||
{
|
||||
[ "base" ] = { [ "x" ] = 3072 , [ "y" ] = 12032 , } ,
|
||||
[ "floor1_s" ] = { [ "x" ] = 20 , [ "y" ] = 20 , } ,
|
||||
[ "floor1_e" ] = { [ "x" ] = 500 , [ "y" ] = 470 , } ,
|
||||
[ "floor2_s" ] = { [ "x" ] = 510 , [ "y" ] = 18 , } ,
|
||||
[ "floor2_e" ] = { [ "x" ] = 978 , [ "y" ] = 470 , } ,
|
||||
[ "floor1_entry" ] = { [ "x" ] = 73 , [ "y" ] = 63 , } ,
|
||||
[ "floor2_entry" ] = { [ "x" ] = 550 , [ "y" ] = 45 , } ,
|
||||
[ "floor3_entry" ] = { [ "x" ] = 1378 , [ "y" ] = 249 , } ,
|
||||
[ "floor4_entry" ] = { [ "x" ] = 70 , [ "y" ] = 592 , } ,
|
||||
[ "floor5_entry" ] = { [ "x" ] = 846 , [ "y" ] = 898 } ,
|
||||
[ "floor6_entry" ] = { [ "x" ] = 1362 , [ "y" ] = 666 } ,
|
||||
[ "floor7_entry" ] = { [ "x" ] = 73 , [ "y" ] = 1156 } ,
|
||||
[ "map_idx" ] = 216 ,
|
||||
[ "rag" ] = 30311 ,
|
||||
[ "devil_king" ] = 2591 ,
|
||||
[ "reapers_credit1" ] = 30319 ,
|
||||
[ "reapers_credit2" ] = 30320 ,
|
||||
[ "reapers_credit3" ] = 76002 ,
|
||||
[ "floor3_stone" ] = 8038 ,
|
||||
[ "floor3_stone_pos" ] = {
|
||||
{ 1366 , 150 } ,
|
||||
{ 1366 , 351 } ,
|
||||
{ 1234 , 365 } ,
|
||||
{ 1234 , 140 } ,
|
||||
{ 1150 , 135 } ,
|
||||
{ 1130 , 365 } ,
|
||||
{ 1135 , 253 }
|
||||
} ,
|
||||
[ "mob_regen_file_path" ] = "data/dungeon/devilcatacomb/" ,
|
||||
[ "floor4_regen_file" ] = { "devilcatacomb_floor4_regen1.txt" ,
|
||||
"devilcatacomb_floor4_regen2.txt" ,
|
||||
"devilcatacomb_floor4_regen3.txt" ,
|
||||
"devilcatacomb_floor4_regen4.txt" ,
|
||||
"devilcatacomb_floor4_regen5.txt" } ,
|
||||
[ "credit_stone" ] = 30101 ,
|
||||
[ "credit_stone_pos" ] = { 307 , 323 } ,
|
||||
[ "floor2_stone" ] = 30103 ,
|
||||
[ "floor2_stone_pos" ] = { 741 , 217 } ,
|
||||
[ "floor2_merchant_npc" ] = 20368 ,
|
||||
[ "floor2_merchant_npc_pos" ] = { 734 , 214 } ,
|
||||
[ "floor4_npc" ] = 30104 ,
|
||||
[ "floor4_npc_pos" ] = { 500 , 717 } ,
|
||||
[ "devil_king_pos" ] = { { 673 , 829 } , { 691 , 638 } , { 848 , 568 } , { 1026 , 642 } , { 1008 , 862 } } ,
|
||||
[ "unlock_stone" ] = 30312 ,
|
||||
[ "floor5_stone" ] = 30102 ,
|
||||
[ "floor5_stone_pos" ] = { 848 , 735 } ,
|
||||
[ "devil_great_king" ] = 2597 ,
|
||||
[ "devil_great_king_pos" ] = { 1303 , 704 } ,
|
||||
[ "devil_emperor" ] = 2598 ,
|
||||
[ "devil_emperor_pos" ] = { 74 , 1103 } ,
|
||||
[ "dc2_door_set_size" ] = { 4 , 2 , 3 , 2 } ,
|
||||
[ "dc2_door_set1" ] = {
|
||||
{ { 30111 , 566 , 117 , 5 } , { 30112 , 562 , 311 , 5 , } , { 30118 , 663 , 434 , 7 } , { 30119 , 881 , 434 , 7 } } ,
|
||||
{ { 30116 , 743 , 390 , 3 } , { 30119 , 612 , 251 , 1 , } } ,
|
||||
{ { 30113 , 654 , 211 , 5 } , { 30111 , 707 , 338 , 7 , } , { 30112 , 775 , 336 , 7 } } ,
|
||||
{ { 30117 , 733 , 294 , 3 } , { 30113 , 694 , 271 , 1 , } }
|
||||
} ,
|
||||
[ "dc2_door_set2" ] = {
|
||||
{ { 30115 , 942 , 141 , 5 } , { 30116 , 942 , 245 , 5 } , { 30117 , 942 , 321 , 5 } , { 30115 , 763 , 64 , 7 } } ,
|
||||
{ { 30118 , 643 , 116 , 3 } , { 30114 , 900 , 167 , 1 } } ,
|
||||
{ { 30114 , 850 , 293 , 5 } , { 30113 , 715 , 164 , 7 } , { 30114 , 817 , 162 , 7 } } ,
|
||||
{ { 30111 , 802 , 277 , 1 } , { 30112 , 800 , 241 , 1 } }
|
||||
} ,
|
||||
}
|
||||
end ,spawn_doors= function ()local setting = devilcatacomb_zone . setting ( )
|
||||
for i = 1 , 4 begin
|
||||
local mob_set = setting . dc2_door_set1 [ i ]
|
||||
local set_size = setting . dc2_door_set_size [ i ]
|
||||
for j = 1 , set_size begin
|
||||
d . set_unique ( i .. "_1_" .. j , d . spawn_mob_dir ( mob_set [ j ] [ 1 ] , mob_set [ j ] [ 2 ] , mob_set [ j ] [ 3 ] , mob_set [ j ] [ 4 ] ) )
|
||||
end
|
||||
mob_set = setting . dc2_door_set2 [ i ]
|
||||
for j = 1 , set_size begin
|
||||
d . set_unique ( i .. "_2_" .. j , d . spawn_mob_dir ( mob_set [ j ] [ 1 ] , mob_set [ j ] [ 2 ] , mob_set [ j ] [ 3 ] , mob_set [ j ] [ 4 ] ) )
|
||||
end
|
||||
end
|
||||
end ,is_dc2_doors_clear= function ()local setting = devilcatacomb_zone . setting ( )
|
||||
local clear = true
|
||||
for i = 1 , 4 begin
|
||||
local set_clear = true
|
||||
local mob_set = setting . dc2_door_set1 [ i ]
|
||||
local set_size = setting . dc2_door_set_size [ i ]
|
||||
for j = 1 , set_size begin
|
||||
set_clear = set_clear and d . is_unique_dead ( i .. "_1_" .. j )
|
||||
end
|
||||
if not set_clear then
|
||||
set_clear = true
|
||||
mob_set = setting . dc2_door_set2 [ i ]
|
||||
for j = 1 , set_size begin
|
||||
set_clear = set_clear and d . is_unique_dead ( i .. "_2_" .. j )
|
||||
end
|
||||
end
|
||||
clear = clear and set_clear
|
||||
end
|
||||
return clear
|
||||
end }
|
||||
@@ -0,0 +1,15 @@
|
||||
deviltower_zone={["start"]=0,get_4floor_stone_pos= function ()local positions =
|
||||
{
|
||||
{ 368 , 629 } , { 419 , 630 } , { 428 , 653 } , { 422 , 679 } ,
|
||||
{ 395 , 689 } , { 369 , 679 } , { 361 , 658 } ,
|
||||
}
|
||||
for i = 1 , 6 begin
|
||||
local j = number ( i , 7 )
|
||||
if i ~= j then
|
||||
local t = positions [ i ] ;
|
||||
positions [ i ] = positions [ j ] ;
|
||||
positions [ j ] = t ;
|
||||
end
|
||||
end
|
||||
return positions
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
dragon_lair={["start"]=0}
|
||||
@@ -0,0 +1,71 @@
|
||||
dragon_lair_access={["start"]=0,["kill_dragon"]=1259624743,["spawn_dragon"]=-98392822,get_settings= function ()local settings = { }
|
||||
settings . cooldown_time = 3600
|
||||
settings . group_time = 300
|
||||
settings . access_item = 30179
|
||||
settings . dragon_vnum = 2430
|
||||
settings . spawn = { }
|
||||
settings . spawn . x = 181
|
||||
settings . spawn . y = 173
|
||||
settings . warp_in = { }
|
||||
settings . warp_in . first = { }
|
||||
settings . warp_in . last = { }
|
||||
settings . warp_in . first . x = 843677
|
||||
settings . warp_in . first . y = 1.06621e+06
|
||||
settings . warp_in . last . x = 844027
|
||||
settings . warp_in . last . y = 1.0676e+06
|
||||
settings . warp_out = { }
|
||||
settings . warp_out . first = { }
|
||||
settings . warp_out . last = { }
|
||||
settings . warp_out . first . x = 9200
|
||||
settings . warp_out . first . y = 1.2064e+06
|
||||
settings . warp_out . last . x = 10900
|
||||
settings . warp_out . last . y = 1.2091e+06
|
||||
settings . room_area = { }
|
||||
settings . room_area . first = { }
|
||||
settings . room_area . last = { }
|
||||
settings . room_area . first . x = 833000
|
||||
settings . room_area . first . y = 1.0625e+06
|
||||
settings . room_area . last . x = 844100
|
||||
settings . room_area . last . y = 1.0715e+06
|
||||
settings . access_item_amount = game . get_event_flag ( "dragon_lair_amount" )
|
||||
if ( settings . access_item_amount == 0 ) then
|
||||
settings . access_item_amount = 3
|
||||
elseif ( settings . access_item_amount == - 1 ) then
|
||||
settings . access_item_amount = 0
|
||||
end
|
||||
return settings
|
||||
end ,get_random_point= function (area_coordinates)return math . random ( area_coordinates . first . x , area_coordinates . last . x ) , math . random ( area_coordinates . first . y , area_coordinates . last . y )
|
||||
end ,warp_to_lair= function ()local settings = dragon_lair_access . get_settings ( )
|
||||
local x , y = dragon_lair_access . get_random_point ( settings . warp_in )
|
||||
char_log ( pc . get_player_id ( ) , "LAIR" , pc . get_channel_id ( ) .. " WARPTOLAIR: x:" .. x .. ", y:" .. y )
|
||||
pc . warp ( x , y )
|
||||
end ,warp_from_lair= function ()local settings = dragon_lair_access . get_settings ( )
|
||||
local x , y = dragon_lair_access . get_random_point ( settings . warp_out )
|
||||
char_log ( pc . get_player_id ( ) , "LAIR" , pc . get_channel_id ( ) .. " WARPFROMLAIR: x:" .. x .. ", y:" .. y )
|
||||
pc . warp ( x , y )
|
||||
end ,warp_all_from_lair= function ()local settings = dragon_lair_access . get_settings ( )
|
||||
warp_all_in_area_to_area ( settings . room_area . first . x , settings . room_area . first . y , settings . room_area . last . x , settings . room_area . last . y , settings . warp_out . first . x , settings . warp_out . first . y , settings . warp_out . last . x , settings . warp_out . last . y )
|
||||
game . set_event_flag ( "dragon_lair_alive" , 0 )
|
||||
char_log ( 0 , "LAIR" , "WARP ALL" )
|
||||
end ,get_time_remaining= function ()local settings = dragon_lair_access . get_settings ( )
|
||||
return ( game . get_event_flag ( "dragon_lair_time" ) + settings . cooldown_time - get_global_time ( ) )
|
||||
end ,give_item_to_ghost= function ()local settings = dragon_lair_access . get_settings ( )
|
||||
say_title ( gameforge . ghost_story . _010_sayTitle )
|
||||
say ( gameforge . dragon_lair_access . _130_say )
|
||||
say ( settings . access_item_amount .. "x: " )
|
||||
say_item_vnum ( settings . access_item )
|
||||
local give_item = select ( gameforge . dragon_lair_access . _140_select , gameforge . locale . cancel )
|
||||
if give_item == 1 then
|
||||
pc . remove_item ( settings . access_item , settings . access_item_amount )
|
||||
char_log ( pc . get_player_id ( ) , "LAIR" , pc . get_channel_id ( ) .. " GIVE ITEM" )
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end ,show_time_remaining= function (time_remaining)q . set_title ( gameforge . dragon_lair_access . _165_sendLetter )
|
||||
send_letter ( gameforge . dragon_lair_access . _165_sendLetter )
|
||||
q . set_clock ( gameforge . locale . monkey_dungeon . quest_rest_time , time_remaining )
|
||||
timer ( "dragon_lair_timer" , time_remaining )
|
||||
notice_multiline ( string . format ( gameforge . dragon_lair_access . _170_notice , time_remaining / 60 ) , notice )
|
||||
q . start ( )
|
||||
end }
|
||||
@@ -0,0 +1,48 @@
|
||||
dragon_lair_weekly={["start"]=0,["getquest"]=1929663828,["hunt_item"]=707031697,set_settings= function ()local settings = { }
|
||||
settings . cooldown_time = 561600
|
||||
settings . time_to_hunt = 7200
|
||||
settings . items_to_hunt = {
|
||||
30198 ,
|
||||
30199 ,
|
||||
50721 ,
|
||||
50722 ,
|
||||
50723 ,
|
||||
50725 ,
|
||||
50726 ,
|
||||
50727
|
||||
}
|
||||
settings . amount_to_hunt = {
|
||||
10 ,
|
||||
10 ,
|
||||
50 ,
|
||||
50 ,
|
||||
50 ,
|
||||
50 ,
|
||||
50 ,
|
||||
50
|
||||
}
|
||||
settings . amount_to_pay = 150000
|
||||
settings . normal_items_rate = 50
|
||||
settings . normal_items = {
|
||||
{ 70008 , 1 }
|
||||
}
|
||||
settings . poly_item_vnum = 71093
|
||||
settings . poly_mobs = {
|
||||
{ 175 , 6 } ,
|
||||
{ 184 , 6 } ,
|
||||
{ 501 , 4 } ,
|
||||
{ 502 , 4 } ,
|
||||
{ 552 , 2 , 85 } ,
|
||||
{ 771 , 6 } ,
|
||||
{ 1601 , 2 , 95 } ,
|
||||
{ 2001 , 4 } ,
|
||||
{ 2051 , 2 , 90 } ,
|
||||
{ 2061 , 2 , 90 } ,
|
||||
{ 2131 , 6 } ,
|
||||
{ 5003 , 6 }
|
||||
}
|
||||
return settings
|
||||
end ,get_amount_remaining= function ()return ( pc . getqf ( "amount_to_hunt" ) - pc . count_item ( pc . getqf ( "item_to_hunt" ) ) )
|
||||
end ,get_time_remaining= function ()local settings = dragon_lair_weekly . set_settings ( )
|
||||
return ( pc . getqf ( "lasttime" ) - get_global_time ( ) + settings . time_to_hunt )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
dragon_soul={["start"]=0,["state_1"]=-1296991421,["state_2"]=733489913,["state_3"]=1556028015,["state_closed_season"]=-1430288148,["state_farming"]=-718086412,["state_learning"]=-252263835}
|
||||
@@ -0,0 +1,5 @@
|
||||
dragon_soul_daily_gift={["start"]=0,is_event_on= function ()local s_time = game . get_event_flag ( "ds_dg_st" )
|
||||
local e_time = game . get_event_flag ( "ds_dg_et" )
|
||||
local now = os . time ( )
|
||||
return now > s_time and now < e_time
|
||||
end }
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
dragon_soul_daily_gift_mgr={["start"]=0,is_event_on= function ()local s_time = game . get_event_flag ( "ds_dg_st" )
|
||||
local e_time = game . get_event_flag ( "ds_dg_et" )
|
||||
local now = os . time ( )
|
||||
return now > s_time and now < e_time
|
||||
end ,date_getter= function ()say ( gameforge . dragon_soul_gift_mgr . _040_say )
|
||||
say ( "yy-mm-dd hh:mm" )
|
||||
local date = input ( )
|
||||
local _ , _ , y , m , d , hour , min = string . find ( date , "(%d+)-(%d+)-(%d+) (%d+):(%d+)" )
|
||||
return y , m , d , hour , min
|
||||
end ,print_quest_info= function ()local s_time = game . get_event_flag ( "ds_dg_st" )
|
||||
local e_time = game . get_event_flag ( "ds_dg_et" )
|
||||
local gift_vnum = game . get_event_flag ( "ds_dg_item" )
|
||||
say ( os . date ( "start time[ENTER] year:%Y, month:%m, day:%d hour:%H minite:%M" , s_time ) )
|
||||
say ( os . date ( " end time[ENTER] year:%Y, month:%m, day:%d hour:%H minite:%M" , e_time ) )
|
||||
say ( string . format ( "gift item[ENTER] vnum : %d" , gift_vnum ) )
|
||||
say_item_vnum ( gift_vnum )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
dragon_soul_refine={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
dragon_soul_shop={["start"]=0}
|
||||
@@ -0,0 +1,20 @@
|
||||
energy_system={["start"]=0,["can_make"]=-1515020254,setting= function ()return
|
||||
{
|
||||
[ "prob_acc_table" ] =
|
||||
{
|
||||
[ "35to50" ] = { 30 , 55 , 70 , 80 , 90 , 95 , 97 , 98 , 99 , 100 } ,
|
||||
[ "51to70" ] = { 20 , 40 , 60 , 75 , 85 , 91 , 96 , 98 , 99 , 100 } ,
|
||||
[ "upto70" ] = { 10 , 25 , 45 , 65 , 80 , 88 , 94 , 97 , 99 , 100 }
|
||||
} ,
|
||||
[ "item_num_table" ] = { 0 , 1 , 2 , 3 , 4 , 6 , 8 , 10 , 12 , 15 } ,
|
||||
[ "energy_stone" ] = 51001 ,
|
||||
[ "charging_stone" ] = 51002
|
||||
}
|
||||
end ,getItemNum= function (str,r)local setting = energy_system . setting ( )
|
||||
for i = 1 , 10 begin
|
||||
if r < setting . prob_acc_table [ str ] [ i ] then
|
||||
return setting . item_num_table [ i ]
|
||||
end
|
||||
end
|
||||
return 0
|
||||
end }
|
||||
@@ -0,0 +1,71 @@
|
||||
entry_event_map={["start"]=0,enter_level= function (vnum1,vnum2)lv_range = { }
|
||||
lv_range [ 1 ] = { 15 , 39 }
|
||||
lv_range [ 2 ] = { 40 , 64 }
|
||||
lv_range [ 3 ] = { 65 , 84 }
|
||||
lv_range [ 4 ] = { 85 , 99 }
|
||||
lv_range [ 5 ] = { 100 , 105 }
|
||||
return lv_range [ vnum1 ] [ vnum2 ]
|
||||
end ,warp_to_map= function (modu)if modu == 1 then
|
||||
pc . warp ( 903 * 100 , 83 * 100 , 200 )
|
||||
elseif modu == 2 then
|
||||
pc . warp ( 1025 * 100 , 95 * 100 , 200 )
|
||||
else
|
||||
pc . warp ( 959 * 100 , 176 * 100 , 200 )
|
||||
end
|
||||
end ,check_limit= function ()if game . get_event_flag ( "event_map_login_counter" ) == game . get_event_flag ( "event_map_player_max" ) then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
end
|
||||
end ,player_dialog= function ()if pc . get_map_index ( ) == 200 then
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say ( gameforge . entry_event_map . _020_say )
|
||||
local sub_sel = select ( gameforge . locale . yes , gameforge . locale . no )
|
||||
if sub_sel == 2 then
|
||||
return
|
||||
end
|
||||
warp_to_village ( )
|
||||
local counter = game . get_event_flag ( "event_map_login_counter" )
|
||||
game . set_event_flag ( "event_map_login_counter" , counter - 1 )
|
||||
end
|
||||
if game . get_event_flag ( "event_map_active" ) == 0 then
|
||||
say ( locale . forked_man_say_cant )
|
||||
else
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say ( gameforge . entry_event_map . _030_say )
|
||||
local s = select ( locale . forked_enter , locale . forked_no_enter )
|
||||
local min = game . get_event_flag ( "event_map_level_min" )
|
||||
local max = game . get_event_flag ( "event_map_level_max" )
|
||||
local empire = game . get_event_flag ( "event_map_empire" )
|
||||
if s == 1 then
|
||||
if pc . level < min or pc . level > max then
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say_reward ( string . format ( gameforge . entry_event_map . _040_say , min , max ) )
|
||||
return
|
||||
end
|
||||
if pc . get_empire ( ) ~= empire and empire ~= 0 then
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say ( gameforge . entry_event_map . _050_say )
|
||||
return
|
||||
end
|
||||
if entry_event_map . check_limit ( ) == 0 then
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say ( gameforge . entry_event_map . _060_say )
|
||||
return
|
||||
end
|
||||
say_title ( gameforge . entry_event_map . _010_sayTitle )
|
||||
say ( gameforge . entry_event_map . _070_say )
|
||||
if empire == 0 then
|
||||
entry_event_map . warp_to_map ( pc . get_empire ( ) )
|
||||
else
|
||||
local modu = math . mod ( pc . get_player_id ( ) , 2 )
|
||||
entry_event_map . warp_to_map ( modu )
|
||||
end
|
||||
end
|
||||
end
|
||||
end ,gm_exit_check= function ()if pc . get_map_index ( ) == 200 and pc . get_gm_level ( ) == 5 then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1,217 @@
|
||||
event_easter_2013={["start"]=0,spawn_metin= function (map_index)local settings = event_easter_2013 . get_settings ( )
|
||||
local level_table = settings . spawn . maps [ map_index ]
|
||||
if level_table == nil then
|
||||
return
|
||||
end
|
||||
table . foreach ( level_table ,
|
||||
function ( index , level )
|
||||
for i = 0 , 5 begin
|
||||
regen_in_map ( map_index , "locale/_master/map/easter/metin_regen_level" .. level .. ".txt" )
|
||||
end
|
||||
end
|
||||
)
|
||||
mob . spawn ( 20352 , 1 , 1 , 1 , 1 , 1 )
|
||||
end ,metin_killed= function (vnum)local settings = event_easter_2013 . get_settings ( )
|
||||
local level = settings . metins [ vnum ]
|
||||
regen_in_map ( pc . get_map_index ( ) , "locale/_master/map/easter/metin_regen_level" .. level .. ".txt" )
|
||||
if level < pc . get_level ( ) - settings . max_level_difference then
|
||||
return
|
||||
else
|
||||
local eggVnum = math . random ( 50160 , 50179 )
|
||||
game . drop_item_with_ownership ( eggVnum , 1 )
|
||||
if math . random ( 1 , 100 ) <= settings . magicegg . pct then
|
||||
game . drop_item_with_ownership ( settings . magicegg . vnum , 1 )
|
||||
end
|
||||
end
|
||||
end ,is_running= function ()return ( game . get_event_flag ( "easter_drop" ) > 0 )
|
||||
end ,has_rabbit= function ()return ( game . get_event_flag ( "easter_rabbit" ) > 0 )
|
||||
end ,get_settings= function ()local spawnPromille = game . get_event_flag ( "easter_spawn_chance" )
|
||||
if spawnPromille <= 0 then
|
||||
spawnPromille = 5
|
||||
end
|
||||
local magicEggPercent = game . get_event_flag ( "easter_magicegg_chance" )
|
||||
if magicEggPercent <= 0 then
|
||||
magicEggPercent = 5
|
||||
end
|
||||
return {
|
||||
[ "eggvnums" ] = {
|
||||
[ "first" ] = 50160 ,
|
||||
[ "last" ] = 50179 ,
|
||||
} ,
|
||||
[ "baskets" ] = {
|
||||
[ "full" ] = 50181 ,
|
||||
[ "empty" ] = 50180 ,
|
||||
} ,
|
||||
[ "magicegg" ] = {
|
||||
[ "vnum" ] = 71150 ,
|
||||
[ "pct" ] = magicEggPercent ,
|
||||
} ,
|
||||
[ "metins" ] = {
|
||||
[ 8041 ] = 10 ,
|
||||
[ 8042 ] = 20 ,
|
||||
[ 8043 ] = 30 ,
|
||||
[ 8044 ] = 40 ,
|
||||
[ 8045 ] = 50 ,
|
||||
[ 8046 ] = 60 ,
|
||||
[ 8047 ] = 70 ,
|
||||
[ 8048 ] = 80 ,
|
||||
[ 8049 ] = 90 ,
|
||||
[ 8050 ] = 95
|
||||
} ,
|
||||
[ "max_level_difference" ] = 15 ,
|
||||
[ "rabbit" ] = 30129 ,
|
||||
[ "spawn" ] = {
|
||||
[ "kill" ] = 100 ,
|
||||
[ "cooldown" ] = 60 ,
|
||||
[ "promille" ] = spawnPromille ,
|
||||
[ "maps" ] = {
|
||||
[ 1 ] = { 10 , 20 } ,
|
||||
[ 3 ] = { 20 , 30 } ,
|
||||
[ 21 ] = { 10 , 20 } ,
|
||||
[ 23 ] = { 20 , 30 } ,
|
||||
[ 41 ] = { 10 , 20 } ,
|
||||
[ 43 ] = { 20 , 30 } ,
|
||||
[ 61 ] = { 50 , 60 } ,
|
||||
[ 62 ] = { 50 , 60 } ,
|
||||
[ 63 ] = { 40 , 50 } ,
|
||||
[ 64 ] = { 30 , 40 } ,
|
||||
[ 65 ] = { 40 , 50 } ,
|
||||
[ 67 ] = { 60 , 70 } ,
|
||||
[ 68 ] = { 70 , 80 } ,
|
||||
[ 69 ] = { 60 , 70 } ,
|
||||
[ 70 ] = { 70 , 80 } ,
|
||||
[ 301 ] = { 90 , 95 } ,
|
||||
[ 302 ] = { 90 , 95 } ,
|
||||
[ 303 ] = { 90 , 95 } ,
|
||||
[ 304 ] = { 90 , 95 } ,
|
||||
} ,
|
||||
} ,
|
||||
}
|
||||
end ,get_reward_table_for_item= function ()local playerlevel = pc . get_level ( )
|
||||
if playerlevel <= 18 then
|
||||
return {
|
||||
{ 27002 , 13 } ,
|
||||
{ 27005 , 13 } ,
|
||||
{ 27100 , 8 } ,
|
||||
{ 27103 , 8 } ,
|
||||
{ 50721 , 4 } ,
|
||||
{ 30053 , 9 , 20 } ,
|
||||
{ 30073 , 9 , 20 } ,
|
||||
{ 30033 , 9 , 20 } ,
|
||||
{ 30010 , 9 , 20 } ,
|
||||
{ 30031 , 9 , 20 } ,
|
||||
{ 30032 , 9 , 20 }
|
||||
}
|
||||
elseif playerlevel > 18 and playerlevel <= 30 then
|
||||
return {
|
||||
{ 27002 , 18 } ,
|
||||
{ 27005 , 18 } ,
|
||||
{ 27100 , 7 } ,
|
||||
{ 27103 , 7 } ,
|
||||
{ 27101 , 3 } ,
|
||||
{ 27104 , 3 } ,
|
||||
{ 50721 , 8 } ,
|
||||
{ 50722 , 8 } ,
|
||||
{ 50723 , 8 } ,
|
||||
{ 50724 , 8 } ,
|
||||
{ 50300 , 2 , 20 } ,
|
||||
{ 30196 , 5 , 20 } ,
|
||||
{ 30090 , 5 , 20 }
|
||||
}
|
||||
elseif playerlevel > 30 and playerlevel <= 52 then
|
||||
return {
|
||||
{ 27101 , 8 } ,
|
||||
{ 27104 , 8 } ,
|
||||
{ 27003 , 17 } ,
|
||||
{ 27006 , 17 } ,
|
||||
{ 27102 , 3 } ,
|
||||
{ 27105 , 3 } ,
|
||||
{ 50721 , 5 } ,
|
||||
{ 50722 , 5 } ,
|
||||
{ 50723 , 5 } ,
|
||||
{ 50724 , 5 } ,
|
||||
{ 50725 , 5 } ,
|
||||
{ 50726 , 5 } ,
|
||||
{ 50727 , 5 } ,
|
||||
{ 50728 , 5 } ,
|
||||
{ 50300 , 1 , 20 } ,
|
||||
{ 30195 , 4 , 20 } ,
|
||||
{ 30197 , 4 , 20 } ,
|
||||
{ 30193 , 3 , 20 }
|
||||
}
|
||||
elseif playerlevel > 52 and playerlevel <= 74 then
|
||||
return {
|
||||
{ 27003 , 14 } ,
|
||||
{ 27006 , 14 } ,
|
||||
{ 27102 , 9 } ,
|
||||
{ 27105 , 9 } ,
|
||||
{ 50721 , 5 } ,
|
||||
{ 50722 , 5 } ,
|
||||
{ 50723 , 5 } ,
|
||||
{ 50724 , 5 } ,
|
||||
{ 50725 , 5 } ,
|
||||
{ 50726 , 5 } ,
|
||||
{ 50727 , 5 } ,
|
||||
{ 50728 , 5 } ,
|
||||
{ 50300 , 1 , 20 } ,
|
||||
{ 30198 , 4 , 20 } ,
|
||||
{ 30199 , 4 , 20 } ,
|
||||
{ 8005 , 3 } ,
|
||||
}
|
||||
else
|
||||
return {
|
||||
{ 27102 , 11 } ,
|
||||
{ 27105 , 11 } ,
|
||||
{ 50091 , 15 } ,
|
||||
{ 50092 , 15 } ,
|
||||
{ 50093 , 15 } ,
|
||||
{ 50094 , 15 } ,
|
||||
{ 50300 , 4 , 20 } ,
|
||||
{ 50060 , 6 , 20 } ,
|
||||
{ 8005 , 4 } ,
|
||||
{ 30196 , 2 , 20 } ,
|
||||
{ 30090 , 2 , 20 } ,
|
||||
{ 30195 , 2 , 20 } ,
|
||||
{ 30197 , 2 , 20 } ,
|
||||
{ 30198 , 2 , 20 } ,
|
||||
{ 30199 , 2 , 20 }
|
||||
}
|
||||
end
|
||||
end ,get_reward_amount_for_vnum= function (reward_table,vnum_to_search)local amount_needed = 1
|
||||
table . foreachi ( reward_table ,
|
||||
function ( index , item )
|
||||
local itemVnum = item [ 1 ]
|
||||
if itemVnum == vnum_to_search then
|
||||
if table . getn ( item ) > 2 then
|
||||
amount_needed = item [ 3 ]
|
||||
else
|
||||
amount_needed = 1
|
||||
end
|
||||
return
|
||||
end
|
||||
end
|
||||
)
|
||||
return amount_needed
|
||||
end ,get_number_of_eggs= function ()local settings = event_easter_2013 . get_settings ( )
|
||||
return count_item_range ( settings . eggvnums . first , settings . eggvnums . last )
|
||||
end ,get_random_reward_vnum= function (reward_table)local temp_table = { }
|
||||
local easterEggCount = event_easter_2013 . get_number_of_eggs ( )
|
||||
table . foreachi ( reward_table ,
|
||||
function ( index , item )
|
||||
local itemProbability = item [ 2 ]
|
||||
local itemVnum = item [ 1 ]
|
||||
local meetsAmountLimit = true
|
||||
if table . getn ( item ) > 2 then
|
||||
if easterEggCount < item [ 3 ] then
|
||||
meetsAmountLimit = false
|
||||
end
|
||||
end
|
||||
if meetsAmountLimit then
|
||||
for amount = 1 , itemProbability begin
|
||||
table . insert ( temp_table , itemVnum )
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
return temp_table [ math . random ( table . getn ( temp_table ) ) ]
|
||||
end }
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
event_flame_dungeon_open={["start"]=0,["run"]=1349952704,kill_count= function ()local total_remain = 100
|
||||
local remain1 = pc . getqf ( "kill_count_1" )
|
||||
local remain_count = total_remain - remain1
|
||||
q . set_counter_value ( remain_count )
|
||||
if total_remain == 0 then
|
||||
pc . setqf ( "kill_done" , 1 )
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1,68 @@
|
||||
event_halloween_hair={["start"]=0,is_running= function ()return ( game . get_event_flag ( "halloween_hair" ) > 0 )
|
||||
end ,setting= function ()return {
|
||||
[ "pumpkin" ] = 30321 ,
|
||||
[ "wand" ] = 30322 ,
|
||||
[ "coupon" ] = 30323 ,
|
||||
[ "box" ] = 50215 ,
|
||||
[ "pumpkin_head" ] = 33008
|
||||
}
|
||||
end ,get_hair_option= function (index)local option_list = {
|
||||
{
|
||||
[ "apply" ] = apply . ATTBONUS_MONSTER ,
|
||||
[ "value" ] = 10 ,
|
||||
[ "duration" ] = 604800 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . ATTBONUS_SURA ,
|
||||
[ "value" ] = 10 ,
|
||||
[ "duration" ] = 604800 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . ATTBONUS_SHAMAN ,
|
||||
[ "value" ] = 10 ,
|
||||
[ "duration" ] = 604800 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . ATTBONUS_WARRIOR ,
|
||||
[ "value" ] = 10 ,
|
||||
[ "duration" ] = 604800 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . ATTBONUS_ASSASSIN ,
|
||||
[ "value" ] = 10 ,
|
||||
[ "duration" ] = 604800 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . MAX_HP_PCT ,
|
||||
[ "value" ] = 1 ,
|
||||
[ "duration" ] = 21600 ,
|
||||
} ,
|
||||
{
|
||||
[ "apply" ] = apply . MAX_SP_PCT ,
|
||||
[ "value" ] = 1 ,
|
||||
[ "duration" ] = 86400 ,
|
||||
} ,
|
||||
}
|
||||
return option_list [ index ]
|
||||
end ,get_random_hair_option_index= function ()local index = 1
|
||||
local rand = number ( 1 , 100 )
|
||||
if rand <= 5 then
|
||||
index = rand
|
||||
elseif rand <= 85 then
|
||||
index = 7
|
||||
else
|
||||
index = 6
|
||||
end
|
||||
return index
|
||||
end ,get_hair_info_by_race= function (race)hair_info_by_race = {
|
||||
{ 74020 , 1018 } ,
|
||||
{ 74270 , 2018 } ,
|
||||
{ 74520 , 3018 } ,
|
||||
{ 74770 , 4018 } ,
|
||||
{ 75020 , 1018 } ,
|
||||
{ 75220 , 2018 } ,
|
||||
{ 75420 , 3018 } ,
|
||||
{ 75620 , 4018 } ,
|
||||
}
|
||||
return hair_info_by_race [ race ]
|
||||
end }
|
||||
@@ -0,0 +1,22 @@
|
||||
event_mystery_box={["start"]=0,["go_sleep"]=-163855020,["run_state"]=-1626552203,drop_box= function (operator,mob)if game . get_event_flag ( "mystery_box_drop" ) ~= 1 then
|
||||
return
|
||||
end
|
||||
local prob = game . get_event_flag ( "mystery_box_prob" )
|
||||
local box_vnum = game . get_event_flag ( "mystery_box_vnum" )
|
||||
local logging = game . get_event_flag ( "mystery_box_logging" )
|
||||
if box_vnum == 0 then
|
||||
return
|
||||
end
|
||||
prob = math . floor ( prob * operator )
|
||||
local s = number ( 1 , prob )
|
||||
if s == 1 then
|
||||
game . drop_item_with_ownership ( box_vnum , 1 )
|
||||
if logging == 1 then
|
||||
char_log ( mob , "EVENT_MB_DROP_SUCCESS" , box_vnum .. " box dropped with prob:" .. prob )
|
||||
end
|
||||
else
|
||||
if logging == 1 then
|
||||
char_log ( mob , "EVENT_MB_DROP_FAIL" , box_vnum .. " box not dropped with prob:" .. prob )
|
||||
end
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1,21 @@
|
||||
event_ramadan={["start"]=0,is_running= function ()return ( game . get_event_flag ( "ramadan_drop" ) > 0 )
|
||||
end ,reward_period= function ()return ( game . get_event_flag ( "ramadan_reward" ) > 0 )
|
||||
end ,setting= function ()return {
|
||||
[ "bread" ] = 30315 ,
|
||||
[ "candy" ] = 50183 ,
|
||||
[ "plate" ] = 30316 ,
|
||||
[ "iftar" ] = 30317 ,
|
||||
[ "fruit" ] = 30318 ,
|
||||
[ "box" ] = 50182 ,
|
||||
[ "horse1" ] = 71131 ,
|
||||
[ "horse2" ] = 71132 ,
|
||||
[ "horse3" ] = 71133 ,
|
||||
[ "horse4" ] = 71134 ,
|
||||
[ "historian" ] = 33002 ,
|
||||
[ "beggar1" ] = 33003 ,
|
||||
[ "beggar2" ] = 33004 ,
|
||||
[ "beggar3" ] = 33005 ,
|
||||
[ "beggar4" ] = 33006 ,
|
||||
[ "beggar5" ] = 33007
|
||||
}
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
find_brother_article={["start"]=0,["__COMPLETE__"]=668443392,["__FAILURE__"]=138003151,["accept"]=-1289687756,["repair"]=-1897647071,["reward"]=1322349139}
|
||||
@@ -0,0 +1,9 @@
|
||||
find_senior_soldier={["start"]=0,["__FUNC__"]=-626319362,["failure"]=563807169,["find"]=-911318012,["reward"]=1322349139,clear_target_cond= function ()pc . setqf ( "Ziel_Beding" , 0 )
|
||||
end ,save_target_cond= function ()test_chat ( string . format ( gameforge . find_senior_soldier . _200_chat , npc_get_job ( ) ) )
|
||||
pc . setqf ( "Ziel_Beding" , npc_get_job ( ) )
|
||||
end ,find_target= function ()return find_pc_cond ( 5 , 100 , pc . getqf ( "Ziel_Beding" ) )
|
||||
end ,apply_affect= function (name,type,value)say_title ( gameforge . blacksmith . _40_sayTitle )
|
||||
say_reward ( name )
|
||||
say_reward ( gameforge . find_senior_soldier . _210_sayReward )
|
||||
affect . add ( type , value , 5 * 60 )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
find_squareguard={["start"]=0,["__COMPLETE__"]=668443392,["buy"]=-813464969,["deliver"]=1455263924,["find"]=-911318012,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
fisher={["start"]=0}
|
||||
@@ -0,0 +1,82 @@
|
||||
flame_dungeon={["start"]=0,setting= function ()return
|
||||
{
|
||||
[ "bossroom_entry_pos" ] = { 8109 , 6867 } ,
|
||||
[ "boss_pos" ] = { 686 , 637 } ,
|
||||
[ "doors_pos" ] = {
|
||||
{ 320 , 394 } ,
|
||||
{ 293 , 359 } ,
|
||||
{ 333 , 321 } ,
|
||||
{ 378 , 320 } ,
|
||||
{ 400 , 355 } ,
|
||||
{ 394 , 401 }
|
||||
} ,
|
||||
[ "idoors_pos" ] = {
|
||||
{ 268 , 447 } ,
|
||||
{ 234 , 359 } ,
|
||||
{ 300 , 264 } ,
|
||||
{ 454 , 217 } ,
|
||||
{ 470 , 355 } ,
|
||||
{ 467 , 469 }
|
||||
} ,
|
||||
[ "doors_dir" ] = { 135 , 90 , 210 , 152 , 90 , 223 } ,
|
||||
[ "idoors_dir" ] = { 135 , 90 , 210 , 135 , 90 , 239 } ,
|
||||
[ "dungeon_entry_pos" ] = { 7762 , 6739 } ,
|
||||
[ "DUNGEON_MAN_bpos" ] = { 690 , 722 } ,
|
||||
[ "DUNGEON_MAN_pos" ] = { 354 , 362 } ,
|
||||
[ "LEVEL2_STONE_pos" ] = { 195 , 352 } ,
|
||||
[ "LEVEL4_TARGET_pos" ] = { 470 , 175 } ,
|
||||
[ "LEVEL5_STONE_pos" ] = {
|
||||
{ 486 , 345 } ,
|
||||
{ 511 , 336 } ,
|
||||
{ 525 , 349 } ,
|
||||
{ 521 , 365 } ,
|
||||
{ 503 , 372 } ,
|
||||
{ 486 , 365 } ,
|
||||
{ 500 , 354 }
|
||||
} ,
|
||||
[ "LEVEL6_TARGET_pos" ] = { 511 , 480 } ,
|
||||
[ "outside_entry_pos" ] = { 6142 , 7068 } ,
|
||||
[ "YAK_pos" ] = { 376 , 397 }
|
||||
}
|
||||
end ,is_flamed= function (idx)return idx >= 351 * 10000 and idx < ( 351 + 1 ) * 10000
|
||||
end ,make_dungeon= function ()local setting = flame_dungeon . setting ( )
|
||||
d . new_jump_party ( 351 , setting . dungeon_entry_pos [ 1 ] , setting . dungeon_entry_pos [ 2 ] )
|
||||
d . regen_file ( "data/dungeon/flame_dungeon/npc.txt" )
|
||||
d . setf ( "level" , 0 )
|
||||
for i = 1 , 6 begin
|
||||
d . set_unique ( "door" .. i , d . spawn_mob_ac_dir ( 20387 , setting . doors_pos [ i ] [ 1 ] , setting . doors_pos [ i ] [ 2 ] , setting . doors_dir [ i ] ) )
|
||||
end
|
||||
for i = 1 , 6 begin
|
||||
d . set_unique ( "idoor" .. i , d . spawn_mob_ac_dir ( 20388 , setting . idoors_pos [ i ] [ 1 ] , setting . idoors_pos [ i ] [ 2 ] , setting . idoors_dir [ i ] ) )
|
||||
end
|
||||
d . setf ( "clear_count" , 0 )
|
||||
d . setf ( "started" , 0 )
|
||||
d . setf ( "dungeon_enter" , 0 )
|
||||
end ,go_boss= function ()local setting = flame_dungeon . setting ( )
|
||||
if pc . get_level ( ) < 104 then
|
||||
say ( gameforge . flame_dungeon . _580_notice )
|
||||
return
|
||||
else
|
||||
say ( gameforge . flame_dungeon . _010_say )
|
||||
local warp = select ( gameforge . flame_dungeon . _020_select , gameforge . flame_dungeon . _030_select )
|
||||
if warp == 1 then
|
||||
d . setf ( "level" , 17 )
|
||||
d . jump_all ( setting . bossroom_entry_pos [ 1 ] , setting . bossroom_entry_pos [ 2 ] )
|
||||
d . set_regen_file ( "data/dungeon/flame_dungeon/" .. "fd_fild_boss.txt" )
|
||||
d . spawn_mob ( 6091 , setting . boss_pos [ 1 ] , setting . boss_pos [ 2 ] )
|
||||
end
|
||||
end
|
||||
end ,level_clear= function ()d . setf ( "level" , 0 )
|
||||
d . clear_regen ( )
|
||||
d . purge_area ( 750000 , 620000 , 817400 , 689400 )
|
||||
end ,clear_timer= function (inx)clear_server_timer ( "flame_dungeon_0m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_1m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_5m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_10m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_15m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_30m_left_timer" , inx )
|
||||
clear_server_timer ( "flame_dungeon_45m_left_timer" , inx )
|
||||
clear_server_timer ( "killed_A_1" , inx )
|
||||
clear_server_timer ( "killed_A_2" , inx )
|
||||
clear_server_timer ( "flame_dungeon_ticket_remove" , inx )
|
||||
end }
|
||||
@@ -0,0 +1,7 @@
|
||||
forked_road={["start"]=0,enter_level= function (vnum1,vnum2)lv_range = { }
|
||||
lv_range [ 1 ] = { 15 , 39 }
|
||||
lv_range [ 2 ] = { 40 , 64 }
|
||||
lv_range [ 3 ] = { 65 , 84 }
|
||||
lv_range [ 4 ] = { 85 , 105 }
|
||||
return lv_range [ vnum1 ] [ vnum2 ]
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
fortune_telling={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
game_option={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
ghost_story={["start"]=0}
|
||||
@@ -0,0 +1,7 @@
|
||||
give_basic_weapon={["start"]=0,basic_item= function (job,index)item_list = { }
|
||||
item_list [ 0 ] = { 50187 }
|
||||
item_list [ 1 ] = { 50212 }
|
||||
item_list [ 2 ] = { 50187 }
|
||||
item_list [ 3 ] = { 50213 }
|
||||
return item_list [ job ] [ index ]
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
goldbar_shop={["start"]=0,["trade_goldbar"]=-1201150004}
|
||||
@@ -0,0 +1 @@
|
||||
goto_empire_castle={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
guild_building={["start"]=0}
|
||||
@@ -0,0 +1,90 @@
|
||||
guild_building_melt={["start"]=0,GetOreRefineCost= function (cost)if pc . empire ~= npc . empire then
|
||||
return 3 * cost
|
||||
end
|
||||
if pc . get_guild ( ) == npc . get_guild ( ) then
|
||||
return cost * 0.9
|
||||
end
|
||||
return cost
|
||||
end ,GetOreRefineGoodPct= function ()return 60
|
||||
end ,GetOreRefineBadPct= function ()return 30
|
||||
end ,GetMyRefineNum= function (race)return ( {
|
||||
[ 20060 ] = 50601 ,
|
||||
[ 20061 ] = 50602 ,
|
||||
[ 20062 ] = 50603 ,
|
||||
[ 20063 ] = 50604 ,
|
||||
[ 20064 ] = 50605 ,
|
||||
[ 20065 ] = 50606 ,
|
||||
[ 20066 ] = 50607 ,
|
||||
[ 20067 ] = 50608 ,
|
||||
[ 20068 ] = 50609 ,
|
||||
[ 20069 ] = 50610 ,
|
||||
[ 20070 ] = 50611 ,
|
||||
[ 20071 ] = 50612 ,
|
||||
[ 20072 ] = 50613 ,
|
||||
[ 33009 ] = 50614 ,
|
||||
[ 33010 ] = 50615 ,
|
||||
[ 33011 ] = 50616 ,
|
||||
[ 33012 ] = 50617 ,
|
||||
[ 33013 ] = 50618
|
||||
} ) [ race ]
|
||||
end ,IsRefinableRawOre= function (vnum)return vnum >= 50601 and vnum <= 50618
|
||||
end ,DoRefineDiamond= function (pct)local from_postfix
|
||||
local from_name = item_name ( item . vnum )
|
||||
local to_vnum = item . vnum + 20
|
||||
local to_name = item_name ( to_vnum )
|
||||
local to_postfix
|
||||
say ( gameforge . guild_building_melt . _10_say )
|
||||
if item . count >= 100 then
|
||||
say ( string . format ( gameforge . guild_building_melt . _20_say , pct , guild_building_melt . GetOreRefineCost ( 10000 ) ) )
|
||||
local s = select ( gameforge . locale . guild . yes , gameforge . locale . guild . no )
|
||||
if s == 1 then
|
||||
if pc . get_gold ( ) < guild_building_melt . GetOreRefineCost ( 10000 ) then
|
||||
say ( gameforge . guild_building_melt . _30_say )
|
||||
return
|
||||
end
|
||||
if pc . diamond_refine ( 10000 , pct ) then
|
||||
say ( gameforge . guild_building_melt . _40_say )
|
||||
say_item ( to_name , to_vnum , "" )
|
||||
else
|
||||
say ( gameforge . guild_building_melt . _50_say )
|
||||
end
|
||||
end
|
||||
else
|
||||
say ( string . format ( gameforge . guild_building_melt . _60_say , from_name ) )
|
||||
end
|
||||
end ,DoRefine= function (pct)local from_postfix
|
||||
local from_name = item_name ( item . vnum )
|
||||
local to_vnum = item . vnum + 20
|
||||
local to_name = item_name ( to_vnum )
|
||||
local to_postfix
|
||||
say ( string . format ( gameforge . guild_building_melt . _70_say , from_name , to_name ) )
|
||||
if item . count >= 100 then
|
||||
say ( string . format ( gameforge . guild_building_melt . _20_say , pct , guild_building_melt . GetOreRefineCost ( 3000 ) ) )
|
||||
local s = select ( gameforge . locale . guild . yes , gameforge . locale . guild . no )
|
||||
if s == 1 then
|
||||
if pc . get_gold ( ) < guild_building_melt . GetOreRefineCost ( 3000 ) then
|
||||
say ( gameforge . guild_building_melt . _30_say )
|
||||
return
|
||||
end
|
||||
local selected_item_cell = select_item ( )
|
||||
if selected_item_cell == 0 then
|
||||
say ( gameforge . guild_building_melt . _90_say )
|
||||
return
|
||||
end
|
||||
local old_item = item . get_id ( )
|
||||
if ( not item . select_cell ( selected_item_cell ) ) or item . vnum < 28000 or item . vnum >= 28300 then
|
||||
say ( gameforge . guild_building_melt . _100_say )
|
||||
return
|
||||
end
|
||||
item . select ( old_item , old_item )
|
||||
if pc . ore_refine ( 3000 , pct , selected_item_cell ) then
|
||||
say ( gameforge . guild_building_melt . _120_say )
|
||||
say_item ( to_name , to_vnum , "" )
|
||||
else
|
||||
say ( gameforge . guild_building_melt . _50_say )
|
||||
end
|
||||
end
|
||||
else
|
||||
say ( string . format ( gameforge . guild_building_melt . _60_say , from_name ) )
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
guild_building_npc={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
guild_create={["start"]=0,["reward"]=1322349139,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
guild_ranking={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
guild_war_bet={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
guild_war_join={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
guild_war_observer={["start"]=0}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
hair={["start"]=0,get_start_index_by_race= function (race)race_list = { }
|
||||
race_list [ 1 ] = 74001
|
||||
race_list [ 2 ] = 74251
|
||||
race_list [ 3 ] = 74501
|
||||
race_list [ 4 ] = 74751
|
||||
race_list [ 5 ] = 75001
|
||||
race_list [ 6 ] = 75201
|
||||
race_list [ 7 ] = 75401
|
||||
race_list [ 8 ] = 75601
|
||||
return race_list [ race ]
|
||||
end ,point_to_apply= function (applyOn)apply_list = { }
|
||||
apply_list [ 53 ] = apply . ATTBONUS_MONSTER apply_list [ 54 ] = apply . ATTBONUS_WARRIOR apply_list [ 55 ] = apply . ATTBONUS_ASSASSIN apply_list [ 56 ] = apply . ATTBONUS_SURA apply_list [ 57 ] = apply . ATTBONUS_SHAMAN apply_list [ 119 ] = apply . MAX_HP_PCT apply_list [ 120 ] = apply . MAX_SP_PCT if nil == apply_list [ applyOn ] then
|
||||
return nil
|
||||
end
|
||||
return apply_list [ applyOn ]
|
||||
end ,My_hair_item= function (vnum,index)hair_list = { }
|
||||
hair_list [ 74001 ] = { 1001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74002 ] = { 1002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74003 ] = { 1003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74004 ] = { 1004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74005 ] = { 1005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74006 ] = { 1006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74007 ] = { 1007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74008 ] = { 1008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74009 ] = { 1009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74010 ] = { 1010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74011 ] = { 1011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74012 ] = { 1012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74013 ] = { 1013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74014 ] = { 1013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74015 ] = { 1014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74016 ] = { 1014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74017 ] = { 1015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74018 ] = { 1016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74019 ] = { 1017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74251 ] = { 2001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74252 ] = { 2002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74253 ] = { 2003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74254 ] = { 2004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74255 ] = { 2005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74256 ] = { 2006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74257 ] = { 2007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74258 ] = { 2008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74259 ] = { 2009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74260 ] = { 2010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74261 ] = { 2011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74262 ] = { 2012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74263 ] = { 2013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74264 ] = { 2013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74265 ] = { 2014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74266 ] = { 2014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74267 ] = { 2015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74268 ] = { 2016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74269 ] = { 2017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74501 ] = { 3001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74502 ] = { 3002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74503 ] = { 3003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74504 ] = { 3004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74505 ] = { 3005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74506 ] = { 3006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74507 ] = { 3007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74508 ] = { 3008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74509 ] = { 3009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74510 ] = { 3010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74511 ] = { 3011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74512 ] = { 3012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74513 ] = { 3013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74514 ] = { 3013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74515 ] = { 3014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74516 ] = { 3014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74517 ] = { 3015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74518 ] = { 3016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74519 ] = { 3017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74751 ] = { 4001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74752 ] = { 4002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74753 ] = { 4003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74754 ] = { 4004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74755 ] = { 4005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74756 ] = { 4006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74757 ] = { 4007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74758 ] = { 4008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74759 ] = { 4009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 74760 ] = { 4010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 74761 ] = { 4011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 74762 ] = { 4012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 74763 ] = { 4013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74764 ] = { 4013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74765 ] = { 4014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 74766 ] = { 4014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 74767 ] = { 4015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74768 ] = { 4016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 74769 ] = { 4017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75001 ] = { 1001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75002 ] = { 1002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75003 ] = { 1003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75004 ] = { 1004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75005 ] = { 1005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75006 ] = { 1006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75007 ] = { 1007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75008 ] = { 1008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75009 ] = { 1009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75010 ] = { 1010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75011 ] = { 1011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75012 ] = { 1012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75013 ] = { 1013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75014 ] = { 1013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75015 ] = { 1014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75016 ] = { 1014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75017 ] = { 1015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75018 ] = { 1016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75019 ] = { 1017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75201 ] = { 2001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75202 ] = { 2002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75203 ] = { 2003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75204 ] = { 2004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75205 ] = { 2005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75206 ] = { 2006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75207 ] = { 2007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75208 ] = { 2008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75209 ] = { 2009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75210 ] = { 2010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75211 ] = { 2011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75212 ] = { 2012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75213 ] = { 2013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75214 ] = { 2013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75215 ] = { 2014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75216 ] = { 2014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75217 ] = { 2015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75218 ] = { 2016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75219 ] = { 2017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75401 ] = { 3001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75402 ] = { 3002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75403 ] = { 3003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75404 ] = { 3004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75405 ] = { 3005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75406 ] = { 3006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75407 ] = { 3007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75408 ] = { 3008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75409 ] = { 3009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75410 ] = { 3010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75411 ] = { 3011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75412 ] = { 3012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75413 ] = { 3013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75414 ] = { 3013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75415 ] = { 3014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75416 ] = { 3014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75417 ] = { 3015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75418 ] = { 3016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75419 ] = { 3017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75601 ] = { 4001 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75602 ] = { 4002 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75603 ] = { 4003 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75604 ] = { 4004 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75605 ] = { 4005 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75606 ] = { 4006 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75607 ] = { 4007 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75608 ] = { 4008 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75609 ] = { 4009 , apply . ATTBONUS_WARRIOR , 10 , 2.592e+06 }
|
||||
hair_list [ 75610 ] = { 4010 , apply . ATTBONUS_ASSASSIN , 10 , 2.592e+06 }
|
||||
hair_list [ 75611 ] = { 4011 , apply . ATTBONUS_SURA , 10 , 2.592e+06 }
|
||||
hair_list [ 75612 ] = { 4012 , apply . ATTBONUS_SHAMAN , 10 , 2.592e+06 }
|
||||
hair_list [ 75613 ] = { 4013 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75614 ] = { 4013 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75615 ] = { 4014 , apply . MAX_HP_PCT , 1 , 604800 }
|
||||
hair_list [ 75616 ] = { 4014 , apply . MAX_SP_PCT , 1 , 604800 }
|
||||
hair_list [ 75617 ] = { 4015 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75618 ] = { 4016 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
hair_list [ 75619 ] = { 4017 , apply . ATTBONUS_MONSTER , 10 , 604800 }
|
||||
if nil == hair_list [ vnum ] then
|
||||
return nil
|
||||
end
|
||||
return hair_list [ vnum ] [ index ]
|
||||
end ,leave_log= function (item_vnum)char_log ( 0 , "CHANGE_HAIR" , string . format ( "USE_ITEM(%d)" , item_vnum ) )
|
||||
char_log ( 0 , "CHANGE_HAIR" , string . format ( "END_SEC(%d)" , get_time ( ) + hair . My_hair_item ( item_vnum , 4 ) ) )
|
||||
char_log ( 0 , "CHANGE_HAIR" , "CHANGE_HAIR_END" )
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
hair_shop={["start"]=0}
|
||||
@@ -0,0 +1,71 @@
|
||||
harvest_festival={["start"]=0,["information"]=695801987,["mob_kill1"]=-762785884,["mob_kill2"]=1266785822,reset_flags= function ()if game . get_event_flag ( "harvest_festival" ) == 0 then
|
||||
q . setstate ( "information" )
|
||||
pc . setqf ( "harvest_festival_count" , 0 )
|
||||
pc . setqf ( "harvest_festival_mob_complete" , 0 )
|
||||
pc . setqf ( "cake_count" , 0 )
|
||||
pc . setqf ( "rice_count" , 0 )
|
||||
pc . setqf ( "mob_kill1_count" , 0 )
|
||||
pc . setqf ( "mob_kill2_count" , 0 )
|
||||
pc . setqf ( "mob2_info" , 0 )
|
||||
pc . setqf ( "mob1_info" , 0 )
|
||||
end
|
||||
end ,kill_action= function (mob_vnum,kill_state)local kill_count
|
||||
if kill_state == 1 then
|
||||
kill_count = pc . getqf ( "mob_kill1_count" ) + 1
|
||||
pc . setqf ( "mob_kill1_count" , kill_count )
|
||||
kill_finish = 30
|
||||
else
|
||||
kill_count = pc . getqf ( "mob_kill2_count" ) + 1
|
||||
pc . setqf ( "mob_kill2_count" , kill_count )
|
||||
kill_finish = 60
|
||||
end
|
||||
if kill_count < 0 then
|
||||
return
|
||||
end
|
||||
if kill_count >= kill_finish then
|
||||
q . set_counter ( gameforge . locale . levelup . remain_count , 0 )
|
||||
else
|
||||
q . set_counter ( gameforge . locale . levelup . remain_count , kill_finish - kill_count )
|
||||
end
|
||||
if kill_count == kill_finish then
|
||||
local random_rice = harvest_festival . get_random_rice ( 2 )
|
||||
notice_multiline ( string . format ( gameforge . harvest_festival . _560_notice , random_rice ) , notice )
|
||||
local cake_count = pc . getqf ( "cake_count" ) + random_rice
|
||||
pc . setqf ( "cake_count" , cake_count )
|
||||
pc . setqf ( "harvest_festival_mob_complete" , 1 )
|
||||
clear_letter ( )
|
||||
if kill_state == 2 then
|
||||
q . setstate ( "information" )
|
||||
end
|
||||
end
|
||||
end ,get_random_rice= function (type)if ( type == 1 ) then
|
||||
if ( pc . get_level ( ) >= 90 ) then
|
||||
random_rice = number ( 4 , 7 )
|
||||
elseif ( pc . get_level ( ) >= 70 ) then
|
||||
random_rice = number ( 3 , 6 )
|
||||
elseif ( pc . get_level ( ) >= 50 ) then
|
||||
random_rice = number ( 2 , 4 )
|
||||
elseif ( pc . get_level ( ) >= 30 ) then
|
||||
random_rice = number ( 1 , 3 )
|
||||
elseif ( pc . get_level ( ) >= 10 ) then
|
||||
random_rice = number ( 1 , 2 )
|
||||
else
|
||||
random_rice = number ( 1 , 2 )
|
||||
end
|
||||
elseif ( type == 2 ) then
|
||||
if ( pc . get_level ( ) >= 90 ) then
|
||||
random_rice = number ( 7 , 10 )
|
||||
elseif ( pc . get_level ( ) >= 70 ) then
|
||||
random_rice = number ( 6 , 8 )
|
||||
elseif ( pc . get_level ( ) >= 50 ) then
|
||||
random_rice = number ( 4 , 6 )
|
||||
elseif ( pc . get_level ( ) >= 30 ) then
|
||||
random_rice = number ( 2 , 5 )
|
||||
elseif ( pc . get_level ( ) >= 10 ) then
|
||||
random_rice = number ( 2 , 4 )
|
||||
else
|
||||
random_rice = number ( 2 , 3 )
|
||||
end
|
||||
end
|
||||
return random_rice
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
heavens_cave_escape={["start"]=0,["heavens_cave_escape"]=295196323}
|
||||
@@ -0,0 +1,65 @@
|
||||
heavens_cave_keyquest={["start"]=0,["blood_for_seon"]=744928930,["check_cooldown"]=865973175,["initialize"]=-670175614,["search_spirit"]=-297258912,["search_spirit_forest"]=-2138973444,["tears_for_seon"]=2090994643,generate_unique_rnd_table= function (SourceListDepth,TargetListDepth)local Rand_List = { }
|
||||
local Rand_Number
|
||||
local current_length = 1
|
||||
local conflict = false
|
||||
local i
|
||||
repeat
|
||||
Rand_Number = math . random ( 1 , SourceListDepth )
|
||||
i = 1
|
||||
conflict = false
|
||||
while conflict == false begin
|
||||
if Rand_List [ i ] == Rand_Number then
|
||||
conflict = true
|
||||
else
|
||||
if i == current_length then
|
||||
Rand_List [ i ] = Rand_Number
|
||||
current_length = current_length + 1
|
||||
conflict = true
|
||||
else
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
until current_length == TargetListDepth + 1
|
||||
return Rand_List
|
||||
end ,find_tear= function (Identifier)local a
|
||||
local c
|
||||
local heavens_cave_keyquest_LockTime = 5
|
||||
if heavens_cave_keyquest_Lock == true then
|
||||
if get_time ( ) - heavens_cave_keyquest_lock_timestamp >= heavens_cave_keyquest_LockTime then
|
||||
heavens_cave_keyquest_Lock = false
|
||||
end
|
||||
else
|
||||
target . delete ( "__TEAR" .. Identifier .. "__" )
|
||||
say_title ( gameforge . heavens_cave_keyquest . _150_say_title )
|
||||
say ( gameforge . heavens_cave_keyquest . _160_say )
|
||||
local s = select ( gameforge . heavens_cave_keyquest . _170_1_select , gameforge . heavens_cave_keyquest . _170_2_select , gameforge . heavens_cave_keyquest . _170_3_select )
|
||||
if s == 1 then
|
||||
c = pc . getqf ( "tears_collected" )
|
||||
say_title ( gameforge . heavens_cave_keyquest . _150_say_title )
|
||||
say ( gameforge . heavens_cave_keyquest . _180_say )
|
||||
pc . setqf ( "tears_collected" , c + 1 )
|
||||
pc . setqf ( "Tear" .. Identifier .. "Taken" , 1 )
|
||||
pc . give_item2 ( pc . getqf ( "heavens_cave_keyquest_FrozenTear" ) )
|
||||
end
|
||||
if s == 2 then
|
||||
a = math . random ( 1 , 3 )
|
||||
c = pc . getqf ( "tears_collected" )
|
||||
say_title ( gameforge . heavens_cave_keyquest . _190_say_title )
|
||||
say ( string . format ( gameforge . heavens_cave_keyquest . _200_say , a ) )
|
||||
wait ( )
|
||||
say_title ( gameforge . heavens_cave_keyquest . _190_say_title )
|
||||
say ( gameforge . heavens_cave_keyquest . _210_say )
|
||||
pc . setqf ( "tears_collected" , c + a )
|
||||
pc . setqf ( "Tear" .. Identifier .. "Taken" , 1 )
|
||||
pc . give_item2 ( pc . getqf ( "heavens_cave_keyquest_FrozenTear" ) , a )
|
||||
pc . aggregate_monster ( )
|
||||
end
|
||||
if s == 3 then
|
||||
heavens_cave_keyquest_lock_timestamp = get_time ( )
|
||||
heavens_cave_keyquest_Lock = true
|
||||
target . pos ( "__TEAR" .. Identifier .. "__" , heavens_cave_keyquest_SpiritForestCoordsTempList [ Identifier ] [ 1 ] , heavens_cave_keyquest_SpiritForestCoordsTempList [ Identifier ] [ 2 ] , 62 , gameforge . heavens_cave_keyquest . _150_say_title )
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
horse_exchange_ticket={["start"]=0,["__COMPLETE__"]=668443392}
|
||||
@@ -0,0 +1 @@
|
||||
horse_guard={["start"]=0,["__COMPLETE__"]=668443392}
|
||||
@@ -0,0 +1 @@
|
||||
horse_levelup={["start"]=0,["__COMPLETE__"]=668443392,["failure"]=563807169,["need_item50050"]=295036618,["report"]=-1003522172,["reward"]=1322349139,["training1"]=-32611444,["training2"]=1728524854,["training3"]=268436128,["training4"]=-1906010365,["training5"]=-110909547,["training6"]=1617622575,["training7"]=393070265,["training8"]=-2016224472,["training9"]=-254415938}
|
||||
@@ -0,0 +1,72 @@
|
||||
horse_menu={["start"]=0,horse_menu= function ()if horse . is_mine ( ) then
|
||||
say ( locale . horse_menu . menu )
|
||||
say ( "" )
|
||||
local s = 6
|
||||
if horse . is_dead ( ) then
|
||||
s = select ( locale . horse_menu . revive , locale . horse_menu . unsummon , locale . horse_menu . close )
|
||||
if s == 1 then s = 0
|
||||
elseif s == 2 then s = 3
|
||||
elseif s == 3 then return
|
||||
end
|
||||
else
|
||||
s = select (
|
||||
locale . horse_menu . feed , locale . horse_menu . ride , locale . horse_menu . unsummon , gameforge . horse_menu . _10_say , gameforge . horse_menu . _20_say , locale . horse_menu . close )
|
||||
end
|
||||
if s == 0 then
|
||||
horse . revive ( )
|
||||
elseif s == 1 then
|
||||
local food = horse . get_grade ( ) + 50054 - 1
|
||||
if pc . countitem ( food ) > 0 then
|
||||
pc . removeitem ( food , 1 )
|
||||
horse . feed ( )
|
||||
else
|
||||
say ( gameforge . horse_menu . _30_say .. item_name ( food ) )
|
||||
say ( "" )
|
||||
end
|
||||
elseif ( s == 2 and false == pc . is_riding ( ) ) then
|
||||
horse . ride ( )
|
||||
elseif s == 3 then
|
||||
horse . unsummon ( )
|
||||
elseif s == 4 then
|
||||
say ( gameforge . horse_menu . _40_say .. horse . get_health_pct ( ) .. "%" )
|
||||
say ( gameforge . horse_menu . _50_say .. horse . get_stamina_pct ( ) .. "%" )
|
||||
say ( "" )
|
||||
elseif s == 5 then
|
||||
if pc . countitem ( "71110" ) <= 0 then
|
||||
say ( gameforge . horse_menu . _30_say .. item_name ( "71110" ) )
|
||||
say ( "" )
|
||||
return
|
||||
end
|
||||
local old_horse_name = horse . get_name ( ) ;
|
||||
if string . len ( old_horse_name ) == 0 then
|
||||
say ( gameforge . horse_menu . _60_say )
|
||||
else
|
||||
say ( gameforge . horse_menu . _70_say .. old_horse_name )
|
||||
end
|
||||
say ( gameforge . horse_menu . _80_say )
|
||||
say ( "" )
|
||||
local horse_name = input ( )
|
||||
if string . len ( horse_name ) < 2 then
|
||||
say ( gameforge . horse_menu . _90_say )
|
||||
say ( "" )
|
||||
return
|
||||
elseif string . len ( horse_name ) > 12 then
|
||||
say ( gameforge . horse_menu . _100_say )
|
||||
say ( "" )
|
||||
return
|
||||
end
|
||||
local ret = horse . set_name ( horse_name )
|
||||
if ret == 0 then
|
||||
say ( gameforge . horse_menu . _110_say )
|
||||
say ( "" )
|
||||
elseif ret == 1 then
|
||||
say ( )
|
||||
say ( gameforge . horse_menu . _120_say )
|
||||
elseif ret == 2 then
|
||||
pc . remove_item ( "71110" )
|
||||
say ( gameforge . horse_menu . _130_say )
|
||||
say ( "" )
|
||||
end
|
||||
end
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
horse_revive={["start"]=0,["__COMPLETE__"]=668443392}
|
||||
@@ -0,0 +1 @@
|
||||
horse_ride={["start"]=0}
|
||||
@@ -0,0 +1,24 @@
|
||||
horse_summon={["start"]=0,["__COMPLETE__"]=668443392,get_horse_summon_prob_pct= function () do return 100 end -- always 100: see set_horse_summon_always_succeeds.py local skill_level = pc . get_skill_level ( 131 )
|
||||
if skill_level == 1 then
|
||||
return 15
|
||||
elseif skill_level == 2 then
|
||||
return 20
|
||||
elseif skill_level == 3 then
|
||||
return 30
|
||||
elseif skill_level == 4 then
|
||||
return 40
|
||||
elseif skill_level == 5 then
|
||||
return 50
|
||||
elseif skill_level == 6 then
|
||||
return 60
|
||||
elseif skill_level == 7 then
|
||||
return 70
|
||||
elseif skill_level == 8 then
|
||||
return 80
|
||||
elseif skill_level == 9 then
|
||||
return 90
|
||||
elseif skill_level >= 10 then
|
||||
return 100
|
||||
end
|
||||
return 10
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
horse_upgrade={["start"]=0,["__COMPLETE__"]=668443392,["buy"]=-813464969,["failure"]=563807169,["need_item50050"]=295036618,["report"]=-1003522172,["test"]=-662733300,["wait"]=2112783333}
|
||||
@@ -0,0 +1 @@
|
||||
horse_upgrade2={["start"]=0,["__COMPLETE__"]=668443392,["buy"]=-813464969,["failure"]=563807169,["need_item50050"]=295036618,["report"]=-1003522172,["test"]=-662733300,["wait"]=2112783333}
|
||||
@@ -0,0 +1 @@
|
||||
is_yang={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
item_change_sex={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
item_mall={["start"]=0}
|
||||
@@ -0,0 +1 @@
|
||||
knut_shop_box={["start"]=0}
|
||||
@@ -0,0 +1,28 @@
|
||||
levelup={["start"]=0,["run"]=1349952704,show_mob_pos= function (lev)map_index = pc . get_map_index ( )
|
||||
if map_index <= 0 then
|
||||
test_chat ( string . format ( gameforge . levelup . _210_chat , map_index ) )
|
||||
return
|
||||
end
|
||||
if map_index > table . getn ( special . lvq_map ) then
|
||||
test_chat ( string . format ( gameforge . levelup . _220_chat , map_index .. ") > max(" .. table . getn ( special . lvq_map ) ) )
|
||||
return
|
||||
end
|
||||
lev_quest_list = special . lvq_map [ map_index ]
|
||||
if not lev_quest_list then
|
||||
test_chat ( string . format ( gameforge . levelup . _230_chat , map_index ) )
|
||||
return
|
||||
end
|
||||
mob_pos_list = lev_quest_list [ lev ]
|
||||
if not mob_pos_list then
|
||||
test_chat ( string . format ( gameforge . levelup . _230_chat , map_index .. ")][lev(" .. lev ) )
|
||||
return
|
||||
end
|
||||
table . foreachi (
|
||||
mob_pos_list ,
|
||||
function ( n , mob_pos )
|
||||
test_chat ( string . format ( gameforge . levelup . _240_chat , mob_pos [ 1 ] , mob_pos [ 2 ] ) )
|
||||
addmapsignal ( mob_pos [ 1 ] * 100 , mob_pos [ 2 ] * 100 )
|
||||
end
|
||||
)
|
||||
setmapcenterposition ( 200 , 0 )
|
||||
end }
|
||||
@@ -0,0 +1,11 @@
|
||||
main_quest_flame_lv100={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775,kill_count= function ()local total_remain = 0
|
||||
local remain1 = 300 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state1_3" )
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1,5 @@
|
||||
main_quest_flame_lv101={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state1_4"]=-1511646614,["state1_5"]=-756995332,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state2_4"]=-1482644429,["state3_1"]=-704103797,["state3_2"]=1325493041,item_count= function ()if pc . count_item ( 31080 ) >= 1 then
|
||||
set_state ( "state2_3" )
|
||||
end
|
||||
q . set_counter_value ( 1 - pc . count_item ( 31080 ) )
|
||||
end }
|
||||
@@ -0,0 +1,27 @@
|
||||
main_quest_flame_lv102={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775,["state4_1"]=-750310386,["state4_2"]=1246657972,kill_count= function ()local total_remain = 0
|
||||
local remain1 = 30 - pc . getqf ( "mob1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
local remain2 = 30 - pc . getqf ( "mob2" )
|
||||
if remain2 < 0 then
|
||||
remain2 = 0
|
||||
end
|
||||
local remain3 = 30 - pc . getqf ( "mob3" )
|
||||
if remain3 < 0 then
|
||||
remain3 = 0
|
||||
end
|
||||
local remain4 = 30 - pc . getqf ( "mob4" )
|
||||
if remain4 < 0 then
|
||||
remain4 = 0
|
||||
end
|
||||
total_remain = remain1 + remain2 + remain3 + remain4
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state1_3" )
|
||||
end
|
||||
end ,item_count= function ()if pc . count_item ( 31081 ) >= 10 then
|
||||
set_state ( "state2_3" )
|
||||
end
|
||||
q . set_counter_value ( 10 - pc . count_item ( 31081 ) )
|
||||
end }
|
||||
@@ -0,0 +1,51 @@
|
||||
main_quest_flame_lv103={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775,["state4_1"]=-750310386,["state4_2"]=1246657972,["state4_3"]=1028214050,["state4_4"]=-1557276543,kill_count_state2_2= function ()local total_remain = 0
|
||||
local remain1 = 1000 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = remain1
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state2_3" )
|
||||
end
|
||||
end ,kill_count_state3_2= function ()local total_remain = 0
|
||||
local remain1 = 50 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
local remain2 = 50 - pc . getqf ( "kill_count_2" )
|
||||
if remain2 < 0 then
|
||||
remain2 = 0
|
||||
end
|
||||
total_remain = total_remain + remain2
|
||||
local remain3 = 50 - pc . getqf ( "kill_count_3" )
|
||||
if remain3 < 0 then
|
||||
remain3 = 0
|
||||
end
|
||||
total_remain = total_remain + remain3
|
||||
local remain4 = 50 - pc . getqf ( "kill_count_4" )
|
||||
if remain4 < 0 then
|
||||
remain4 = 0
|
||||
end
|
||||
total_remain = total_remain + remain4
|
||||
local remain5 = 50 - pc . getqf ( "kill_count_5" )
|
||||
if remain5 < 0 then
|
||||
remain5 = 0
|
||||
end
|
||||
total_remain = total_remain + remain5
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state3_3" )
|
||||
end
|
||||
end ,kill_count_state4_3= function ()local total_remain = 0
|
||||
local remain1 = 1 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state4_4" )
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1,21 @@
|
||||
main_quest_flame_lv104={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775,["state4_1"]=-750310386,["state4_2"]=1246657972,["state4_3"]=1028214050,kill_count= function ()local total_remain = 0
|
||||
local remain1 = 1 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state1_3" )
|
||||
end
|
||||
end ,item_count_state2_3= function ()local item_count = pc . getqf ( "item_count_1" )
|
||||
local remain = 5 - item_count
|
||||
if remain <= 0 then
|
||||
remain = 0
|
||||
end
|
||||
q . set_counter_value ( remain )
|
||||
end ,item_count_state4_2= function ()if pc . count_item ( 31024 ) >= 5 then
|
||||
set_state ( "state4_3" )
|
||||
end
|
||||
q . set_counter_value ( 5 - pc . count_item ( 31024 ) )
|
||||
end }
|
||||
@@ -0,0 +1,41 @@
|
||||
main_quest_flame_lv105={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775,kill_count_state1_2= function ()local total_remain = 0
|
||||
local remain1 = 10 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
local remain2 = 10 - pc . getqf ( "kill_count_2" )
|
||||
if remain2 < 0 then
|
||||
remain2 = 0
|
||||
end
|
||||
total_remain = total_remain + remain2
|
||||
local remain3 = 10 - pc . getqf ( "kill_count_3" )
|
||||
if remain3 < 0 then
|
||||
remain3 = 0
|
||||
end
|
||||
total_remain = total_remain + remain3
|
||||
local remain4 = 10 - pc . getqf ( "kill_count_4" )
|
||||
if remain4 < 0 then
|
||||
remain4 = 0
|
||||
end
|
||||
total_remain = total_remain + remain4
|
||||
local remain5 = 10 - pc . getqf ( "kill_count_5" )
|
||||
if remain5 < 0 then
|
||||
remain5 = 0
|
||||
end
|
||||
total_remain = total_remain + remain5
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state1_3" )
|
||||
end
|
||||
end ,kill_count_state2_2= function ()local total_remain = 0
|
||||
local remain1 = 1 - pc . getqf ( "kill_count_1" )
|
||||
if remain1 < 0 then
|
||||
remain1 = 0
|
||||
end
|
||||
total_remain = total_remain + remain1
|
||||
q . set_counter_value ( total_remain )
|
||||
if total_remain == 0 then
|
||||
set_state ( "state2_3" )
|
||||
end
|
||||
end }
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_flame_lv99={["start"]=0,["__COMPLETE__"]=668443392,["state0"]=-568891545,["state1_1"]=-712184091,["state1_2"]=1283833695,["state1_3"]=998412233,["state2_1"]=-674606916,["state2_2"]=1321402630,["state2_3"]=969159056,["state2_4"]=-1482644429,["state3_1"]=-704103797,["state3_2"]=1325493041,["state3_3"]=939940775}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv1={["start"]=0,["__COMPLETE__"]=668443392,["gotoinfomation"]=-596781658,["gototeacher"]=-1147521841}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv10={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["gotomusition"]=-1621780889,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv12={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["killgraydog"]=-866072757,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv14={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["killmetinstone"]=93026729,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv15={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["gotomusition"]=-1621780889,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv16={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["killrobber"]=-798306295,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv2={["start"]=0,["__COMPLETE__"]=668443392,["gototeacher"]=-1147521841,["gototeacher2"]=297138968,["killdog"]=1752804203,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv27={["start"]=0,["__COMPLETE__"]=668443392,["gotoboss"]=1452891306,["gotoboss2"]=746614183,["killmetinstone"]=93026729,["run"]=1349952704}
|
||||
@@ -0,0 +1 @@
|
||||
main_quest_lv3={["start"]=0,["__COMPLETE__"]=668443392,["gotodefend"]=633892193,["gotogood"]=82015234,["gototeacher"]=-1147521841,["run"]=1349952704}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user