Initial commit: server + serverfiles

This commit is contained in:
Game
2026-08-17 17:31:44 +00:00
commit ff1237686b
17389 changed files with 868929 additions and 0 deletions
@@ -0,0 +1 @@
"init christmas quest"
@@ -0,0 +1,4 @@
set_state ( "start" )
set_quest_state ( "new_christmas_2012_nog" , "start" )
set_quest_state ( "new_christmas_2012_sock" , "start" )
say ( "init complete" )
@@ -0,0 +1 @@
return is_test_server ( ) or pc . is_gm ( )
@@ -0,0 +1 @@
gameforge.new_christmas._010_npcChat
@@ -0,0 +1,12 @@
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _020_say )
wait ( )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _030_say )
wait ( )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _040_say )
wait ( )
set_quest_state ( "new_christmas_2012_nog" , "nog_first_give" )
set_quest_state ( "new_christmas_2012_sock" , "baby_dear_give" )
set_state ( "__COMPLETE__" )
@@ -0,0 +1 @@
gameforge.new_christmas._050_npcChat
@@ -0,0 +1,11 @@
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _060_say )
wait ( )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _070_say )
wait ( )
pc . give_item2 ( 50216 , 6 )
pc . setqf ( "last_nog_give_time" , get_global_time ( ) )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _080_say )
set_state ( "nog_give" )
@@ -0,0 +1 @@
gameforge.new_christmas._090_npcChat
@@ -0,0 +1,12 @@
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _100_say )
wait ( )
if get_global_time ( ) - pc . getqf ( "last_nog_give_time" ) >= 86400 then
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _110_say )
pc . setqf ( "last_nog_give_time" , get_global_time ( ) )
pc . give_item2 ( 50216 , 6 )
else
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas . _120_say )
end
@@ -0,0 +1 @@
gameforge.new_christmas_sock._010_npcChat
@@ -0,0 +1,14 @@
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _020_say )
wait ( )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _030_say )
wait ( )
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _040_say )
wait ( )
say_title ( mob_name ( 20126 ) )
pc . give_item2_select ( 53007 , 1 )
item . set_socket ( 0 , get_global_time ( ) + 7200 )
pc . setqf ( "last_reindeer_give_time" , get_global_time ( ) )
set_state ( "sock_take" )
@@ -0,0 +1 @@
gameforge.new_christmas_sock._080_npcChat
@@ -0,0 +1,10 @@
if get_global_time ( ) - pc . getqf ( "last_reindeer_give_time" ) < 86400 then
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _090_say )
else
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _040_say )
pc . give_item2_select ( 53007 , 1 )
item . set_socket ( 0 , get_global_time ( ) + 7200 )
pc . setqf ( "last_reindeer_give_time" , get_global_time ( ) )
end
@@ -0,0 +1 @@
"reset flags / reindeer, socks"
@@ -0,0 +1,2 @@
pc . setqf ( "last_reindeer_give_time" , 0 )
pc . setqf ( "last_sock_cooldown_time" , 0 )
@@ -0,0 +1 @@
return is_test_server ( )
@@ -0,0 +1 @@
gameforge.new_christmas_sock._050_npcChat
@@ -0,0 +1,24 @@
if get_time ( ) < pc . getqf ( "last_sock_cooldown_time" ) then
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _100_say )
else
local n = pc . count_item ( 50010 )
if n < 5 then
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _060_say )
wait ( )
else
say_title ( mob_name ( 20126 ) )
say ( gameforge . new_christmas_sock . _070_say )
wait ( )
pc . remove_item ( 50010 , 5 )
say_title ( locale . reward )
pc . give_item2 ( 71144 )
say_reward ( string . format ( "%s : 1%s" , item_name ( 71144 ) , locale . count_postfix ) )
if is_test_server ( ) then
pc . setqf ( "last_sock_cooldown_time" , get_time ( ) + 20 )
else
pc . setqf ( "last_sock_cooldown_time" , get_time ( ) + 60 * 60 * 24 )
end
end
end