Initial commit: server + serverfiles
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
"init christmas quest"
|
||||
Executable
+4
@@ -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" )
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
return is_test_server ( ) or pc . is_gm ( )
|
||||
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas._010_npcChat
|
||||
Executable
+12
@@ -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__" )
|
||||
serverfiles/share/locale/english/quest/object/20126/chat/new_christmas_2012_nog.nog_first_give.0.arg
Executable
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas._050_npcChat
|
||||
+11
@@ -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" )
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas._090_npcChat
|
||||
Executable
+12
@@ -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
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas_sock._010_npcChat
|
||||
+14
@@ -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" )
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas_sock._080_npcChat
|
||||
Executable
+10
@@ -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
|
||||
Executable
Executable
+1
@@ -0,0 +1 @@
|
||||
"reset flags / reindeer, socks"
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
pc . setqf ( "last_reindeer_give_time" , 0 )
|
||||
pc . setqf ( "last_sock_cooldown_time" , 0 )
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
return is_test_server ( )
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
gameforge.new_christmas_sock._050_npcChat
|
||||
Executable
+24
@@ -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
|
||||
Reference in New Issue
Block a user