Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region [ Epic Ninja Quest ]
- case 3849:
- {
- switch (client.ActiveNpc)
- {
- #region DivineAnthony
- case 10660:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Perhaps, it`s the fate. The Life`s Eye throbbed after sinking in silence for years. If you`re able to complete the 3 trials,");
- dialog.Text("~you`ll win the Life`s Eye. With this mythical eye, you can transform your katana into an Epic weapon.");
- dialog.Option("Take~Yin~Yang~Stele.~(1st)", 1);
- dialog.Option("Go~for~Elemental~Guard.~(2nd)", 2);
- dialog.Option("Go~for~Wheel~of~Life.~(3rd)", 3);
- dialog.Option("Tell~me~more.", 4);
- dialog.Option("Leave~the~Infinite~Abyss.", 5);
- dialog.Option("Close.", 255);
- dialog.Avatar(204);
- dialog.Send();
- break;
- }
- case 1:
- {
- Data datapacket = new Data(true);
- datapacket.UID = client.Entity.UID;
- datapacket.ID = 162;
- datapacket.TimeStamp2 = 10657;
- datapacket.wParam1 = 36;
- datapacket.wParam2 = 36;
- client.Send(datapacket);
- break;
- }
- case 2:
- {
- if (!client.Inventory.Contains(3004462, 1))
- {
- dialog.Text("To continue the 2nd trial and awaken the Elemental Guard, you should have a Yin Yang Seal. Go challenge the 1st trial, and fetch the seal from the Yin Yang Stele!");
- dialog.Option("Okay.", 255);
- dialog.Avatar(204);
- dialog.Send();
- }
- else
- {
- client.Inventory.Remove(3004462, 1);
- if (Kernel.Rate(10))
- {
- client.Inventory.Add(3004463, 0, 1);
- }
- else
- {
- if (Kernel.Rate(100))
- {
- ushort r = (ushort)Kernel.Random.Next(1, 10);
- client.MessageBox("Try~Again!~But~You~Got~"+r+"~Stardust");
- client.Inventory.Add(3004465, 0, r);
- }
- else
- {
- client.MessageBox("Failed!~Try~Again!");
- }
- }
- }
- break;
- }
- case 3:
- {
- if (!client.Inventory.Contains(3004463, 1))
- {
- dialog.Text("To continue the 3rd trial and activate the Wheel of Life, you should have the Elemental Jade. Go challenge the 2nd trial, and take the jade from the Elemental Guard!");
- dialog.Option("Okay.", 255);
- dialog.Avatar(204);
- dialog.Send();
- }
- else
- {
- client.Inventory.Remove(3004463, 1);
- if (Kernel.Rate(10))
- {
- client.Inventory.Add(3004464, 0, 1);
- }
- else
- {
- if (Kernel.Rate(100))
- {
- client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
- client.Inventory.Add(3004465, 0, 10);
- }
- else
- {
- client.MessageBox("Failed!~Try~Again!");
- }
- }
- }
- break;
- }
- case 5:
- {
- client.Entity.Teleport(1004, 40, 43);
- break;
- }
- case 4:
- {
- dialog.Text("There are 3 trials in the Infinite Abyss: Yin Yang Stele, Elemental Guard, and the Wheel of Life.\n");
- dialog.Text("1. Use 4 Red Flowers and 4 White Flowers to balance the energy, and fetch the Yin Yang Seal from the Yin Yang Stele.\n");
- dialog.Text("2. Awaken the Elemental Guard with the Yin Yang Seal, and follow the elements to get the Elemental Jade.\n");
- dialog.Text("3. Activate the Wheel of Life with the Elemental Jade. Get rid of the wheel to win the Life`s Eye.\n\n");
- dialog.Text("The Life`s Eye can be used to transform your katana into an Epic weapon.\n\n");
- dialog.Option("I~see.", 255);
- dialog.Avatar(204);
- dialog.Send();
- break;
- }
- }
- break;
- }
- #endregion
- #region YinYangStele
- case 10657:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("There are two paths of unstable energy in this stele. You can challenge it with 4 Red Flowers and 4 White Flowers, everyday.");
- dialog.Text("~These flowers grow at the Evil Abyss (2nd Rebirth Quest).");
- dialog.Option("Balance~the~energy.", 1);
- dialog.Option("Entrust~the~job.", 3);
- dialog.Option("Leave.", 255);
- dialog.Avatar(204);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (!client.Inventory.Contains(722732, 4) || !client.Inventory.Contains(722736, 4))
- {
- dialog.Text("You should have 4 Red Flowers and 4 White Flowers to balance the energy in the Stele. Make sure you have enough flowers with you!");
- dialog.Option("Alright.", 255);
- dialog.Option("Use~the~power~of~CPs.~(27~CPs)", 2);
- dialog.Avatar(204);
- dialog.Send();
- }
- else
- {
- if (Kernel.Rate(10))
- {
- client.Inventory.Remove(722732, 4);
- client.Inventory.Remove(722736, 4);
- client.Inventory.Add(3004462, 0, 1);
- }
- else
- {
- client.Inventory.Remove(722732, 4);
- client.Inventory.Remove(722736, 4);
- if (Kernel.Rate(35))
- {
- client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
- client.Inventory.Add(3004465, 0, 1);
- }
- else
- {
- client.MessageBox("Failed!~Try~Again!");
- }
- }
- }
- break;
- }
- case 2:
- {
- if (client.Entity.ConquerPoints >= 27)
- {
- client.Entity.ConquerPoints -= 27;
- if (Kernel.Rate(10))
- {
- client.Inventory.Add(3004462, 0, 1);
- }
- else
- {
- if (Kernel.Rate(35))
- {
- client.MessageBox("Try~Again!~But~You~Got~1~Stardust");
- client.Inventory.Add(3004465, 0, 1);
- }
- else
- {
- client.MessageBox("Failed!~Try~Again!");
- }
- }
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~CPs~to~balance~the~energy~in~the~Stele.");
- }
- break;
- }
- case 3:
- {
- dialog.Text("It`ll cost you 27 CPs to entrust the whole balancing work. Have you decided?");
- dialog.Option("Yeah,~here~are~27~CPs.", 2);
- dialog.Option("No,~I~changed~my~mind.", 255);
- dialog.Avatar(203);
- dialog.Send();
- break;
- }
- }
- break;
- }
- #endregion
- #region Swapper
- case 10663:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("If you happen to collect some Stardust in the Infinite Abyss, you can swap them for treasures with me.");
- dialog.Option("Skill~scroll~(for~skill~learning)", 1);
- dialog.Option("1200~Chi~Points.~(5~Stardust)", 2);
- dialog.Option("3~Protection~Pills.~(1~Stardust)", 3);
- dialog.Option("10~Free~Courses.~(2~Stardust)", 4);
- dialog.Option("Swap~scroll~for~Stardust.", 5);
- dialog.Option("I`ll~think~about~it.", 255);
- dialog.Avatar(206);
- dialog.Send();
- break;
- }
- case 1:
- {
- dialog.Text("I have 3 kinds of Ninja skill scrolls: \nAnthony Scroll: Use it to learn Ninja`s class skill, [Anthony Clone].\nTwilight Scroll: ");
- dialog.Text("~Use it to learn an active skill for Ninja`s Epic Weapon, [Twilight Dance].\nFatal Scroll: Use it to learn a passive skill for");
- dialog.Text("~Ninja`s Epic Weapon, [Fatal Spin]\n\nMake your choice wisely.\n\n");
- dialog.Option("Anthony~Scroll.~(1~Stardust)", 6);
- dialog.Option("Fatal~Scroll.~(10~Stardust)", 7);
- dialog.Option("Twilight~Scroll.~(20~Stardust)", 8);
- dialog.Option("Previous.", 3);
- dialog.Avatar(206);
- dialog.Send();
- break;
- }
- case 6:
- {
- if (client.Inventory.Contains(3004465, 1))
- {
- client.Inventory.Remove(3004465, 1);
- client.Inventory.Add(3004459, 0, 1);
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
- }
- break;
- }
- case 7:
- {
- if (client.Inventory.Contains(3004465, 10))
- {
- client.Inventory.Remove(3004465, 10);
- client.Inventory.Add(3004461, 0, 1);
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
- }
- break;
- }
- case 8:
- {
- if (client.Inventory.Contains(3004465, 20))
- {
- client.Inventory.Remove(3004465, 20);
- client.Inventory.Add(3004460, 0, 1);
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~this~Ninja~skill~scroll.");
- }
- break;
- }
- case 2:
- {
- if (client.Inventory.Contains(3004465, 5))
- {
- client.Inventory.Remove(3004465, 5);
- client.ChiPoints += 1200;
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~1,200~Chi~Points.");
- }
- break;
- }
- case 3:
- {
- if (client.Inventory.Contains(3004465, 1))
- {
- client.Inventory.Remove(3004465, 1);
- client.Inventory.Add(3002029, 0, 3);
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~3~Protection~Pills.");
- }
- break;
- }
- case 4:
- {
- if (client.Entity.MyJiang != null)
- {
- if (client.Inventory.Contains(3004465, 21))
- {
- client.Inventory.Remove(3004465, 2);
- client.Entity.MyJiang.FreeCourse += 100000;
- client.Entity.MyJiang.SendInfo(client, Network.GamePackets.JiangHu.UpdateTime, client.Entity.MyJiang.FreeCourse.ToString(), client.Entity.MyJiang.Time.ToString());
- }
- else
- {
- client.MessageBox("You~don`t~have~enough~Stardust~for~10~Free~Courses~of~Jiang~Hu.");
- }
- }
- break;
- }
- case 5:
- {
- dialog.Text("Which Ninja skill scroll would you like to use to exchange for the Stardust?");
- dialog.Option("Anthony~Scroll.~(1~Stardust)", 9);
- dialog.Option("Fatal~Scroll.~(10~Stardust)", 10);
- dialog.Option("Twilight~Scroll.~(20~Stardust)", 11);
- dialog.Option("Previous.", 0);
- dialog.Avatar(206);
- dialog.Send();
- break;
- }
- case 9:
- {
- if (client.Inventory.Contains(3004459, 1))
- {
- client.Inventory.Remove(3004459, 1);
- client.Inventory.Add(3004465, 0, 1);
- }
- else
- {
- client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
- }
- break;
- }
- case 10:
- {
- if (client.Inventory.Contains(3004461, 1))
- {
- client.Inventory.Remove(3004461, 1);
- client.Inventory.Add(3004465, 0, 10);
- }
- else
- {
- client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
- }
- break;
- }
- case 11:
- {
- if (client.Inventory.Contains(3004460, 1))
- {
- client.Inventory.Remove(3004460, 1);
- client.Inventory.Add(3004465, 0, 20);
- }
- else
- {
- client.MessageBox("Failed~to~exchange.~You~don`t~have~that~Ninja~skill~scroll.");
- }
- break;
- }
- }
- break;
- }
- #endregion
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement