69 lines
2.4 KiB
Lua
69 lines
2.4 KiB
Lua
function get_module_name()
|
|
return 'NPC_skillcard_combiner.lua'
|
|
|
|
end
|
|
|
|
function skillcard_combiner_contact()
|
|
dlg_title("Skill cards helper")
|
|
dlg_text("Hello, which skill cards should I combine for you?")
|
|
dlg_menu("Deva",'skillcard_combiner_contact_2(1)')
|
|
dlg_menu("Asura",'skillcard_combiner_contact_2(2)')
|
|
dlg_menu("Gaia",'skillcard_combiner_contact_2(3)')
|
|
dlg_menu("Just combine everything!",'skillcard_combiner_contact_all()')
|
|
dlg_menu("No, thanks.",'')
|
|
dlg_show()
|
|
|
|
|
|
end
|
|
|
|
function skillcard_combiner_contact_2(race)
|
|
|
|
local race_array = {"Deva","Asura","Gaia"}
|
|
|
|
dlg_title("Skill cards helper")
|
|
dlg_text("I have the "..race_array[race].."-Skilled cards logged in for you.<br>Which cards do you want to upgrade??")
|
|
dlg_menu("+1",'skillcard_combiner_contact_3('..race..',1)')
|
|
dlg_menu("+2",'skillcard_combiner_contact_3('..race..',2)')
|
|
dlg_menu("+3",'skillcard_combiner_contact_3('..race..',3)')
|
|
dlg_menu("+4",'skillcard_combiner_contact_3('..race..',4)')
|
|
dlg_menu("But none...",'')
|
|
dlg_show()
|
|
|
|
end
|
|
|
|
function skillcard_combiner_contact_3(race,cards)
|
|
|
|
local race_array = {"Deva","Asura","Gaia"}
|
|
|
|
dlg_title("Skill cards helper")
|
|
dlg_text("I have the "..race_array[race].."-Skilled cards +"..cards.." logged in for you.<br>With which cube should the process go through?")
|
|
dlg_menu("Normal skill cubes",'skillcard_combiner_contact_4('..race..','..cards..',1)')
|
|
dlg_menu("Legendary skill cubes",'skillcard_combiner_contact_4('..race..','..cards..',2)')
|
|
dlg_menu("But none...",'')
|
|
dlg_show()
|
|
|
|
end
|
|
|
|
function skillcard_combiner_contact_4(race,cards,cube)
|
|
|
|
local race_array = {"Deva","Asura","Gaia"}
|
|
local cube_array = {"Normal skill cubes","Legendary skill cubes"}
|
|
local next_card = cards + 1
|
|
|
|
dlg_title("Skill cards helper")
|
|
dlg_text("Check your input: card type:"..race_array[race].." +"..cards.."<br>Cube type:"..cube_array[cube].."<br>Are the details correct??")
|
|
dlg_menu("Yes",'skillcard_combine('..race..','..next_card..','..cube..')')
|
|
dlg_menu("No, again from the beginning.",'skillcard_combiner_contact()')
|
|
dlg_show()
|
|
|
|
end
|
|
|
|
function skillcard_combiner_contact_all()
|
|
|
|
dlg_title("Skill cards helper")
|
|
dlg_text("Are you sure?<br>Then I combine all skill cards from +1 to +4 of each race, as long as you have enough skill cubes.<br>I only use normal skill Cube for this.")
|
|
dlg_menu("Yes I am sure.",'skillcard_combine_all()')
|
|
dlg_menu("I do not think so.",'skillcard_combiner_contact()')
|
|
dlg_show()
|
|
|
|
end |