Register for your free account! | Forgot your password?

You last visited: Today at 19:44

  • Please register to post and access all features, it's quick, easy and FREE!

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.

Closed Thread
 
Old   #1
 
felipeboladao's Avatar
 
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
File Type: jpg tutor.JPG (4.1 KB, 452 views)
felipeboladao is offline  
Thanks
5 Users
Old 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
XxArcherMasterxX is offline  
Old 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
BlooD-BoY is offline  
Old 10/24/2008, 00:54   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by BlooD-BoY View Post
whats the umm....point of that? O.O
then you dont need to search all equip names and use the commands
XxArcherMasterxX is offline  
Old 10/24/2008, 00:59   #5
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by XxArcherMasterxX View Post
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
}
lostsolder05 is offline  
Old 10/24/2008, 01:01   #6
 
felipeboladao's Avatar
 
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..
felipeboladao is offline  
Old 10/24/2008, 01:05   #7
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by lostsolder05 View Post
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
XxArcherMasterxX is offline  
Old 10/24/2008, 01:25   #8
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by XxArcherMasterxX View Post
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
lostsolder05 is offline  
Old 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
kinshi88 is offline  
Thanks
1 User
Old 10/24/2008, 02:23   #10
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by kinshi88 View Post
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
XxArcherMasterxX is offline  
Old 10/24/2008, 02:23   #11
 
lostsolder05's Avatar
 
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
Quote:
Originally Posted by kinshi88 View Post
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
lostsolder05 is offline  
Old 10/24/2008, 20:34   #12
 
_Emme_'s Avatar
 
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.
_Emme_ is offline  
Old 11/27/2008, 16:02   #13
 
elite*gold: 0
Join Date: Mar 2008
Posts: 11
Received Thanks: 1
Smile NPC don't work

I put the new code on the project.

The NPC appears but don't work.


Can you help me ?



Thankx
vkuzent is offline  
Old 11/29/2008, 20:15   #14
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by EmmeTheCoder View Post
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?
YukiXian is offline  
Old 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
}
suka12 is offline  
Closed Thread


Similar Threads 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 +1. The time now is 19:45.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.