Files
LonaRPG-Online-Games/Data/HCGframes/event/NoerMarketFatdalf.rb
T
2026-10-29 21:59:06 +04:00

32 lines
811 B
Ruby

if $game_map.threat
SndLib.sys_buzzer
$game_map.popup(0,"QuickMsg:Lona/incombat#{rand(2)}",0,0)
return
end
call_msg("TagMapNoerMarket:Fatdalf/Welcome")
tmpGotoTar = ""
tmpTarList = []
tmpTarList << [$game_text["commonNPC:commonNPC/Cancel"] ,"Cancel"]
tmpTarList << [$game_text["commonNPC:commonNPC/Barter"] ,"Barter"]
cmd_sheet = tmpTarList
cmd_text =""
for i in 0...cmd_sheet.length
cmd_text.concat(cmd_sheet[i].first+",")
end
call_msg("commonNPC:MaleHumanRandomNpc/CommonHuman_CommonNpcOpt",0,2,0)
call_msg("\\optB[#{cmd_text}]")
$game_temp.choice == -1 ? tmpPicked = false : tmpPicked = cmd_sheet[$game_temp.choice][1]
$game_temp.choice = -1
case tmpPicked
when "Barter"
manual_barters("CommonMagicTrader")
end
$story_stats["HiddenOPT0"] = "0"
eventPlayEnd