Let's define our variables,etc...
In character.cs go somewhere around line 1711 and add this:
Code:
public string ADJob = "";
Code:
else if (MyMath.ChanceSuccess(DropRates.Meteor))
Code:
#region Map Drops
if (Char != null)
if (MyMath.ChanceSuccess(10))
if (Name == "WarriorDevil")
{
DI2.Info.ID = 710011;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
#region Map Drops
if (Char != null)
if (MyMath.ChanceSuccess(10))
if (Name == "TrojanDevil")
{
DI2.Info.ID = 710012;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
#region Map Drops
if (Char != null)
if (MyMath.ChanceSuccess(10))
if (Name == "FireDevil")
{
DI2.Info.ID = 710013;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
#region Map Drops
if (Char != null)
if (MyMath.ChanceSuccess(10))
if (Name == "WaterDevil")
{
DI2.Info.ID = 710014;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
#region Map Drops
if (Char != null)
if (MyMath.ChanceSuccess(10))
if (Name == "ArcherDevil")
{
DI2.Info.ID = 710015;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
Ancient-Devil's-Quest:
Code:
#region Ancient-Devils-Quest
case 9535:
{
GC.AddSend(Packets.NPCSay("The Ancient Devil was sealed in this Island. The seal's power is very weak now."));
GC.AddSend(Packets.NPCSay("The devil will awake soon. Can you help us?"));
GC.AddSend(Packets.NPCLink("How can I help you?", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("First, get 5 Amulers. Each amulet is protected by a Guard of different professions."));
GC.AddSend(Packets.NPCSay(" Only if you are of the same profession, can you challenge the Guard. So you had better ask a friend for help."));
GC.AddSend(Packets.NPCSay(" After you gather the 5 Amulets, click on the yellow marks on the ground to bring out the devil and its guards."));
GC.AddSend(Packets.NPCSay(" Enable PK mode to kill them. Will you help us?"));
GC.AddSend(Packets.NPCLink("Yes. I shall try.", 2));
GC.AddSend(Packets.NPCLink("Let me think it over.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
GC.MyChar.Teleport(1082, 189, 233);
}
break;
#endregion
#region Trojan Guard
case 9536:
{
GC.MyChar.ADJob = "Trojan";
if (GC.MyChar.InventoryContains(710017, 1))
{
GC.AddSend(Packets.NPCSay("Since you have passed the test and obtained the " + GC.MyChar.ADJob + " Cert., I will give you the " + GC.MyChar.ADJob + " Amulet."));
GC.AddSend(Packets.NPCLink("Thanks.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("To obtain the " + GC.MyChar.ADJob + " Amulet, you must enable PK mode to kill the " + GC.MyChar.ADJob + "Devil and give me the " + GC.MyChar.ADJob + " Cert. Are you ready?"));
GC.AddSend(Packets.NPCLink("Yeah.", 1));
GC.AddSend(Packets.NPCLink("Not yet.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if (GC.MyChar.Job == 10 || GC.MyChar.Job == 11 || GC.MyChar.Job == 12 || GC.MyChar.Job == 13 || GC.MyChar.Job == 14 || GC.MyChar.Job == 15)
{
GC.MyChar.Teleport(1082, 076, 175);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, only a " + GC.MyChar.ADJob + " can challenge this test."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
if (GC.MyChar.InventoryContains(710017, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710017));
GC.MyChar.AddItem(710012);
}
}
break;
#endregion
#region Fire Guard
case 9537:
{
GC.MyChar.ADJob = "Fire";
if (GC.MyChar.InventoryContains(710018, 1))
{
GC.AddSend(Packets.NPCSay("Since you have passed the test and obtained the " + GC.MyChar.ADJob + " Cert., I will give you the " + GC.MyChar.ADJob + " Amulet."));
GC.AddSend(Packets.NPCLink("Thanks.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("To obtain the " + GC.MyChar.ADJob + " Amulet, you must enable PK mode to kill the " + GC.MyChar.ADJob + "Devil and give me the " + GC.MyChar.ADJob + " Cert. Are you ready?"));
GC.AddSend(Packets.NPCLink("Yeah.", 1));
GC.AddSend(Packets.NPCLink("Not yet.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if (GC.MyChar.Job == 142 || GC.MyChar.Job == 143 || GC.MyChar.Job == 144 || GC.MyChar.Job == 145)
{
GC.MyChar.Teleport(1082, 295, 168);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, only a " + GC.MyChar.ADJob + " can challenge this test."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710018));
GC.MyChar.AddItem(710013);
}
break;
#endregion
#region Water Guard
case 9538:
{
GC.MyChar.ADJob = "Water";
if (GC.MyChar.InventoryContains(710019, 1))
{
GC.AddSend(Packets.NPCSay("Since you have passed the test and obtained the " + GC.MyChar.ADJob + " Cert., I will give you the " + GC.MyChar.ADJob + " Amulet."));
GC.AddSend(Packets.NPCLink("Thanks.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("To obtain the " + GC.MyChar.ADJob + " Amulet, you must enable PK mode to kill the " + GC.MyChar.ADJob + "Devil and give me the " + GC.MyChar.ADJob + " Cert. Are you ready?"));
GC.AddSend(Packets.NPCLink("Yeah.", 1));
GC.AddSend(Packets.NPCLink("Not yet.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if (GC.MyChar.Job == 132 || GC.MyChar.Job == 133 || GC.MyChar.Job == 134 || GC.MyChar.Job == 135)
{
GC.MyChar.Teleport(1082, 168, 295);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, only a " + GC.MyChar.ADJob + " can challenge this test."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710019));
GC.MyChar.AddItem(710014);
}
break;
#endregion
#region Archer Guard
case 9539:
{
GC.MyChar.ADJob = "Archer";
if (GC.MyChar.InventoryContains(710020, 1))
{
GC.AddSend(Packets.NPCSay("Since you have passed the test and obtained the " + GC.MyChar.ADJob + " Cert., I will give you the " + GC.MyChar.ADJob + " Amulet."));
GC.AddSend(Packets.NPCLink("Thanks.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("To obtain the " + GC.MyChar.ADJob + " Amulet, you must enable PK mode to kill the " + GC.MyChar.ADJob + "Devil and give me the " + GC.MyChar.ADJob + " Cert. Are you ready?"));
GC.AddSend(Packets.NPCLink("Yeah.", 1));
GC.AddSend(Packets.NPCLink("Not yet.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if (GC.MyChar.Job == 40 || GC.MyChar.Job == 41 || GC.MyChar.Job == 42 || GC.MyChar.Job == 43 || GC.MyChar.Job == 44 || GC.MyChar.Job == 45)
{
GC.MyChar.Teleport(1082, 323, 302);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, only a " + GC.MyChar.ADJob + " can challenge this test."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710020));
GC.MyChar.AddItem(710015);
}
break;
#endregion
#region Warrior Guard
case 9540:
{
GC.MyChar.ADJob = "Warrior";
if (GC.MyChar.InventoryContains(710016, 1))
{
GC.AddSend(Packets.NPCSay("Since you have passed the test and obtained the " + GC.MyChar.ADJob + " Cert., I will give you the " + GC.MyChar.ADJob + " Amulet."));
GC.AddSend(Packets.NPCLink("Thanks.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("To obtain the " + GC.MyChar.ADJob + " Amulet, you must enable PK mode to kill the " + GC.MyChar.ADJob + "Devil and give me the " + GC.MyChar.ADJob + " Cert. Are you ready?"));
GC.AddSend(Packets.NPCLink("Yeah.", 1));
GC.AddSend(Packets.NPCLink("Not yet.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
if (GC.MyChar.Job == 20 || GC.MyChar.Job == 21 || GC.MyChar.Job == 22 || GC.MyChar.Job == 23 || GC.MyChar.Job == 24 || GC.MyChar.Job == 25)
{
GC.MyChar.Teleport(1082, 168, 295);
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, only a " + GC.MyChar.ADJob + " can challenge this test."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710016));
GC.MyChar.AddItem(710011);
}
break;
#endregion
if U find a thread with a 5165 converted version please tell me so I can give the full credits to the owner or request a close...anywas again, ENJOY!
EDIT: ADDED Mob drops! still working on spawns and infos...plz give me time as i am a noob at coding XD






