These are my first 2 ever npcs. I coded them with the help of several other codes.
This code will Trade in the amulet for the gear.
And this one will Sell you the Amulets.
Code:
case 390: //Love Stone
{
if (LinkBack == 0)
{
Text("Hiya There! Would you like to buy an Amulet? It will Cost you $100,000", CSocket);
Link("Yes I sure would!", 1, CSocket);
Link("No Not today.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
Text("What Class are you?", CSocket);
Link("Trojan", 2, CSocket);
Link("Warrior", 3, CSocket);
Link("Ninja", 4, CSocket);
Link("Archer", 5, CSocket);
Link("Fire Taoist", 6, CSocket);
Link("Water Taoist", 7, CSocket);
Link("Nevermind", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 2)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(710012, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
else if (LinkBack == 3)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(710011, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
else if (LinkBack == 4)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(723583, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
else if (LinkBack == 5)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(710015, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
else if (LinkBack == 6)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(710013, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
else if (LinkBack == 7)
{
if (CSocket.Client.Money >= 100000)
{
AddItem(710014, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
Money(-100000, CSocket);
}
}
break;
}
I have a question tho, How do you make it so an Archer Cant Buy the Amulet or Trade the amulet for say Trojan gears.
I have error with ADDitem does not accept 11 itens Help!!
Find The Wuxing Oven guide and do that first.
Quote:
Originally Posted by PeTe Ninja
well if you rewrote part of it you can make it so it will be first by professions like
if (Client.Profssion = 15)
{
stuff in here ( i think u want tro only rihgt? so itsl ike 10-15
}
else
{
your not a tro fool
}
if you tell me which jobs you want i can try and code this for you like the way i mean it if you want ... i dont use coemvu2 but i can help
Well Trojan, Warrior, Archer, Ninja, Water and Fire lol.
I think i know what your mean but lets see what you come up with, you only need to come up with one so that job 10 through 15 can get it and i can figure it out.
[Release]Basevendor+Mangos 3.3.3a Npcs 07/27/2012 - WoW Private Server - 10 Replies Ich habe kürzlich im Internet ein nettes Tool gefunden und möchte es gerne mit euch teilen da ich auf viele Threads gestoßen bin in denen nach Lvl Mobs,Vendoren usw gefragt wurde.Ich weis nicht ob ihrs schon kennt,aber wenn nicht ist es auf jeden Fall was ganz nettes;).Also meine neuste Entdeckung nennt sich Basevendor:
Was ist BaseVendor?
BaseVendor bietet Dir die Funktion Deine individuell angepassen, eigenen Händler für Deinen Server zu erstellen. In wenigen Minuten hast Du Deine...
[Release]DisCity NPCs (5165) 09/17/2010 - CO2 PServer Guides & Releases - 43 Replies first lets define our variables
in Character.cs search for:
public Nobility Nobility;
then add these under it:
public bool DisCityON = false;
public int DisCityMobs = 0;
now on to the npc's
[Release] Birth Village NPCs 08/10/2010 - CO2 PServer Guides & Releases - 9 Replies -Deleted-
People are so ungrateful of someones hard work and cba to contribute their own tiny piece.
Might release these on a later dat with all the grammer correct for every class. But don't know yet.
#Request Close
[Release] Xml Npcs 04/04/2010 - CO2 PServer Guides & Releases - 6 Replies Honestly, was just bored so I thought I'd take a look at C# since I haven't for a few months.
Hard-coded Npc's suck balls, so here's the starting code for Xml Npc's.
Pretty sure it was done within CoEmu v2, but can easily be converted into any source.
I haven't tested it, since I don't have a Conquer client.
Instructions:
[Release]2 NPCS 05/26/2009 - CO2 PServer Guides & Releases - 18 Replies Hi its me again
Flame will be Reported
I Coded these 100% Myself
The NPCS are, CP admin and A Npc that trades gold for cps and cps for gold. Both tested on a LOTF source 100% work
First CP Admin