|
case 59558:
#region RebirthMaster
case 59558:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("I devote all my life to the research of eternity. And finally I Know the secret of");
dialog.Text(" rebirth! Well, anything I can help you with?");
dialog.Option("1st Rebirth.", 1);
dialog.Option("2nd Rebirth.", 2);
dialog.Option("Reincarnation.", 3);
dialog.Option("Level 140.", 25);
dialog.Option("Upgrade Class.", 22);
dialog.Option("LearnSkill.", 6);
dialog.Option("UpgradeStarWeapon.", 7);
dialog.Option("Reallot my Attribute Points.", 4);
dialog.Option("Just Passing By.", 255);
dialog.Avatar(51);
dialog.Send();
break;
}
case 1:
{
dialog.Text("Hello conqueror. You know, there are ancient stories about a second life and many people chose not to believe it. Even so, there are some people that believe in it, and that inspired me to learn about it. In my study, I found out how to reborn someone. But, in this quest, a CelestialStone may be needed. To get one, talk with Celestine(TwinCity 365, 92).");
dialog.Option("Tell me more about it.", 10);
dialog.Option("Reborn me.", 12);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
break;
}
case 25:
{
dialog.Text("Do You Went Up Level 140.");
dialog.Option("Yes Plees.", 120);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
break;
}
case 120:
{
{
client.Entity.Level = 140;
}
break;
}
case 7:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Trojan !!", 30);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Ninja !!", 31);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Archer !!", 32);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Warrior !!", 33);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 130 && client.Entity.Class <= 145)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("WaterTaoist-Fire !!", 34);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Monk !!", 35);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Pirate !!", 36);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("Dragon-Warrior !!", 37);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade StarWeapon ?.");
dialog.Option("WindWalker !!", 38);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 30:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
SetWeaponProf(client, 480, "NirvanaClub ");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 420, "Sword ");
SetWeaponProf(client, 490, "Dagger ");
}
break;
}
case 31:
{
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
SetWeaponProf(client, 601, "Katana");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 511, "Scythe");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
}
break;
}
case 32:
{
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
SetWeaponProf(client, 613, "KnifeArcher");
SetWeaponProf(client, 500, "Bow");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
}
break;
}
case 33:
{
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 624, "Fist ");
SetWeaponProf(client, 560, "Spear ");
}
break;
}
case 34:
{
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
SetWeaponProf(client, 420, "Sword ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 410, "Blade ");
dialog.Send();
}
break;
}
case 35:
{
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
SetWeaponProf(client, 610, "Beads ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
}
break;
}
case 36:
{
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
SetWeaponProf(client, 612, "pistol");
SetWeaponProf(client, 611, "Rapier ");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 420, "Sword ");
}
break;
}
case 37:
{
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
SetWeaponProf(client, 617, "LeeLong ");
SetWeaponProf(client, 561, "Wind ");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
}
break;
}
case 38:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
SetWeaponProf(client, 626, "WindwalkerFan");
SetWeaponProf(client, 410, "Blade ");
SetWeaponProf(client, 420, "Sword ");
SetWeaponProf(client, 561, "Wind ");
}
break;
}
case 6:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Trojan !!", 200);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 50 && client.Entity.Class <= 55 && client.Entity.FirstRebornClass == 55 && client.Entity.SecondRebornClass >= 55)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("XFull~Ninja !!", 201);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.SecondRebornClass == 55 && client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Full~Ninja !!", 213);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Ninja !!", 214);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Archer !!", 202);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Warrior !!", 203);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("WaterTaoist !!", 204);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.SecondRebornClass == 135 && client.Entity.FirstRebornClass == 135 && client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Full~WaterTaoist !!", 210);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("FireTaoist !!", 205);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145 && client.Entity.FirstRebornClass == 145 && client.Entity.SecondRebornClass >= 145)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Full~FireTaoist !!", 211);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Monk !!", 206);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 60 && client.Entity.Class <= 65 && client.Entity.FirstRebornClass == 65 && client.Entity.SecondRebornClass >= 65)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Full~Monk !!", 221);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Pirate !!", 207);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Dragon-Warrior !!", 208);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 80 && client.Entity.Class <= 85 && client.Entity.FirstRebornClass == 85 && client.Entity.SecondRebornClass >= 85)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Full~Dragon-Warrior !!", 212);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("WindWalker !!", 209);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class == 100)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to LearnSkill Class ?.");
dialog.Option("Plesse Upgrade Class First!!", 22);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 200:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
client.AddSpell(LearnableSpell(1110));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(1015));
client.AddSpell(LearnableSpell(1045));
client.AddSpell(LearnableSpell(1046));
client.AddSpell(LearnableSpell(11970));
client.AddSpell(LearnableSpell(11990));
client.AddSpell(LearnableSpell(11980));
client.AddSpell(LearnableSpell(11960));
client.AddSpell(LearnableSpell(1115));
client.AddSpell(LearnableSpell(1270));
client.AddSpell(LearnableSpell(1190));
}
break;
}
case 201:
{
if (client.Entity.Class >= 50 && client.Entity.Class <= 55 && client.Entity.FirstRebornClass == 55 && client.Entity.SecondRebornClass >= 55)
{
client.AddSpell(LearnableSpell(12070));
client.AddSpell(LearnableSpell(12080));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12090));
client.AddSpell(LearnableSpell(12110));
client.AddSpell(LearnableSpell(11230));
client.AddSpell(LearnableSpell(11170));
client.AddSpell(LearnableSpell(6011));
client.AddSpell(LearnableSpell(6002));
client.AddSpell(LearnableSpell(6003));
client.AddSpell(LearnableSpell(6010));
client.AddSpell(LearnableSpell(6001));
client.AddSpell(LearnableSpell(11180));
client.AddSpell(LearnableSpell(6004));
client.AddSpell(LearnableSpell(6000));
}
break;
}
case 213:
{
if (client.Entity.SecondRebornClass == 55 && client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
client.AddSpell(LearnableSpell(12070));
client.AddSpell(LearnableSpell(12080));
client.AddSpell(LearnableSpell(12090));
client.AddSpell(LearnableSpell(12110));
client.AddSpell(LearnableSpell(11230));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(11170));
client.AddSpell(LearnableSpell(6011));
client.AddSpell(LearnableSpell(6002));
client.AddSpell(LearnableSpell(6010));
client.AddSpell(LearnableSpell(6001));
client.AddSpell(LearnableSpell(11180));
client.AddSpell(LearnableSpell(6004));
client.AddSpell(LearnableSpell(6000));
}
break;
}
case 214:
{
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
client.AddSpell(LearnableSpell(12070));
client.AddSpell(LearnableSpell(12080));
client.AddSpell(LearnableSpell(12090));
client.AddSpell(LearnableSpell(12110));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(11230));
client.AddSpell(LearnableSpell(11170));
client.AddSpell(LearnableSpell(6011));
client.AddSpell(LearnableSpell(6010));
client.AddSpell(LearnableSpell(6001));
client.AddSpell(LearnableSpell(11180));
client.AddSpell(LearnableSpell(6004));
client.AddSpell(LearnableSpell(6000));
}
break;
}
case 202:
{
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
client.AddSpell(LearnableSpell(11590));//thepower
client.AddSpell(LearnableSpell(11600));
client.AddSpell(LearnableSpell(11620));
client.AddSpell(LearnableSpell(11610));
client.AddSpell(LearnableSpell(11650));
client.AddSpell(LearnableSpell(8002));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(8003));
client.AddSpell(LearnableSpell(11660));
client.AddSpell(LearnableSpell(11670));
}
break;
}
case 203:
{
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
client.AddSpell(LearnableSpell(12670));
client.AddSpell(LearnableSpell(12770));
client.AddSpell(LearnableSpell(12690));
client.AddSpell(LearnableSpell(12700));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12660));
client.AddSpell(LearnableSpell(1045));
client.AddSpell(LearnableSpell(12680));
client.AddSpell(LearnableSpell(1046));
client.AddSpell(LearnableSpell(1020));
client.AddSpell(LearnableSpell(11200));
client.AddSpell(LearnableSpell(10470));
client.AddSpell(LearnableSpell(1025));
client.AddSpell(LearnableSpell(11160));
}
break;
}
case 204:
{
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
client.AddSpell(LearnableSpell(1055));
client.AddSpell(LearnableSpell(1075));
client.AddSpell(LearnableSpell(1085));
client.AddSpell(LearnableSpell(1090));
client.AddSpell(LearnableSpell(1095));
client.AddSpell(LearnableSpell(1100));
client.AddSpell(LearnableSpell(1175));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(1170));
client.AddSpell(LearnableSpell(1050));
client.AddSpell(LearnableSpell(1000));
client.AddSpell(LearnableSpell(1005));
client.AddSpell(LearnableSpell(12370));
client.AddSpell(LearnableSpell(12390));
}
break;
}
case 205:
{
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.AddSpell(LearnableSpell(1150));
client.AddSpell(LearnableSpell(1180));
client.AddSpell(LearnableSpell(1120));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(1165));
client.AddSpell(LearnableSpell(1160));
client.AddSpell(LearnableSpell(1002));
client.AddSpell(LearnableSpell(1125));
client.AddSpell(LearnableSpell(1010));
client.AddSpell(LearnableSpell(5001));
client.AddSpell(LearnableSpell(10309));
client.AddSpell(LearnableSpell(12400));
client.AddSpell(LearnableSpell(12380));
}
break;
}
case 210:
{
if (client.Entity.SecondRebornClass == 135 && client.Entity.FirstRebornClass == 135 && client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
client.AddSpell(LearnableSpell(1055));
client.AddSpell(LearnableSpell(1075));
client.AddSpell(LearnableSpell(30000));
client.AddSpell(LearnableSpell(1085));
client.AddSpell(LearnableSpell(1090));
client.AddSpell(LearnableSpell(1095));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(1100));
client.AddSpell(LearnableSpell(1175));
client.AddSpell(LearnableSpell(1170));
client.AddSpell(LearnableSpell(1050));
client.AddSpell(LearnableSpell(1000));
client.AddSpell(LearnableSpell(1005));
client.AddSpell(LearnableSpell(12370));
client.AddSpell(LearnableSpell(12390));
}
break;
}
case 211:
{
if (client.Entity.Class >= 142 && client.Entity.Class <= 145 && client.Entity.FirstRebornClass == 145 && client.Entity.SecondRebornClass >= 145)
{
client.AddSpell(LearnableSpell(1150));
client.AddSpell(LearnableSpell(1180));
client.AddSpell(LearnableSpell(1120));
client.AddSpell(LearnableSpell(10310));
client.AddSpell(LearnableSpell(1165));
client.AddSpell(LearnableSpell(1160));
client.AddSpell(LearnableSpell(1002));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(1125));
client.AddSpell(LearnableSpell(1010));
client.AddSpell(LearnableSpell(5001));
client.AddSpell(LearnableSpell(10309));
client.AddSpell(LearnableSpell(12400));
client.AddSpell(LearnableSpell(12380));
}
break;
}
case 206:
{
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
client.AddSpell(LearnableSpell(10490));
client.AddSpell(LearnableSpell(10395));
client.AddSpell(LearnableSpell(10410));
client.AddSpell(LearnableSpell(12550));
client.AddSpell(LearnableSpell(12560));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12570));
client.AddSpell(LearnableSpell(10390));
client.AddSpell(LearnableSpell(10415));
client.AddSpell(LearnableSpell(10381));
client.AddSpell(LearnableSpell(10400));
client.AddSpell(LearnableSpell(10425));
client.AddSpell(LearnableSpell(10430));
}
break;
}
case 221:
{
if (client.Entity.Class >= 60 && client.Entity.Class <= 65 && client.Entity.FirstRebornClass == 65 && client.Entity.SecondRebornClass >= 65)
{
client.AddSpell(LearnableSpell(10490));
client.AddSpell(LearnableSpell(10405));
client.AddSpell(LearnableSpell(10395));
client.AddSpell(LearnableSpell(10410));
client.AddSpell(LearnableSpell(12550));
client.AddSpell(LearnableSpell(12560));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12570));
client.AddSpell(LearnableSpell(10390));
client.AddSpell(LearnableSpell(10415));
client.AddSpell(LearnableSpell(10381));
client.AddSpell(LearnableSpell(10400));
client.AddSpell(LearnableSpell(10425));
client.AddSpell(LearnableSpell(10430));
}
break;
}
case 207:
{
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
client.AddSpell(LearnableSpell(11060));
client.AddSpell(LearnableSpell(11110));
client.AddSpell(LearnableSpell(14710));
client.AddSpell(LearnableSpell(14680));
client.AddSpell(LearnableSpell(11030));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(11070));
client.AddSpell(LearnableSpell(11130));
client.AddSpell(LearnableSpell(11100));
client.AddSpell(LearnableSpell(11050));
client.AddSpell(LearnableSpell(11140));
client.AddSpell(LearnableSpell(11120));
}
break;
}
case 208:
{
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
client.AddSpell(LearnableSpell(12240));
client.AddSpell(LearnableSpell(12220));
client.AddSpell(LearnableSpell(12290));
client.AddSpell(LearnableSpell(12320));
client.AddSpell(LearnableSpell(12340));
client.AddSpell(LearnableSpell(12210));
client.AddSpell(LearnableSpell(12130));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12120));
client.AddSpell(LearnableSpell(12270));
client.AddSpell(LearnableSpell(12330));
client.AddSpell(LearnableSpell(12170));
client.AddSpell(LearnableSpell(12160));
client.AddSpell(LearnableSpell(12350));
client.AddSpell(LearnableSpell(12140));
client.AddSpell(LearnableSpell(12280));
//client.AddSpell(LearnableSpell(11960));
client.AddSpell(LearnableSpell(12200));
}
break;
}
case 212:
{
if (client.Entity.Class >= 80 && client.Entity.Class <= 85 && client.Entity.FirstRebornClass == 85 && client.Entity.SecondRebornClass >= 85)
{
client.AddSpell(LearnableSpell(12240));
client.AddSpell(LearnableSpell(12300));
client.AddSpell(LearnableSpell(12220));
client.AddSpell(LearnableSpell(12290));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(12320));
client.AddSpell(LearnableSpell(12340));
client.AddSpell(LearnableSpell(12210));
client.AddSpell(LearnableSpell(12130));
client.AddSpell(LearnableSpell(12120));
client.AddSpell(LearnableSpell(12270));
client.AddSpell(LearnableSpell(12330));
client.AddSpell(LearnableSpell(12170));
client.AddSpell(LearnableSpell(12160));
client.AddSpell(LearnableSpell(12350));
client.AddSpell(LearnableSpell(12140));
client.AddSpell(LearnableSpell(12280));
// client.AddSpell(LearnableSpell(11960));
client.AddSpell(LearnableSpell(12200));
}
break;
}
case 209:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
client.AddSpell(LearnableSpell(12980));
client.AddSpell(LearnableSpell(12950));
client.AddSpell(LearnableSpell(12930));
client.AddSpell(LearnableSpell(12990));
client.AddSpell(LearnableSpell(12960));
client.AddSpell(LearnableSpell(13000));
client.AddSpell(LearnableSpell(13030));
client.AddSpell(LearnableSpell(8001));
client.AddSpell(LearnableSpell(13020));
client.AddSpell(LearnableSpell(12890));
client.AddSpell(LearnableSpell(13090));
client.AddSpell(LearnableSpell(12850));
client.AddSpell(LearnableSpell(12840));
client.AddSpell(LearnableSpell(12970));
client.AddSpell(LearnableSpell(12940));
client.AddSpell(LearnableSpell(12830));
client.AddSpell(LearnableSpell(12860));
client.AddSpell(LearnableSpell(12870));
}
break;
}
case 22:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Trojan !!", 100);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Ninja !!", 101);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Archer !!", 102);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Warrior !!", 103);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("WaterTaoist !!", 104);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class == 100)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("WaterTaoist !!", 115);
dialog.Option("FireTaoist !!", 116);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("FireTaoist !!", 105);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Monk !!", 106);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Pirate !!", 107);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("Dragon-Warrior !!", 108);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Upgrade Class ?.");
dialog.Option("WindWalker !!", 109);
// dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 100:
{
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
client.Entity.Class = 15;
}
break;
}
case 101:
{
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
client.Entity.Class = 55;
}
break;
}
case 102:
{
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
client.Entity.Class = 45;
}
break;
}
case 103:
{
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
client.Entity.Class = 25;
}
break;
}
case 104:
{
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
client.Entity.Class = 135;
}
break;
}
case 115:
{
if (client.Entity.Class >= 100)
{
client.Entity.Class = 135;
}
break;
}
case 116:
{
if (client.Entity.Class >= 100)
{
client.Entity.Class = 145;
}
break;
}
case 105:
{
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.Entity.Class = 145;
}
break;
}
case 106:
{
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
client.Entity.Class = 65;
}
break;
}
case 107:
{
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
client.Entity.Class = 75;
}
break;
}
case 108:
{
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
client.Entity.Class = 85;
}
break;
}
case 109:
{
if (client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
client.Entity.Class = 165;
}
break;
}
case 10:
{
dialog.Text("So you want to know more? When you reborn, you can chose what class you want to be the second life. Once you reborn you will start again the journey to conquer this world from level 15. Beware that you may gain some special skills depending on the class you chose to reborn, and you'll be able to get an own pet, that will follow and help you level or fight. The cost is a CelestialStone.");
dialog.Option("Reborn me.", 2);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
break;
}
case 12:
{
if (client.Entity.Reborn == 0)
{
if (client.Entity.Class % 10 == 5 &&
client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
dialog.Text(
"There are two kinds of reborns. One is the normal one and the second one is blessed. The normal reborn will give you the chance to get a Super Gem and the blessed reborn will set a -1 into one of your equipment that you wear during the reborn. What do you chose?");
dialog.Option("Normal reborn.", 15);
dialog.Option("Blessed reborn.", 13);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
}
else
{
dialog.Text(
"You cannot reborn if your level is not 110+ for water saints and 120+ for other masters.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
}
else
{
dialog.Text(
"You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
break;
}
case 15:
{
if (client.Entity.Reborn == 0)
{
if (client.Entity.Class % 10 == 5 &&
client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
dialog.Text("Select the super gem you desire.");
dialog.Option("SuperPhoenixGem.", 203);
dialog.Option("SuperDragonGem.", 213);
dialog.Option("SuperFuryGem.", 223);
dialog.Option("SuperRainbowGem.", 233);
dialog.Option("SuperVioletGem.", 253);
dialog.Option("SuperMoonGem.", 254);
dialog.Option("SuperKylinGem.", 243);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
}
else
{
dialog.Text(
"You cannot reborn if your level is not 110+ for water saints and 120+ for other masters.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
else
{
dialog.Text(
"You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
break;
}
case 90:
{
if ((client.Entity.Reborn == 0)&&(client.Inventory.Contains(721259, 1)))
{
if (client.Entity.Class % 10 == 5 && client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
client.Inventory.Remove(721259, 1);
client.Entity.Reborn = 1;
client.Entity.FirstRebornLevel = client.Entity.Level;
client.Entity.FirstRebornClass = client.Entity.Class;
client.Entity.Level = 15;
client.Entity.Class = 25;
client.Entity.Experience = 0;
{
Database.DataHolder.GetStats(client.Entity.Class, 15, client);
client.CalculateStatBonus();
client.CalculateHPBonus();
client.GemAlgorithm();
using (var cmd = new MySqlCommand(MySqlCommandType.UPDATE))
cmd.Update("entities").Set("Class", client.Entity.Class).Set("MapID", client.Entity.MapID).Where("Name", client.Entity.Name).Execute();
}
}
else
{
dialog.Text("You cannot reborn if your level is not 110+ for water saints and 120+ for other masters.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
else
{
dialog.Text("You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
break;
}
case 13:
{
if (client.Entity.Reborn == 0)
{
if (client.Entity.Class % 10 == 5 && client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
dialog.Text("Select the class you want to reborn in.");
dialog.Option("Trojan.", (byte)(10 + npcRequest.OptionID));
dialog.Option("Warrior.",90);
// dialog.Option("Warrior.", (byte)(20 + npcRequest.OptionID));
dialog.Option("Archer.", (byte)(40 + npcRequest.OptionID));
dialog.Option("WaterTaoist.", (byte)(132 + npcRequest.OptionID));
dialog.Option("FireTaoist.", (byte)(142 + npcRequest.OptionID));
dialog.Option("Ninja.", (byte)(50 + npcRequest.OptionID));
dialog.Option("Monk.", (byte)(60 + npcRequest.OptionID));
dialog.Option("Pirate.", (byte)(70 + npcRequest.OptionID));
dialog.Option("Dragon-Warror.", (byte)(80 + npcRequest.OptionID));
dialog.Option("Wind.Guard.", (byte)(161 + npcRequest.OptionID));
dialog.Send();
}
else
{
dialog.Text("You cannot reborn if your level is not 110+ for water saints and 120+ for other masters.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
else
{
dialog.Text("You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
break;
}
default:
{
if (client.Entity.Reborn == 0)
{
if (client.Entity.Class % 10 == 5 && client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
if (npcRequest.OptionID == 255)
return;
if (npcRequest.OptionID >= 200 && npcRequest.OptionID <= 254)
{
client.SelectedGem = (byte)(npcRequest.OptionID % 100);
if (client.SelectedGem == 54)
client.SelectedGem = 63;
if (client.Entity.Reborn == 0)
{
byte id = 4;
dialog.Text("Select the class you want to reborn in.");
dialog.Option("Trojan.", (byte)(10 + id));
dialog.Option("Warrior.", (byte)(20 + id));
dialog.Option("Archer.", (byte)(40 + id));
dialog.Option("WaterTaoist.", (byte)(132 + id));
dialog.Option("FireTaoist.", (byte)(142 + id));
dialog.Option("Ninja.", (byte)(50 + id));
dialog.Option("Monk.", (byte)(60 + id));
dialog.Option("Pirate.", (byte)(70 + id));
dialog.Option("Dragon-Warror.", (byte)(80 + id));
dialog.Option("WindWalker..", (byte)(161 + id));
dialog.Send();
break;
}
else
{
dialog.Text("You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
}
else
{
if (client.Inventory.Contains(721259, 1))
{
byte _class = (byte)(npcRequest.OptionID - npcRequest.OptionID % 10);
if (_class > 100)
_class += 2;
byte type = (byte)(npcRequest.OptionID - _class);
if (_class < 100)
_class++;
if (type != 4)
{
_class -= 10;
}
if (client.Reborn(_class))
{
client.Inventory.Remove(721259, 1);
if (type == 4)
{
if (client.SelectedGem != 0)
{
uint gemid = (uint)(client.SelectedGem + 700000);
client.Inventory.Add(gemid, 0, 1);
}
}
else
{
int availableshots = 0;
for (byte count = 0; count < 12; count++)
if (!client.Equipment.Free(count))
if (client.Equipment.TryGetItem(count).Bless == 0)
availableshots++;
if (availableshots != 0)
{
byte ex = (byte)Kernel.Random.Next(12);
if (!client.Equipment.Free(ex))
if (client.Equipment.TryGetItem(ex).Bless == 0)
{
var item = client.Equipment.TryGetItem(ex);
item.Bless = 1;
item.Mode = XMeGo.Game.Enums.ItemMode.Update;
item.Send(client);
XMeGo.Database.ConquerItemTable.UpdateBless(item);
}
}
}
}
else
{
dialog.Text("Sorry, but you need atleast 2 free spaces in your inventory.");
dialog.Option("Ohh.", 255);
dialog.Send();
}
}
}
}
else
{
dialog.Text("You cannot reborn if your level is not 110+ for water saints and 120+ for other masters.");
dialog.Option("Ahh.", 255);
dialog.Send();
}
}
else
{
dialog.Text("You cannot reborn again here. Alex, an elder who lives in Ape Canyon, will tell you about the third life.");
dialog.Option("Thank you.", 255);
dialog.Send();
}
break;
}
#region Riencration to 7
case 3:
{
if (client.Entity.Reborn == 2 && client.Entity.Level >= 120)
{
dialog.Text(
"I am the ReincarnationSeer i can help you to change your second reborn Class you need OblivionDew");
dialog.Text(" and " + 0 + " Conquer point in your inventory deal?");
dialog.Option("i want to Change my Class.", 5);
dialog.Option("i want to Buy OblivionDew.", 98);
dialog.Option("Wait a minute.", 255);
dialog.Send();
}
else
{
dialog.Text("Sorry you need to be Seconed Reborn and Lv + 120.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
case 5:
{
if (client.Entity.ConquerPoints >= 1)
{
client.Send(new Data(true)
{
UID = client.Entity.UID,
ID = Data.OpenWindow,
dwParam = Data.WindowCommands.Reincarnation,
wParam1 = client.Entity.X,
wParam2 = client.Entity.Y
});
}
else
{
dialog.Text("Sorry you dont have 15kk cps in your inventory.");
dialog.Option("Alright.", 255);
dialog.Send();
}
break;
}
case 98:
{
if (client.Entity.ConquerPoints >= ServerRates.OblivionDew)
{
client.Entity.ConquerPoints -= ServerRates.OblivionDew;
client.Inventory.Add(711083, 0, 1);
}
else
{
dialog.Text("Sorry you dont Have " + ServerRates.OblivionDew + " cps in your bag.");
dialog.Option("Why!?", 255);
dialog.Send();
}
break;
}
#endregion
#region attribute 8
case 4:
{
dialog.Text(
"Hello there brave conqueror, if you have reborn, and you misplaced your atribute points or you want to set them another way, I'll reset your atribute points for one DragonBall. Do you accept?");
dialog.Option("Here is the DragonBall.", 8);
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
case 8:
{
if (client.Entity.Reborn > 0)
{
if (client.Inventory.Contains(1088000, 1))
{
client.Inventory.Remove(1088000, 1);
if (client.Entity.Reborn != 0)
{
client.Entity.Agility = 0;
client.Entity.Strength = 0;
client.Entity.Vitality = 1;
client.Entity.Spirit = 0;
if (client.Entity.Reborn == 1)
{
client.Entity.Atributes =
(ushort)
(client.ExtraAtributePoints(client.Entity.FirstRebornLevel,
client.Entity.FirstRebornLevel)
+ 52 + 3 * (client.Entity.Level - 15));
}
else
{
client.Entity.Atributes =
(ushort)
(client.ExtraAtributePoints(client.Entity.FirstRebornLevel,
client.Entity.FirstRebornClass) +
client.ExtraAtributePoints(client.Entity.SecondRebornLevel,
client.Entity.SecondRebornClass) + 52 +
3 * (client.Entity.Level - 15));
}
}
}
else
{
dialog.Text("You need a DragonBall.");
dialog.Option("I'll just leave", 255);
dialog.Send();
}
}
else
{
dialog.Text("You have to have atleast one rebirth atleast.");
dialog.Option("I'll just leave", 255);
dialog.Send();
}
break;
}
#endregion
#region Alex 2ndreborn 9
case 2:
{
dialog.Text(
"You don't worry, it's not gonna hurt you a bit when getting the third life. You just need an exemption token and it's all going to be fine.");
dialog.Option("Here is the ExemptionToken.", 9);
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
case 9:
{
if (client.Entity.Reborn == 1)
{
if (client.Entity.Class % 10 == 5 &&
client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
dialog.Text("Select the class you want to reborn in.");
dialog.Option("Trojan.", 11);
dialog.Option("Warrior.", 21);
dialog.Option("Archer.", 41);
dialog.Option("WaterTaoist.", 132);
dialog.Option("FireTaoist.", 142);
dialog.Option("Ninja.", 51);
dialog.Option("Monk.", 61);
dialog.Option("Pirate.", 71);
dialog.Option("Dragon-Warrior.", 81);
dialog.Option("WindWalker", 161);
dialog.Send();
}
else
{
dialog.Text("If you are a water saint you need level 110+, else you need 120+.");
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("You need to be in the second life to be able to get the third life.");
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
break;
}
case 11:
case 21:
case 41:
case 51:
case 61:
case 71:
case 81:
case 132:
case 142:
case 161:
{
if (npcRequest.OptionID == 255)
return;
if (client.Entity.Reborn == 1)
{
if (client.Entity.Class % 10 == 5 &&
client.Entity.Level >= (client.Entity.Class == 135 ? 110 : 120))
{
if (client.Inventory.Contains(723701, 1))
{
if (client.Reborn(npcRequest.OptionID))
{
client.Inventory.Remove(723701, 1);
client.AddSpell(new Spell(true) { ID = 9876 }); //Bless
}
else
{
dialog.Text("You need two free slots in your inventory.");
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("If you are a water saint you need level 110+, else you need 120+.");
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("You need to be in the second life to be able to get the third life.");
dialog.Option("I'll just leave", 255);
dialog.Send();
break;
}
break;
}
#endregion
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
صفحه كونكر اصليه عربى كامله | Mr. Co | صفحات التسجيل كونكر اونلاين | 101 | 2024-08-06 09:35 PM |
مشكله نجوم الاسكلات | disco0o | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2021-07-28 06:51 PM |
مشكله بخصوص نجوم الاسلحه | ابو مروان | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-05-07 09:34 AM |
مش في اضافه صول في اسلحه الايبك | neno2052 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-08-19 03:42 AM |
Npc نجوم الاسلحة | Mero | تطوير سيرفرات كونكر | 2 | 2019-07-21 11:28 PM |