|
You last visited: Today at 10:30
Advertisement
hmm
Discussion on hmm within the CO2 Private Server forum part of the Conquer Online 2 category.
11/28/2009, 01:29
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
hmm
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
|
|
|
11/28/2009, 06:02
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by flako27
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.
|
|
|
11/28/2009, 06:25
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 256
Received Thanks: 63
|
does it work?
|
|
|
11/28/2009, 06:29
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by airborne.
does it work?
|
If you're asking me idk.
Like I said I haven't tested it yet.
|
|
|
11/28/2009, 13:06
|
#5
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
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());
}
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.
|
|
|
11/28/2009, 13:30
|
#6
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
|
If you leave fields blank they will be assigned 0 by default if its gear
|
I did not no that thanks.
|
|
|
11/28/2009, 13:32
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Korvacs
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());
}
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.
|
I did not know that as well.
Thanks for the info.
|
|
|
11/28/2009, 14:54
|
#8
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
@Korvacs thanks and tiku for trying but i fixed it alrdy
|
|
|
11/28/2009, 20:02
|
#9
|
elite*gold: 0
Join Date: Nov 2009
Posts: 9
Received Thanks: 4
|
#request close - threadstarter got what he wanted
|
|
|
11/28/2009, 20:55
|
#10
|
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,165
|
#Closed
|
|
|
All times are GMT +1. The time now is 10:31.
|
|