Code:
function NPC_Event_AngelandDevil_devil_init()
cprint( "Boss Spawn" )
set_npc_name( "Boss" )
end
function NPC_Event_AngelandDevil_devil_contact()
dlg_title( "Boss Spawn" )
dlg_text( "Im Gonna Spawn Bosses for Money" )
dlg_menu( "Oforia 500.000", "Boss_1()")
dlg_menu( "Abhuva 500.000", "Boss_2()")
dlg_menu( "Primal Scream 500.000", "Boss_3()")
dlg_menu( "Taranida 500.000", "Boss_4()")
dlg_menu( "Crustalino 800.000", "Boss_5()")
dlg_menu( "Likirus 800.000", "Boss_6()")
dlg_menu( "Soulseeker 800.000", "Boss_7()")
dlg_menu( "Takin 800.000", "Boss_8()")
dlg_menu( "Aurumis 2.000.000", "Boss_9()")
dlg_menu( "Betrayal (140) 3.000.000", "Boss_10()")
dlg_menu( "Betrayal (158) 3.000.000", "Boss_11()")
dlg_menu( "Betrayal Hardmode 5.000.000", "Boss_12()")
dlg_menu( "Draka (165) 1.000.000", "Boss_13()")
dlg_menu( "Kruzin (165) 1.000.000", "Boss_14()")
dlg_menu( "Teruzin (165) 1.000.000", "Boss_15()")
dlg_menu( "Queen Eva (170) 1.000.000", "Boss_16()")
dlg_menu( "Ashmaw (170) 3.000.000", "Boss_17()")
dlg_menu( "Ashmaw Hardmode 5.000.000", "Boss_18()")
dlg_menu( "Nightmare Boss (175) 1.000.000", "Boss_19()")
dlg_menu( "Unicorn Boss (175) 1.000.000", "Boss_20()")
dlg_menu( "DeathWhisper (180) 1.000.000", "Boss_21()")
dlg_menu( "Obsidikar (185) 10.000.000", "Boss_22()")
dlg_menu( "Sand Lord Kynish (190) 10.000.000", "Boss_23()")
dlg_menu( "Sandlord Hardmode 20.000.000", "Boss_24()")
dlg_menu( "Thank you", '' )
dlg_show()
end
function Boss_1()
local gold = get_value( "gold" )
if gold >= 500000 then
add_npc( 191857,154807,9040018,1)
set_value( "gold", gold - 500000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 500000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_2()
local gold = get_value( "gold" )
if gold >= 500000 then
add_npc( 191857,154807,9050013,1)
set_value( "gold", gold - 500000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 500000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_3()
local gold = get_value( "gold" )
if gold >= 500000 then
add_npc( 191857,154807,9060016,1)
set_value( "gold", gold - 500000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 500000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_4()
local gold = get_value( "gold" )
if gold >= 500000 then
add_npc( 191857,154807,9070012,1)
set_value( "gold", gold - 500000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 500000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_5()
local gold = get_value( "gold" )
if gold >= 800000 then
add_npc( 191857,154807,9080014,1)
set_value( "gold", gold - 800000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 800000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_6()
local gold = get_value( "gold" )
if gold >= 800000 then
add_npc( 191857,154807,9090019,1)
set_value( "gold", gold - 800000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 800000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_7()
local gold = get_value( "gold" )
if gold >= 800000 then
add_npc( 191857,154807,9108022,1)
set_value( "gold", gold - 800000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 800000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_8()
local gold = get_value( "gold" )
if gold >= 800000 then
add_npc( 191857,154807,9110015,1)
set_value( "gold", gold - 800000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 800000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_9()
local gold = get_value( "gold" )
if gold >= 2000000 then
add_npc( 191857,154807,145010,1)
set_value( "gold", gold - 2000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 2000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_10()
local gold = get_value( "gold" )
if gold >= 3000000 then
add_npc( 191857,154807,25,1)
set_value( "gold", gold - 3000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 3000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_11()
local gold = get_value( "gold" )
if gold >= 3000000 then
add_npc( 191857,154807,9158002,1)
set_value( "gold", gold - 3000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 3000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_12()
local gold = get_value( "gold" )
if gold >= 5000000 then
add_npc( 191857,154807,10158002,1)
set_value( "gold", gold - 5000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 5000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_13()
local gold = get_value( "gold" )
if gold >= 3000000 then
add_npc( 191857,154807,165007,1)
set_value( "gold", gold - 3000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 3000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_14()
local gold = get_value( "gold" )
if gold >= 5000000 then
add_npc( 191857,154807,165005,1)
set_value( "gold", gold - 5000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 5000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_15()
local gold = get_value( "gold" )
if gold >= 10000000 then
add_npc( 191857,154807,165006,1)
set_value( "gold", gold - 10000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 10000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_16()
local gold = get_value( "gold" )
if gold >= 20000000 then
add_npc( 191857,154807,170003,1)
set_value( "gold", gold - 20000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 20000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_17()
local gold = get_value( "gold" )
if gold >= 10000000 then
add_npc( 191857,154807,9170001,1)
set_value( "gold", gold - 10000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 10000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_18()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,10170001,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_19()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,175003,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_20()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,175002,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_21()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,180003,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_22()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,185001,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_23()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,9190001,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end
function Boss_24()
local gold = get_value( "gold" )
if gold >= 1000000 then
add_npc( 191857,154807,10190001,1)
set_value( "gold", gold - 1000000 )
update_gold_chaos()
NPC_Event_AngelandDevil_devil_contact()
return
end
if gold < 1000000 then
dlg_title( "No Money" )
dlg_text( "Sorry you need more Money" )
return
end
end