![]() |
|
![]() |
||||||||
| Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers ! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
![]() |
|
![]() |
||||||||
| Conquer Private Servers Post guides , scripts , advertise , anything related to Conquer Private Servers ! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
[Release] Pharmacist,Blacksmith,Armorer and Old General Giving out Item at Birth Vill
Look for case 10008://Phermacist ***** at NPCTalk.cs Replace it with this: Code:
case 10008://Phermacist *****
{
if (LinkBack == 0)
{
Text("Hi! I am selling all kinds of potions and City gate scrolls in the cities. I also sell fireworks and skill books in the market.", CSocket);
Link("What Potions?", 1, CSocket);
Link("Consult others.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
else if (LinkBack == 1)
{
{
Text("Healing and mana potions. Healing potions can make you healthy, and mana potions will enable you to cast spells.", CSocket);
Text("That is all. If you have not talked to others NPCs, you had better have a chat with them so that you can learn more.", CSocket);
Link("Do you have any potion to gave me???", 2, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 2)
{
{
AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(1002020, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(1002010, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Link("Thanks Man.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
break;
}
case 10007://Armorer dude And replace it with this: Code:
case 10007://Armorer dude
{
if (LinkBack == 0)
{
Text("Armorers swear only to provide the very best in defense. Whether it's robes or helmets, we stock it all.", CSocket);
Link("I see. Where can I find an armorer?", 1, CSocket);
Link("Consult others.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
else if (LinkBack == 1)
{
{
Text("Every city or major settlement has one. But our armors very best from place to place. Some armorers have better helms, while others specialize in mail or helms.", CSocket);
Text("Just to be sure to buy armor without red text in the description. You won't be able to wear those!", CSocket);
Link("Here are some basic armor that i can offer you great hero.", 2, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 2)
{
{
AddItem(120009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(150019, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(160019, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(191905, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Link("Thanks Man.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
break;
}
look for case 10005://BlackSmith dude And Replace it with this: Code:
case 10005://BlackSmith dude
{
if (LinkBack == 0)
{
Text("Us blacksmiths can be found from North to South, East to West. We promise a fine selection of weapons for you to purchase!", CSocket);
Link("Hmmmm, tell me more.", 1, CSocket);
Link("Consult others.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
else if (LinkBack == 1)
{
{
Text("Let me tell you how to choose a good weapon. Hover your mouse pointer over the weapon, check its stats and find a weapon with all white writing. If there's red text, you won't be able to use it.", CSocket);
Text(" After you buy it, you open your backpack, find the right item and right-click it to equip. It's as easy as that! Oh, and to sell an item, you just drag and drop to my shop!", CSocket);
Link("What about repairs?", 2, CSocket);
Link("Consult others.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 2)
{
{
Text("First, unequip the item by double-clicking it in your status window. Then find me, click my repair button and click the item.", CSocket);
Link("Any other tips?", 3, CSocket);
Link("Consult others.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 3)
{
{
Text("Yeah, some items are high quality: Normal, Refined, Unique, Elite, Super. That's specialist stuff, only found in the market. That is all. If you have not talked to other NPCs, you had better have a chat with them so that you can learn more.", CSocket);
Link("Is there any weapon that you can gave me now?", 4, CSocket);
Face(30, CSocket); End(CSocket);
}
}
else if (LinkBack == 4)
{
{
AddItem(410901, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(420009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(410009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(421009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(430003, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(440009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(450009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(460009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(480009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(481009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(500009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(560009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(561009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(601009, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Link("Thanks Man.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
break;
}
Look for case 425://Old general yang dude And Replace it with This: Code:
case 425://Old general yang dude
{
if ((int)CSocket.Client.Class >= 50 && (int)CSocket.Client.Class <= 55)
{
if (LinkBack == 0)
{
Text("I will teach you a basic weapon skill. ", CSocket);
Link("Ok I'm ready !", 1, CSocket);
Link("Thanks anyway...", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
else if (LinkBack == 1)
{
{
Text("Take this scroll and learn the art of fighting !", CSocket);
AddItem(725005, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(725002, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(725012, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
AddItem(725025, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Link("Thanks Man.", 255, CSocket);
Face(30, CSocket); End(CSocket);
}
}
}
break;
}
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
Last edited by MeGaMaX; 06-08-2009 at 10:01 PM. |
| Google Adsense |
|
||||
|
[Release]CoEmuV2 EXPBall code
This is converted from LOTF, but meh, here it goes. 1) Open your UseItem.cs 2) Add this code under one of the cases : Quote: case 723700: // ExpBall { int XPtoGive = 0; if(CSocket.Client.Level < 100) XPtoGive = 1295000 + CSocket.Client.Level * 50000; else if(CSocket.Client.Level < 110) XPtoGive = 1395000 + CSocket.Client.Level * 80000; else if(CSocket.Client.Level < 115) XPtoGive = 1595000 + CSocket.Client.Level * 100000; else if(CSocket.Client.Level < 120) XPtoGive = 1895000 + CSocket.Client.Level * 120000; else if(CSocket.Client.Level < 125) XPtoGive = 2095000 + CSocket.Client.Level * 150000; else if(CSocket.Client.Level < 130) XPtoGive = 2395000 + CSocket.Client.Level * 180000; else if(CSocket.Client.Level < 135) XPtoGive = 2895000 + CSocket.Client.Level * 200000; CSocket.Client.Exp += (ulong)XPtoGive; Delete = true; CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Exp, Struct.StatusTypes.Exp)); break; }
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
|
||||
|
[Release] Broadcast
Lets get started In, Client.cs Search Code:
public class Client {
Code:
public DateTime CanBroadcastTime = DateTime.Now; public bool CanBroadcast = true; Now search for "case 2050:" Code:
case 2050: { if (MyChar.LocMap == 6001 || MyChar.LocMap == 6000) { SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You can't do that here!", 2005)); } else { if (!CanBroadcast) if (DateTime.Now >= CanBroadcastTime) CanBroadcast = true; if (CanBroadcast) { if (Data[4] == 3 && MyChar.CPs >= 5) { MyChar.CPs -= 5; SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs)); byte Len = Data[13]; string Message = ""; for (int i = 0; i < Len; i++) { Message += Convert.ToChar(Data[14 + i]); } World.SendMsgToAll(Message, MyChar.Name, 2500); SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Message sent successfully!.", 2005)); CanBroadcast = false; CanBroadcastTime = DateTime.Now.AddSeconds(20); } } else { SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Please wait to send your message!", 2005)); } } break; }
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
|
||||
|
[Release] Night Devil and Dance Skill books
Go into Handler/Useitem.cs Code:
case 725016: //Night Devil
{
if (CSocket.Client.Level >= 70)
{
LearnSkill(1360, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725018: //Dance 2
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1380, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725019: //Dance 3
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1385, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725020: //Dance 4
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1390, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725021: //Dance 5
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1395, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725022: //Dance 6
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1400, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725023: //Dance 7
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1405, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
case 725024: //Dance 8
{
if (CSocket.Client.Level >= 40)
{
LearnSkill(1410, 0, CSocket);
}
else
{
Delete = false;
}
break;
}
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
|
||||
|
[Release] Jail NPC
Ok .. here is the npc jail in TwinCity (Enter the jail and go out the jail) in Handlers / NpcTalk.cs Search for Code:
default:
{
Text("NPC " + ID + "'s dialog is not coded.", CSocket);
Code:
case 43:// enter the Jail
{
if (LinkBack == 0)
{
Text("Do you want to visit the jail ?", CSocket);
Link("Yes,please", 1, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
{
Teleport(6000, 28, 71, 0, CSocket);
}
}
break;
}
case 42://go out the Jail
{
if (LinkBack == 0)
{
Text("Do you want to leave the jail ?", CSocket);
Link("Yes,please", 1, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
{
Teleport(1002, 439, 390, 0, CSocket);
}
}
break;
}
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
|
||||
|
[Release] Wuxing Oven
First, add this code above this case in PacketProcessor.cs Code:
default:
{
Console.WriteLine("[GameServer] Unknown packet type: " + Type);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[Handler-Error] Please report: Unable to handle packet type " + Type, Struct.ChatType.Top));
break;
}
Code:
case 2036: // COMPOSITION STOVE
{
int MainUID = ReadLong(Data, 8);
int MinorUID = ReadLong(Data, 12);
int PlusVal = 0;
int OldPlus = 0;
int ComPoints = 0;
string ItemName = String.Empty;
Struct.ItemInfo Main = new Struct.ItemInfo();
Struct.ItemInfo Minor = new Struct.ItemInfo();
foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
{
if (Item.UID == MainUID)
{
Main = Item;
}
else if (Item.UID == MinorUID)
{
PlusVal = Item.Plus;
Minor = Item;
}
}
if (Minor.Plus == 0)
break;
OldPlus = Main.Plus;
if (PlusVal == 1)
ComPoints = 10;
else if (PlusVal == 2)
ComPoints = 40;
else if (PlusVal == 3)
ComPoints = 120;
else if (PlusVal == 4)
ComPoints = 360;
else if (PlusVal == 5)
ComPoints = 1080;
else if (PlusVal == 6)
ComPoints = 3240;
else if (PlusVal == 7)
ComPoints = 9720;
else if (PlusVal == 8)
ComPoints = 29160;
List<Struct.ItemData> ItemData = new List<Struct.ItemData>();
foreach (KeyValuePair<int, Struct.ItemData> Items in Nano.Items)
ItemData.Add(Items.Value);
foreach (Struct.ItemData ItemDataPiece in ItemData)
if (ItemDataPiece.ID == Main.ItemID)
ItemName = ItemDataPiece.Name;
while (ComPoints > 0 && Main.Plus < 12)
{
if (ComPoints < (GetPlusReq(Main.Plus) - Main.Progress))
{
Main.Progress += ComPoints;
ComPoints = 0;
break;
}
else
{
Main.Progress += GetPlusReq(Main.Plus);
ComPoints -= GetPlusReq(Main.Plus);
if (Main.Progress >= GetPlusReq(Main.Plus))
{
Main.Plus += 1;
Main.Progress = 0;
}
}
}
if (Main.Plus != OldPlus && Main.Plus >= 6)
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Congratulations! " + CSocket.Client.Name + " has upgraded the bonus level of " + ItemName + " to +" + Main.Plus + "!", Struct.ChatType.Talk));
}
Database.Database.DeleteItem(Minor.UID);
CSocket.Client.Inventory.Remove(Minor.UID);
CSocket.Send(ConquerPacket.ItemUsage(MinorUID, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(MainUID);
CSocket.Client.Inventory.Remove(MainUID);
CSocket.Send(ConquerPacket.ItemUsage(MainUID, 255, Struct.ItemUsage.RemoveItem));
Main.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Main, CSocket);
while (!created)
{
Main.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Main, CSocket);
}
CSocket.Client.Inventory.Add(Main.UID, Main);
CSocket.Send(ConquerPacket.ItemInfo(Main.UID, Main.ItemID, Main.Plus, Main.Progress, Main.Bless, Main.Enchant, Main.Soc1, Main.Soc2, Main.Dura, Main.MaxDura, Main.Position, Main.Color));
break;
}
Code:
private static int GetPlusReq(int p)
{
switch (p)
{
case 0:
{
return 20;
}
case 1:
{
return 20;
}
case 2:
{
return 80;
}
case 3:
{
return 240;
}
case 4:
{
return 720;
}
case 5:
{
return 2160;
}
case 6:
{
return 6480;
}
case 7:
{
return 19440;
}
case 8:
{
return 58320;
}
case 9:
{
return 2700;
}
case 10:
{
return 5500;
}
case 11:
{
return 9000;
}
default:
{
return 0;
}
}
}
Code:
case 35016: // WUXING OVEN
{
CSocket.Send(ConquerPacket.General(CSocket.Client.ID, 1, 0, 0, 0, 0, Struct.DataType.Dialog));
break;
}
Code:
public static byte[] ItemInfo(int UID, int itemid, int Plus, int Minus, int Enchant, int soc1, int soc2, int currentdura, int maxdura, int Location, int Color) Code:
public static byte[] ItemInfo(int UID, int itemid, int Plus, int Progress, int Minus, int Enchant, int soc1, int soc2, int currentdura, int maxdura, int Location, int Color) Code:
Packet.Long(Color); //Item color. 2-9(headgear is 3-9) Code:
Packet.Long(Progress); // Composition Progress Code:
Packet.Long(0); Code:
ALTER TABLE items ADD Progress INT(11) NOT NULL DEFAULT 0 AFTER Plus; Code:
public static bool NewItem(Struct.ItemInfo Item, ClientSocket CSocket) Code:
," + Item.Plus + " Code:
," + Item.Progress + " Code:
public static void UpdateItem(Struct.ItemInfo Item) Code:
`Plus` = " + Item.Plus + ", Code:
`Progress` = " + Item.Progress + ", Code:
public static void GetItems(ClientSocket CSocket) Code:
Item.Plus = Convert.ToInt32(DR["Plus"]); Code:
Item.Progress = Convert.ToInt32(DR["Progress"]); Code:
public class ItemInfo Code:
public int Plus; Code:
public int Progress;
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
| The Following User Says Thank You to MeGaMaX For This Useful Post: | ||
forkoto (06-24-2009) | ||
|
||||
|
iam so happy to be the firest one who post reply here
can i ask you only one question because you impressed me what is the online game that you dont anderstand about it great jop [Only registered and activated users can see links. Sorry you can't view links because you are not registered. [ Click here to register ]] you are the best (is there TQ bnary like this coemu)
__________________
trieng to know evrything you cant see me ? look carefully This Is Mido1122 Iam Here Since It Was EgyConquer and still (A Botter) :-( ![]() |
|
||||
|
[Release] PK Points
Character.cs, under Code:
public Timer FlashTimer; Code:
public Timer PkRemove; Code:
public void AddStam()
{
if(!Client.Dead)
{
if (Client.CurrentStam < 100)
{
Client.CurrentStam += 10;
Send(ConquerPacket.Status(this, 2, Client.CurrentStam, Struct.StatusTypes.Stamina));
}
else if (Client.CurrentStam > 100)
Client.CurrentStam = 100;
}
}
Code:
public void RemPKP()
{
if (Client.PkPoints > 0)
{
Client.PkPoints -= 1;
Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints));
}
}
Code:
CSocket.Client.UpStam = new System.Timers.Timer();
CSocket.Client.UpStam.Interval = 850;
CSocket.Client.UpStam.Elapsed += delegate { CSocket.AddStam(); };
Code:
CSocket.Client.PkRemove = new System.Timers.Timer();
CSocket.Client.PkRemove.Interval = (60000 * 6);
CSocket.Client.PkRemove.Elapsed += delegate { CSocket.RemPKP(); };
CSocket.Client.PkRemove.Enabled = true;
CSocket.Client.PkRemove.Start();
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
| The Following User Says Thank You to MeGaMaX For This Useful Post: | ||
coreymills (07-31-2009) | ||
|
||||
|
[Release]adding npc giving +12 item
go to handlers then npctalk.cs search for Code:
case 390: Code:
case 211091:
{
if (LinkBack == 0)
{
Text("Ho i can give you full +12 gea if you wish Just Choose your pro?", CSocket); //Remove one ) and add, CSocket
Link("Trojan", 1, CSocket);
Link("Warrior", 2, CSocket);
Link("Archer", 3, CSocket);
Link("Toa", 4, CSocket);
Link("NiNja", 5, CSocket);
Link("No, I dont need", 255, CSocket);
Face(19, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
AddItem(130109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquestarmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(118109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//magiccornet
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 2)
{
AddItem(131109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixArmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(900109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//dragonshield
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquesthelment
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 3)
{
AddItem(133109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixJerkin
AddItem(500329, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//shadowbow
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 4)
{
AddItem(134109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//pineRobe
AddItem(421339, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//KingsOfBackSword
AddItem(121249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//SunShine
AddItem(152229, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Blizzard
AddItem(114109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//heavenfan
}
else if (LinkBack == 5)
{
AddItem(135109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//pineRobe
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//SunShine
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(112109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
break;
}
Code:
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}
CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}
Code:
public static void Face(int Face, ClientSocket CSocket)
{
CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
}
just change item ids now u have npc in your source lets go mysql in phpmyadmin or navicat or what ever you use and insert Code:
insert into 'npcs' VALUES ('211091', '211091', '280', '1002', '430', '340', '2', '2');
280 is type 1002 mapid 430 x 340 y change them to what ever you want
__________________
![]() Sorry you can't view links because you are not registered. [ Click here to register ]
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Me Coemu | DanrleyxD | Conquer Private Servers | 1 | 02-14-2010 06:40 AM |
| [Help] CoEmu Help | ~ShaDow~ | Conquer Private Servers | 0 | 01-11-2010 12:14 PM |
| [Request] Need CoEmu | Closo | Conquer Private Servers | 2 | 12-05-2009 01:09 PM |
| [Release] CoEmu V2 | ׍ĥę×Ôŋë× | Conquer Private Servers | 4 | 11-21-2009 05:35 PM |
| [Question] Any onę need coemu?? | ~Black~Devil~ | TQ Binaries | 1 | 09-14-2009 01:32 PM |