Beispiel #1
0
 private void Update()
 {
     if (progress == PROGRESS.START)
     {
         NPCdashida.AddObject("Quest3", "Dashida_Answer");
     }
 }
Beispiel #2
0
    IEnumerator TalkDashda_start()
    {
        yield return(null);

        string[] comments = new string[]
        {
            "\"오홍 역시 재빠르시군요\n다름이아니라 신너굴님의 채무상환스케쥴을\n알려드리려고 뵙자고했어요.\"",
            "\"우선 돈을 빌리셨으면 갚으셔야하는게 맞는거니까 매일 PM 8시전까지 원금및 이자상환부탁드릴게용\"",
            "\"혹시나 그럴일은 없겠지만 PM 8시전까지 상환하지않으신다면 무서운분들을 만나실꺼에요 험한꼴 당하고 싶으시면 뭐 상관없겠지만요~\"",
            "\"현재 신너굴님의 대출금액은 10.000.000벨, 대출이자는 1.000.000벨입니다. \"",
            "\"상환스케쥴은 변동될수 있는점 양해부탁드리구요 신너굴님의 노력여하에따라 이자율은 늘어날수도 줄어들수도 있으니 알아서 잘해보세용. 헿\"",
            "\"상점을 이용해서 채집한 아이템이나 제작한아이템들을 판매해서 티끌모아 빛청산!도 가능하시지 않을까요? 찡긋\"",
            "\"오늘의 상환스케쥴\n원금 100벨 이자10벨 토탈110벨\"",
        };
        BoolList bl = Comment.instance.CommentPrint(comments);

        yield return(new WaitUntil(() => bl.isDone));

        QuestManager.instance.RemoveQueset(questName);
        QuestManager.instance.AddQuest(questName, "오늘의 상환스케쥴\n원금 100벨 이자10벨 토탈110벨", "", "Quest2", "RepaymentToday");
        ResetQusetList();
        NPCdashida.AddObject("Quest2", "RepaymentTodashida");
        StartTimer();

        progress = PROGRESS.GOING;
        PlayerPrefs.SetInt(save, (int)progress);
    }
Beispiel #3
0
    public void RepaymentTodashida()
    //다시다에게 붙여줄 다시다 상환 함수
    {
        if (progress != PROGRESS.GOING)
        {
            return;
        }

        if (TimeManager.instance.timezone == TimeManager.TIMEZONE.NIGHT)
        {
            Comment.instance.CommentPrint("상환 가능한 시간이 아닙니다");
            NPCdashida.AddObject("Quest2", "RepaymentTodashida");
            return;
        }

        CoinManager coinmanager = FindObjectOfType <CoinManager>();

        if (coinmanager.coin >= 110)
        {
            coinmanager.coin -= 110;
            Comment.instance.CommentPrint("다행히 시간안에 가져오셨군요\n오늘은 무서운일이 일어나지 않을거에요");
            FindObjectOfType <ChasingAtNight>().notToNight = true;
            QuestManager.instance.RemoveQueset(questName);
            ResetQusetList();
            progress = PROGRESS.END;
            PlayerPrefs.SetInt(save, (int)progress);

            StartCoroutine(WaitNextQuest());
        }
        else
        {
            Comment.instance.CommentPrint("아직 110벨을 모으지 못했어요\n시간이 계속 흐른답니다\n늦으면 큰일난다구요!");
            NPCdashida.AddObject("Quest2", "RepaymentTodashida");
        }
    }
Beispiel #4
0
 protected override void Start()
 {
     base.Start();
     progress = (PROGRESS)PlayerPrefs.GetInt(save, 0);
     if (progress != PROGRESS.END)
     {
         NPCdashida.AddObject("Quest1_3", "TalkDashida");
     }
 }
    IEnumerator StartQuest()
    {
        yield return(null);

        QuestManager.instance.AddQuest(questName, questDes, "", "Quest_DailyRepayment", "ClickQuest");
        Comment.instance.CommentPrint("새로운 날이 밝았다\n새로운 상환 스케줄을 확인하자");
        NPCdashida.AddObject("Quest_DailyRepayment", "RepaymentTodashida");

        progress = PROGRESS.START;
        PlayerPrefs.SetInt(save, (int)progress);
    }
 protected override void Start()
 {
     base.Start();
     progress = (PROGRESS)PlayerPrefs.GetInt(save, 0);
     if (progress == PROGRESS.START) // 퀘스트가 시작상태일때
     {
         if (CheckQuest())           // NPC에게 해당 퀘스트가 등록되어있는지 확인후
         {
             NPCdashida.AddObject("Quest_DailyRepayment", "RepaymentTodashida");
         }
     }
 }
