|
You last visited: Today at 06:09
Advertisement
help with +13 to +15 talis npc.
Discussion on help with +13 to +15 talis npc. within the CO2 Private Server forum part of the Conquer Online 2 category.
01/21/2010, 18:47
|
#1
|
elite*gold: 0
Join Date: Sep 2009
Posts: 59
Received Thanks: 9
|
help with +13 to +15 talis npc.
well, i tryed to edit Hepatitis C npc for the above +12 item upgrade. but im not so great...i tryed this, and it doesnt work
Quote:
#region +13-15Talis
case 6666:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can make your Talis past +12. Would yo like my help?"));
GC.AddSend(Packets.NPCLink("Yeah", 250));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = false;
}
else if (Control == 250)
{
GC.AddSend(Packets.NPCSay("Choose the equipment you want to plus."));
GC.AddSend(Packets.NPCLink("Fan", 1));
GC.AddSend(Packets.NPCLink("Tower", 2));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control >= 1 && Control <= 2)
{
Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
if (I.Plus != 15)
{
byte YearBadgeNeed = 2;
if (I.Plus == 12)
YearBadgeNeed = 2;
else if (I.Plus == 13)
YearBadgeNeed = 3;
else if (I.Plus == 14)
YearBadgeNeed = 4;
if (!GC.Agreed)
{
GC.AddSend(Packets.NPCSay("You need " + YearBadgeNeed + " YearBadge to upgrade. Do you want it?"));
GC.AddSend(Packets.NPCLink("Yes.", Control));
GC.AddSend(Packets.NPCLink("Nevermind.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = true;
}
else
{
GC.Agreed = false;
if (GC.MyChar.InventoryContains(710680, YearBadgeNeed))
{
GC.MyChar.EquipStats((byte)(Control), false);
for (byte i = 2; i < YearBadgeNeed; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710680));
if (I.Plus == 12)
I.Plus = 13;
else
I.Plus += 0;
GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
GC.MyChar.EquipStats((byte)(Control), true);
GC.AddSend(Packets.NPCSay("Here you are. It's done."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough YearBadge."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
}
break;
}
#endregion
|
|
|
|
01/22/2010, 06:44
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Code:
#region +13-15Talis
case 6666:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can make your Talis past +12. Would yo like my help?"));
GC.AddSend(Packets.NPCLink("Yeah", 250));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = false;
}
else if (Control == 250)
{
GC.AddSend(Packets.NPCSay("Choose the equipment you want to plus."));
GC.AddSend(Packets.NPCLink("Fan", 10));
GC.AddSend(Packets.NPCLink("Tower", 11));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control >= 10 && Control <= 11)
{
Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
if (I.Plus != 15)
{
byte YearBadgeNeed = 2;
if (I.Plus == 12)
YearBadgeNeed = 2;
else if (I.Plus == 13)
YearBadgeNeed = 3;
else if (I.Plus == 14)
YearBadgeNeed = 4;
if (!GC.Agreed)
{
GC.AddSend(Packets.NPCSay("You need " + YearBadgeNeed + " YearBadge to upgrade. Do you want it?"));
GC.AddSend(Packets.NPCLink("Yes.", Control));
GC.AddSend(Packets.NPCLink("Nevermind.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = true;
}
else
{
GC.Agreed = false;
if (GC.MyChar.InventoryContains(710680, YearBadgeNeed))
{
GC.MyChar.EquipStats((byte)(Control), false);
for (byte i = 2; i < YearBadgeNeed; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(710680));
if (I.Plus == 12)
I.Plus = 13;
else
I.Plus += 0;
GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
GC.MyChar.EquipStats((byte)(Control), true);
GC.AddSend(Packets.NPCSay("Here you are. It's done."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough YearBadge."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
}
break;
}
#endregion
That should work.
What was happening is the controls are acting as the item's position.
The HeavenFan's position according to the source is 10 and the StarTower's position is 11. So in order for this to work you need the controls to correspond to the positions.
|
|
|
02/09/2010, 01:34
|
#3
|
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
|
Thanks but i dont have +13 - +15 in my source...
|
|
|
02/09/2010, 02:52
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by salem rey
Thanks but i dont have +13 - +15 in my source...
|
This isn't a release, he was asking for help on his code.
|
|
|
02/10/2010, 04:24
|
#5
|
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
|
hmm can you make me an npc that make +15 from my items to my horse?
|
|
|
Similar Threads
|
Talis quest?
08/15/2010 - Conquer Online 2 - 5 Replies
So is the unique or refined items quest still around so i can socket my tali?
|
Talis
04/23/2010 - Conquer Online 2 - 3 Replies
I got some bound items super lvl 120 and I'd love to join it on my Fan,
but it says that I can't due to the level. Is it there any tool that ignores the level and make it able ?
Thankz
|
Free Items in Talis
09/19/2009 - Conquer Online 2 - 3 Replies
Hey guys,
can someone of you perhaps create a programm to put free items in Talis. I really need it. I also have an old one...does this help me somehow??
Thx for yur help :bandit:
|
Soc your talis for free(StarTower&HeavenFan)
03/31/2009 - CO2 Bots & Macros - 235 Replies
*removed*
|
free item used to soc talis?
02/11/2009 - Conquer Online 2 - 1 Replies
i know theres a hack for it... was told about it last night... has anyone made it on here or if anyone knows of a free one feel free to post the link xD
|
All times are GMT +1. The time now is 06:12.
|
|