You last visited: Today at 01:20
Advertisement
[Release] Give Items NPC!!
Discussion on [Release] Give Items NPC!! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
10/24/2008, 00:19
#1
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
[Release] Give Items NPC!!
Search for
Code:
CurrentNPC = NPCID;
Add Below
Code:
if (CurrentNPC == 790)//Give items NPC
{
SendPacket(General.MyPackets.NPCSay("Hi, requests by the Players I Did It NPC Just Select Your Job and Your Items get .."));
SendPacket(General.MyPackets.NPCLink("Trojan Items", 1));
SendPacket(General.MyPackets.NPCLink("Warrior Items", 2));
SendPacket(General.MyPackets.NPCLink("Fire Items", 3));
SendPacket(General.MyPackets.NPCLink("Water Items", 4));
SendPacket(General.MyPackets.NPCLink("Archer Items", 9));
SendPacket(General.MyPackets.NPCLink("Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Search for
Code:
if (CurrentNPC == 390)
Add Under..
Code:
if (CurrentNPC == 790)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("You sure you want to Items Trojan?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 5));
SendPacket(General.MyPackets.NPCLink("Not,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 5)
{
MyChar.AddItem("135999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//ConquestArmor
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Sparks Blade
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Sparks Blade
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Neck
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Ring
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Bota
MyChar.AddItem("112389-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Coronet
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Brinco
}
if (Control == 2)
{
SendPacket(General.MyPackets.NPCSay("You sure you want to Items Warrior?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 6));
SendPacket(General.MyPackets.NPCLink("Not,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 6)
{
MyChar.AddItem("136999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//PhoenixArmor
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Sparks Blade
MyChar.AddItem("900399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Fire Shield
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Neck
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Ring
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Bota
MyChar.AddItem("112919-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Helmet
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Brinco
}
if (Control == 3)
{
SendPacket(General.MyPackets.NPCSay("You sure you want to Items Fire?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 7));
SendPacket(General.MyPackets.NPCLink("Not,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 7)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Robe
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//BlackSword
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//bracelet
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Bag
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Bota
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Cap
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Brinco
}
if (Control == 4)
{
SendPacket(General.MyPackets.NPCSay("You sure you want to Items Water?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 8));
SendPacket(General.MyPackets.NPCLink("Not,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 8)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Robe
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//BlackSword
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//bracelet
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Bag
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Bota
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Cap
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));//Brinco
}
if (Control == 9)
{
SendPacket(General.MyPackets.NPCSay("You sure you want to Items archer?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 10));
SendPacket(General.MyPackets.NPCLink("Not,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 10)
{
MyChar.AddItem("138999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Coat
MyChar.AddItem("500329-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Bow
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Neck
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Ring
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Bota
MyChar.AddItem("112939-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Cap
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));//Brinco
}
}
Go PHPmyadmin To Add Npc ..
Attached Images
tutor.JPG
(4.1 KB, 452 views)
10/24/2008, 00:21
#2
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Nice release, added to my [All-In-1] Thread
10/24/2008, 00:53
#3
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
whats the umm....point of that? O.O
10/24/2008, 00:54
#4
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by
BlooD-BoY
whats the umm....point of that? O.O
then you dont need to search all equip names and use the commands
10/24/2008, 00:59
#5
elite*gold: 120
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by
XxArcherMasterxX
then you dont need to search all equip names and use the commands
lol commands still just as easy :P
if (Splitter[0] == "/gm")
{
if (Splitter[1] == "tro")
{
Char.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
//etcetc
}
10/24/2008, 01:01
#6
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
Code:
Nice release, added to my [All-In-1] Thread
Tranks Archer Master..
10/24/2008, 01:05
#7
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by
lostsolder05
lol commands still just as easy :P
if (Splitter[0] == "/gm")
{
if (Splitter[1] == "tro")
{
Char.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
//etcetc
}
okay you won this round but now im going to win
you can use the npc for a Vip map and change the items
10/24/2008, 01:25
#8
elite*gold: 120
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by
XxArcherMasterxX
okay you won this round but now im going to win
you can use the npc for a Vip map and change the items
lol, true :P
10/24/2008, 02:22
#9
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Or use the command, and just use an if statement to check if they are on the VIP map =P
Both ways work lol
10/24/2008, 02:23
#10
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by
kinshi88
Or use the command, and just use an if statement to check if they are on the VIP map =P
Both ways work lol
Lostsoldier 1
Kinshi 1
ArcherMaster 0
:P
10/24/2008, 02:23
#11
elite*gold: 120
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by
kinshi88
Or use the command, and just use an if statement to check if they are on the VIP map =P
Both ways work lol
true, i was gonna say that but decided not 2 lol
10/24/2008, 20:34
#12
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Or you make an NPC chat auto-appears when you enter a VIP map, and automaticlly it gives you gear for your class and level.
11/27/2008, 16:02
#13
elite*gold: 0
Join Date: Mar 2008
Posts: 11
Received Thanks: 1
NPC don't work
I put the new code on the project.
The NPC appears but don't work.
Can you help me ?
Thankx
11/29/2008, 20:15
#14
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by
EmmeTheCoder
Or you make an NPC chat auto-appears when you enter a VIP map, and automaticlly it gives you gear for your class and level.
How would you do that?
01/05/2009, 21:55
#15
elite*gold: 0
Join Date: Dec 2008
Posts: 13
Received Thanks: 0
i dont understandt that all Originally Posted by lostsolder05
lol commands still just as easy :P
if (Splitter[0] == "/gm")
{
if (Splitter[1] == "tro")
{
Char.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
//etcetc
}
Similar Threads
[Tutorial]How to give items/stats by default
03/15/2011 - Dekaron Private Server - 10 Replies
Have you ever wanted to give an item(s) to every character as soon as it is created?
Well, I am here to show you how!
First we will open up the MSSQL's Enterprise Manager, and we will take a lot at the user_character table in the character database.
Have you ever noticed the characters in there? Well, that is what we are looking for. They all have an user_no of 19999999999991, so you can find them by searching for that user_no in user_character table.
Ok, first lets take a look at...
Kenwod give me back my items!
08/22/2010 - 9Dragons Trading - 28 Replies
Give me the items you stole for me/you dont are a trustable guy after i give you the items you change the pasword and now i dont have anytin because a scammer who all now who is! scamed me!
Clean your name give me the 600 def set !
Tons of items to give
04/10/2010 - 9Dragons - 26 Replies
Ok i gave gathered quite of bit items which i can dupe and give away more coming on server 5
Refined Weapons:
LM hermit Bracers +10,11,12
LM hermit Spear +12
LM hermit Axe +12
EC WD +12 Sword
EC WD +12 Bracer
RL WD sword +11
EC WD staff +12
All times are GMT +2. The time now is 01:22 .