[STILL NOT SOLVE THIS]Creature farm doesn't work. I can put creature, ticket and cracker but can't click botton.
This is lua for Creature Farm
Code:
function get_module_name()
return "NPC_Creature_farm"
end
math.randomseed( os.time() )
function NPC_Creature_Farm_init()
cprint( "!ナゥクョテト ウ・NPC ー。オソ" )
set_npc_name( "@91000349" )
end
ticket_table = {
{{1,1,1,2,2,3},
{3,3,3,6,6,9}},
{{2,2,2,3,3,4},
{6,6,6,9,9,12}},
{{2,2,2,3,3,4},
{6,6,6,9,9,12}},
{{3,3,3,4,4,5},
{9,9,9,12,12,15}},
{{3,3,3,4,4,5},
{9,9,9,12,12,15}},
{{4,4,4,5,5,6},
{12,12,12,15,15,18}}
}
--ticket_code_table = {}
--ticket_code_table[ "259200" ] = {}
--ticket_code_table[ "259200" ][ "0" ] = { 710005 }
--ticket_code_table[ "259200" ][ "1" ] = { 710007 }
--ticket_code_table[ "604800" ] = {}
--ticket_code_table[ "604800" ][ "0" ] = { 710006 }
--ticket_code_table[ "604800" ][ "1" ] = { 710008 }
--cracker_code_table = { 2902163, 2902162, 2902167, 2902166, 2902161 }
slot_usable = {}
slot_usable = { 0, 0, 0 }
function NPC_Creature_Farm_nurse_handler()
local rate = math.random(1, 10)
if rate < 6 then
insert_item( 710009, 1 )
return 1
end
return 0
end
function NPC_Creature_Farm_contact()
dlg_title( "@91000350" )
dlg_text( "@91000351" )
dlg_menu( "@91000352", "NPC_Creature_Farm_explain()" ) dlg_menu( "@91000353", "show_creature_farm_window()" )
dlg_menu( "@90010002", " " )
dlg_show()
end
function NPC_Creature_Farm_explain()
dlg_title( "@91000350" )
dlg_text( "@91000358" )
dlg_menu( "@91000355", "NPC_Creature_Farm_Whatis()" )
dlg_menu( "@91000356", "NPC_Creature_Farm_Creature_Growup()" ) dlg_menu( "@91000357", "NPC_Creature_Farm_Whatis_Creature_Care()" )
dlg_menu( "@90010003", "NPC_Creature_Farm_contact()" )
dlg_menu( "@90010002", " " )
dlg_show()
end
function NPC_Creature_Farm_Whatis()
dlg_title( "@91000350" )
dlg_text( "@91000359" )
dlg_menu( "@90010003", "NPC_Creature_Farm_contact()" )
dlg_menu( "@90010002", " " )
dlg_show()
end
function NPC_Creature_Farm_Creature_Growup()
dlg_title( "@91000350" )
dlg_text( "@91000360" )
dlg_menu( "@90010003", "NPC_Creature_Farm_contact()" )
dlg_menu( "@90010002", " " )
dlg_show()
end
function NPC_Creature_Farm_Whatis_Creature_Care()
dlg_title( "@91000350" )
dlg_text( "@91000361" )
dlg_menu( "@90010003", "NPC_Creature_Farm_contact()" )
dlg_menu( "@90010002", " " )
dlg_show()
end






