[Release] Give Items NPC!!

10/24/2008 00:19 felipeboladao#1
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 ..
10/24/2008 00:21 XxArcherMasterxX#2
Nice release, added to my [All-In-1] Thread
10/24/2008 00:53 BlooD-BoY#3
whats the umm....point of that? O.O
10/24/2008 00:54 XxArcherMasterxX#4
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;)
10/24/2008 00:59 lostsolder05#5
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
}
10/24/2008 01:01 felipeboladao#6
Code:
Nice release, added to my [All-In-1] Thread
Tranks Archer Master..
10/24/2008 01:05 XxArcherMasterxX#7
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:p
10/24/2008 01:25 lostsolder05#8
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:p
lol, true :P
10/24/2008 02:22 kinshi88#9
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 XxArcherMasterxX#10
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 :D
Kinshi 1 :D
ArcherMaster 0 :(

:P:D
10/24/2008 02:23 lostsolder05#11
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
10/24/2008 20:34 _Emme_#12
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 vkuzent#13
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 YukiXian#14
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?
01/05/2009 21:55 suka12#15
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
}