Anyone knows what can POSIBLY be wrong with this the First function works fine i get a BlackSteedPack but the last 2 dont do nothing dosent remove item nor gives me a steed @_@
Code:
#region MountOfficer
case 95381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
GC.AddSend(Packets.NPCLink("Black Steed", 1));
GC.AddSend(Packets.NPCLink("White Steed", 2));
GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723902);
}
}
else if (Control == 2)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723901);
}
}
else if (Control == 3)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723900);
}
}
}
}
}
break;
}
#endregion
Anyone knows what can POSIBLY be wrong with this the First function works fine i get a BlackSteedPack but the last 2 dont do nothing dosent remove item nor gives me a steed @_@
Code:
#region MountOfficer
case 95381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
GC.AddSend(Packets.NPCLink("Black Steed", 1));
GC.AddSend(Packets.NPCLink("White Steed", 2));
GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723902);
}
}
else if (Control == 2)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723901);
}
}
else if (Control == 3)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723900);
}
}
}
}
}
break;
}
#endregion
Isn'tit supposed to be:
Code:
GC.MyChar.AddItem(723900-0-0-0-0-0-0);
Cause when working with gears you need to do all the gears's attributes.
#region MountOfficer
case 95381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
GC.AddSend(Packets.NPCLink("Black Steed", 1));
GC.AddSend(Packets.NPCLink("White Steed", 2));
GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723902);
}
}
}
else if (Control == 2)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723901);
}
}
}
else if (Control == 3)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723900);
}
}
}
break;
}
#endregion
Should be fine now, you had your brackets completely messed up.
It was setup so that Control had to be 1, then 2 (to get the second steed), and then 3 (inorder to get to the third steed).
However thats impossible unless you write in that control changes (which you dont want).
So yeah now it will work as you intended.
@Tiku: If you leave fields blank they will be assigned 0 by default if its gear.
#region MountOfficer
case 95381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What? A group of Cattle Thieves stole the Saddles of the cavalry! Without the Saddles, they wont be able to hold any drills. If you can help get the Saddles from the Cattle Thieves, I just might give you a steed as a reward! :)"));
GC.AddSend(Packets.NPCLink("Black Steed", 1));
GC.AddSend(Packets.NPCLink("White Steed", 2));
GC.AddSend(Packets.NPCLink("Maroon Steed", 2));
GC.AddSend(Packets.NPCLink("Nope, you're mistaken.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723902);
}
}
}
else if (Control == 2)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723901);
}
}
}
else if (Control == 3)
{
if (GC.MyChar.InventoryContains(723903, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(723903));
{
GC.MyChar.AddItem(723900);
}
}
}
break;
}
#endregion
Should be fine now, you had your brackets completely messed up.
It was setup so that Control had to be 1, then 2 (to get the second steed), and then 3 (inorder to get to the third steed).
However thats impossible unless you write in that control changes (which you dont want).
So yeah now it will work as you intended.
@Tiku: If you leave fields blank they will be assigned 0 by default if its gear.