Example #1
0
 // Use this for initialization
 void Start()
 {
     //player = GameObject.Find("Swordman_No_Animation").GetComponent<SwordmanControl>();
     player = Property_Controller.Instance;
 }
Example #2
0
    //主流任务流程安排
    public void Init()
    {
        //play = GameObject.Find("Swordman_No_Animation").GetComponent<SwordmanControl>();
        play = Property_Controller.Instance;


        Task a = new Task();

        a.title          = "Visit the Eldest";
        a.type           = TaskType.Talk;
        a.npcid          = 1;
        a.beginmessage   = "Welcome, my warrior!";
        a.endmessage     = "Kill 2 wolves";
        a.missionmessage = "Go talk to the old man";
        MainStreamTasks.Add(a);

        Task b = new Task();

        b.title          = "The First Hunting";
        b.type           = TaskType.KillMonster;
        b.npcid          = 1;
        b.beginmessage   = "You're so brave! Thank you!";
        b.endmessage     = "The pretty lady needs your help! Go and have a look!";
        b.missionmessage = "Kill 2 wolves";
        b.killid         = 2;
        b.killcount      = 2;
        b.moneyReward    = 200;
        b.ExpReward      = 200;
        MainStreamTasks.Add(b);

        Task c = new Task();

        c.title          = "Visit the potion seller";
        c.type           = TaskType.Talk;
        c.npcid          = 2;
        c.beginmessage   = "Hello, my brave man!";
        c.endmessage     = "Boss wolf is nausty, help me punish him";
        c.missionmessage = "Talk to the beauty";
        MainStreamTasks.Add(c);

        Task d = new Task();

        d.title          = "Save the village";
        d.type           = TaskType.KillMonster;
        d.npcid          = 2;
        d.beginmessage   = "It won't come here now! Thank you!";
        d.endmessage     = "The weapon merchant has somethings to tell you, GO!";
        d.missionmessage = "Kill Boss wolf";
        d.killid         = 3;
        d.killcount      = 1;
        d.moneyReward    = 500;
        d.ExpReward      = 500;
        MainStreamTasks.Add(d);


        Task f = new Task();

        f.title          = "Visit the weapon seller";
        f.type           = TaskType.Talk;
        f.npcid          = 3;
        f.beginmessage   = "I have been waiting for you soooo long!";
        f.endmessage     = "I have missed my magic bottle, please help me find them.";
        f.missionmessage = "Talk to the merchant";
        MainStreamTasks.Add(f);

        Task g = new Task();

        g.title          = "Collect Items";
        g.type           = TaskType.CollectCreature;
        g.npcid          = 3;
        g.beginmessage   = "You have given me a big favor, here you go!";
        g.endmessage     = "No more tasks already, go and have a adventure!";
        g.missionmessage = "Collect Magic Bottle";
        g.creatureid     = "MpPotion";
        g.creatureCount  = 5;
        g.moneyReward    = 200;
        g.ExpReward      = 200;
        MainStreamTasks.Add(g);
        //MainStreamTasks.Add(g);
    }