Beispiel #7
0
    public override void LaunchingQuest()
    {
        if (progress != PROGRESS.YET)
        {
            return;
        }

        Comment.instance.CommentPrint("'움막설치를 완료했다. \n다시다에게 가볼까??'");
        QuestManager.instance.AddQuest(questName, "다시다에게 말을 걸어 보자", "", "", "");
        ResetQusetList();
        progress = PROGRESS.START;
        PlayerPrefs.SetInt(save, (int)progress);

        NPCdashida.AddObject("Quest1_3", "TalkDashida");
    }
Beispiel #8
0
    IEnumerator LaunchingComment()
    {
        string[] comments = new string[]
        {
            "\"뭐라도 드셔야 빛을 갚을테니??\n근처에서 버섯이라도 찾아드세요\"",
            "'하 우선 살아남아야하니 \n다시다의 말에따라 식량을 구해보자'",
            "버섯은 섬곳곳에서 자라고 있다\n독버섯일수도 있지만 포만감이 떨어져\n기절하는것보단 낫겠지.....또르르",
        };
        BoolList bl = Comment.instance.CommentPrint(comments);

        yield return(new WaitUntil(() => bl.isDone));

        QuestManager.instance.AddQuest(questName, "버섯을 10개 모아서 다시다에게 가져가자", "", "Quest3", "RemindQuest");
        NPCdashida.AddObject("Quest3", "Dashida_Answer");
        ResetQusetList();
        progress = PROGRESS.START;
        PlayerPrefs.SetInt(save, (int)progress);
    }
Beispiel #9
0
    IEnumerator StartQuest()
    {
        yield return(null);

        string[] comments = new string[]
        {
            "다시다 : \"...신너굴님 잠시 저좀 뵐까요?\"",
            "내주제에 오라면 가야지....\n왠지 가지않으면 안좋은일이 생길것같은 예감이다.\n어서 다시다에게 가보자!",
        };
        BoolList bl = Comment.instance.CommentPrint(comments);

        yield return(new WaitUntil(() => bl.isDone));

        QuestManager.instance.AddQuest(questName, "다시다에게 가서 말을 들어보자");
        NPCdashida.AddObject("Quest2", "TalkDashida_Start");

        progress = PROGRESS.START;
        PlayerPrefs.SetInt(save, (int)progress);
    }
Beispiel #10
0
    public void Dashida_Answer()
    {
        if (progress != PROGRESS.START)
        {
            return;
        }

        bool isbool = false;
        int  idx    = 0;

        for (int i = 0; i < Inventory.instance.inventoryItemList.Count; i++)
        {
            if (Inventory.instance.inventoryItemList[i].itemID == 10000023)
            {
                if (Inventory.instance.inventoryItemList[i].itemCount >= 10)
                {
                    isbool = true;
                    idx    = i;
                }
            }
        }
        if (isbool)
        {
            StartCoroutine(DoneComment());

            GetComponent <Quest3_1>().LaunchingQuest();
            GetComponent <Quest3_2>().LaunchingQuest();

            progress = PROGRESS.END;
            PlayerPrefs.SetInt(save, (int)progress);
            QuestManager.instance.RemoveQueset(questName);
            ResetQusetList();
        }
        else
        {
            Comment.instance.CommentPrint("\"10개가 무슨말인지 모르시나요?\n버섯 10개를 모아오세요\"");
            NPCdashida.AddObject("Quest3", "Dashida_Answer");
        }
    }
    public void RepaymentTodashida()
    {
        if (progress != PROGRESS.START)
        {
            return;
        }

        if (TimeManager.instance.timezone == TimeManager.TIMEZONE.NIGHT)
        {
            Comment.instance.CommentPrint("상환 가능한 시간이 아닙니다");
            NPCdashida.AddObject("Quest_DailyRepayment", "RepaymentTodashida");
            return;
        }

        CoinManager coinmanager = FindObjectOfType <CoinManager>();

        if (coinmanager.coin >= loanBase + loanInt)
        {
            coinmanager.coin -= loanBase + loanInt;

            Comment.instance.CommentPrint("다행히 시간안에 가져오셨군요\n오늘은 무서운일이 일어나지 않을거에요");
            FindObjectOfType <ChasingAtNight>().notToNight = true;
            QuestManager.instance.RemoveQueset(questName);
            ResetQusetList();
            progress = PROGRESS.END;
            PlayerPrefs.SetInt(save, (int)progress);
            ATMManager atm = FindObjectOfType <ATMManager>();
            atm.ATM -= loanBase;
            FindObjectOfType <CoinManager>().ATMaddcoin(loanBase);
            atm.CheckATM();
            atm.CheckCOIN();
            atm.SaveATMcoin();
        }
        else
        {
            Comment.instance.CommentPrint("아직 상환액을 모으지 못했어요\n시간이 계속 흐른답니다\n늦으면 큰일난다구요!");
            NPCdashida.AddObject("Quest_DailyRepayment", "RepaymentTodashida");
        }
    }