|
You last visited: Today at 04:10
Advertisement
weapon master to upgrade tower/fan?
Discussion on weapon master to upgrade tower/fan? within the CO2 Private Server forum part of the Conquer Online 2 category.
07/04/2010, 10:14
|
#1
|
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
|
weapon master to upgrade tower/fan?
hi, i was searching a code to add tower/fan in weapon master, or npc to upgrade tower/fan, but today i think i'm not lucky x)
here is my weapon master code
Code:
#region Market High Upgrade
case 7050:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("As you know Magic Artisan sucks at upgrading high level gear. So i'm the one in charge of upgrading the ones he cannot."));
GC.AddSend(Packets.NPCLink("Great! Just what i needed.", 10));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = false;
}
else if (Control == 10)
{
GC.AddSend(Packets.NPCSay("Choose the equipment you want to upgrade."));
GC.AddSend(Packets.NPCLink("Headgear", 1));
GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
GC.AddSend(Packets.NPCLink("Armor", 3));
GC.AddSend(Packets.NPCLink("Weapon", 4));
GC.AddSend(Packets.NPCLink("Shield", 5));
GC.AddSend(Packets.NPCLink("Ring", 6));
GC.AddSend(Packets.NPCLink("Boots", 8));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control >= 1 && Control <= 8)
{
Game.Item I = GC.MyChar.Equips.Get(Control);
byte PrevLevel = I.DBInfo.LevReq;
Game.ItemIDManipulation IMan = new NewestCOServer.Game.ItemIDManipulation(I.ID);
IMan.IncreaseLevel();
DatabaseItem Di = (DatabaseItem)Database.DatabaseItems[IMan.ToID()];
byte NewLevel = Di.LevReq;
if (NewLevel > PrevLevel)
{
if (GC.MyChar.Level >= NewLevel)
{
if (!GC.Agreed)
{
GC.AddSend(Packets.NPCSay("You need a DragonBall. Are you ready?"));
GC.AddSend(Packets.NPCLink("Upgrade it.", Control));
GC.AddSend(Packets.NPCLink("Forget it.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = true;
}
else
{
GC.Agreed = false;
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
I.ID = IMan.ToID();
GC.MyChar.Equips.Replace(Control, I, GC.MyChar);
GC.MyChar.EquipStats(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 a DragonBall."));
GC.AddSend(Packets.NPCLink("Ahh.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
else
{
GC.AddSend(Packets.NPCSay("You aren't high level enough to wear the item after upgrading."));
GC.AddSend(Packets.NPCLink("Alright.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
else
{
GC.AddSend(Packets.NPCSay("The item cannot be upgraded anymore."));
GC.AddSend(Packets.NPCLink("Alright.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
is it a way to add tower/fan in?
thanks
|
|
|
07/04/2010, 10:40
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,752
Received Thanks: 5,282
|
Just set a control for the tower/fan and make sure the control ID is the same as the tower/fan position ID, because as you can see it says;
Game.Item I = GC.MyChar.Equips.Get(Control);
GC.MyChar.Equips.Get(); is getting the position of the item that you want.
So set a control as the position of the fan and tower.
|
|
|
07/04/2010, 10:47
|
#3
|
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
|
what??!!, i have nothing understoor, w8 i will go learn more C# xD
|
|
|
07/04/2010, 12:44
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,752
Received Thanks: 5,282
|
That wasn't even C# talk right there, it was basic common sense by looking at the definitions.
|
|
|
07/04/2010, 13:02
|
#5
|
elite*gold: 0
Join Date: May 2009
Posts: 162
Received Thanks: 26
|
use this....
Code:
Item I = GC.MyChar.Equips.Get(Control);
GC.MyChar.EquipStats(Control, false);
I.ID = id of your next upgrade;
GC.MyChar.Equips.Replace(Control, I, GC.MyChar);
GC.MyChar.EquipStats(Control, true);
|
|
|
07/04/2010, 13:07
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,752
Received Thanks: 5,282
|
Quote:
Originally Posted by dodolinobobo
use this....
Code:
Item I = GC.MyChar.Equips.Get(Control);
GC.MyChar.EquipStats(Control, false);
I.ID = id of your next upgrade;
GC.MyChar.Equips.Replace(Control, I, GC.MyChar);
GC.MyChar.EquipStats(Control, true);
|
That's not even what he's asking for.
|
|
|
07/04/2010, 13:46
|
#7
|
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
|
acro, i know you know coding xD
pls give me link of a good C# torturial cuz if i search i will choose a bad one lol
|
|
|
07/04/2010, 14:12
|
#8
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Quote:
Originally Posted by sohaib
acro, i know you know coding xD
pls give me link of a good C# torturial cuz if i search i will choose a bad one lol
|
I think you need to improve your English before learning C# cause what Arco said wasn't really related to C#.
|
|
|
 |
Similar Threads
|
[RELEASE]Upgrade Normal - Demon Tower by ugo100
08/07/2010 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Instructions:
-You must replace the files and root.eix root.epk with files that are in the archive.
-You must press F7 to upload the items you want in a tower ...
-You must press F8 to upload normally ....
-Obviously you have to put the item in the first slot ...
Download : MEGAUPLOAD - The leading online storage and file delivery service
Scansion : Virustotal. MD5: f71985e3f0667cc74ba1332b320bc93d
|
Weapon MasteR
06/10/2010 - CO2 Private Server - 2 Replies
heLp me i get a eror .. in 5165
#region WeaponMaster
case 7050:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can upgrade your items here for a DB each time. But remember for changes to take effect you need to click Finish when done."));
...
|
how Upgrade Tower Elite to Super for 2 db only ?
02/18/2010 - Conquer Online 2 - 7 Replies
can ask how Upgrade Tower Elite to Super for 2 db only ?
my friend make it every day i need make it in my tower ?
|
Wont upgrade weapon in tc
10/19/2006 - Conquer Online 2 - 4 Replies
Well this has happen onces befor. but last time it was just on a uni braslets and now so I just traded it off. but this time its happening with my main weapion 115 wond. I stick the met in and the wond in visa versa and it doesnt accept it? but I put a met in to my boots and it accepted it.
Things I have tried
1loging off
2 giving it to a freind
3 giving it to a newb
4 damaged it and then tryed again.
Does this happen any one else? cuz its my main weapon! so plz some one tell me if it...
|
All times are GMT +1. The time now is 04:10.
|
|