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
Code:
if (CurrentNPC == 1234)
{
SendPacket(General.MyPackets.NPCSay("Hi, " + MyChar.Name + " Would you like to trade a DragonBall for 215 cps or a DBScroll for 2150 cps?"));
SendPacket(General.MyPackets.NPCLink("I would Like to trade a DragonBall for 215cps.", 1));
SendPacket(General.MyPackets.NPCLink("I would Like to trade a DBScroll for 2150 cps.", 2));
SendPacket(General.MyPackets.NPCLink("No thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
And Controls...
Code:
if (CurrentNPC == 1234)
{
if (Control == 1)
{
if (MyChar.InventoryContains(1088000, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.CPs += 215;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 215 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have a DragonBall"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 2)
{
if (MyChar.InventoryContains(720028, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(720028));
MyChar.CPs += 2150;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 2150 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have a DbScroll")); SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Now For the gold to cps and cps to gold NPC
Code:
if (CurrentNPC == 2345)
{
SendPacket(General.MyPackets.NPCSay("Hi, " + MyChar.Name + " Would you like to trade 400 cps for 400k or 400k for 400cps?"));
SendPacket(General.MyPackets.NPCLink("I would Like 400cps please", 1));
SendPacket(General.MyPackets.NPCLink("I would Like 400k please", 2));
SendPacket(General.MyPackets.NPCLink("No thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
And controls ...
Code:
if (CurrentNPC == 2345)
{
if (Control == 1)
{
if (MyChar.Silvers >= 400000)
{
MyChar.Silvers -= 400000;
MyChar.CPs += 400;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 400 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have 400k"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 2)
{
if (MyChar.CPs >= 400)
{
MyChar.CPs -= 400;
MyChar.Silvers += 400000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 400k. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have 400cps"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Tell me if The Controls are the wrong way around xD Press Thanks!!
good release =] , and anyone who says he didnt code the cp admin then let me tell you this... try doing cp admin and click no for the control on a regular LOTF it will still take your db =]
good release =] , and anyone who says he didnt code the cp admin then let me tell you this... try doing cp admin and click no for the control on a regular LOTF it will still take your db =]
+k even though i wont use lol good release though
Woo Thanks, I got no idea what to do next though =S
Woo Thanks, I got no idea what to do next though =S
Nice release, Maybe for your next release you can try to make a command called /hide (name or me). It would be for Gm's to be able to use it to hide from players asking for stuff.
Nice release, Maybe for your next release you can try to make a command called /hide (name or me). It would be for Gm's to be able to use it to hide from players asking for stuff.
so like, when a player whisper a gm, the command makes them think the gm is offline
so, when a gm comes on and types /hide me and a normal player whispers the gm they get the message hes offline?
hey mark you know how i said make wisper command you dont need now lol i just said it because i thoght you can do it but its released now in the dex sourcel ol
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
Code:
if (CurrentNPC == 1234)
{
SendPacket(General.MyPackets.NPCSay("Hi, " + MyChar.Name + " Would you like to trade a DragonBall for 215 cps or a DBScroll for 2150 cps?"));
SendPacket(General.MyPackets.NPCLink("I would Like to trade a DragonBall for 215cps.", 1));
SendPacket(General.MyPackets.NPCLink("I would Like to trade a DBScroll for 2150 cps.", 2));
SendPacket(General.MyPackets.NPCLink("No thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
And Controls...
Code:
if (CurrentNPC == 1234)
{
if (Control == 1)
{
if (MyChar.InventoryContains(1088000, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.CPs += 215;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 215 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have a DragonBall"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 2)
{
if (MyChar.InventoryContains(720028, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(720028));
MyChar.CPs += 2150;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 2150 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have a DbScroll")); SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Now For the gold to cps and cps to gold NPC
Code:
if (CurrentNPC == 2345)
{
SendPacket(General.MyPackets.NPCSay("Hi, " + MyChar.Name + " Would you like to trade 400 cps for 400k or 400k for 400cps?"));
SendPacket(General.MyPackets.NPCLink("I would Like 400cps please", 1));
SendPacket(General.MyPackets.NPCLink("I would Like 400k please", 2));
SendPacket(General.MyPackets.NPCLink("No thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
And controls ...
Code:
if (CurrentNPC == 2345)
{
if (Control == 1)
{
if (MyChar.Silvers >= 400000)
{
MyChar.Silvers -= 400000;
MyChar.CPs += 400;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 400 cps. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have 400k"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 2)
{
if (MyChar.CPs >= 400)
{
MyChar.CPs -= 400;
MyChar.Silvers += 400000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.NPCSay("Here is your 400k. GoodLuck"));
SendPacket(General.MyPackets.NPCLink("Thanks", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("Sorry, You dont have 400cps"));
SendPacket(General.MyPackets.NPCLink("Oh sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Tell me if The Controls are the wrong way around xD Press Thanks!!
Hi im new to this and I looked everywhere for the information on how to add a script to the database. I wondering how do i load the script to the database. I know how to open the npc database and create a npc and how to make it show anywhere on any map but my question is where do i add these codes? I would imagen i can make a new folder and save your script to be 1234Guard.cs or something like that but how i make the server load the file when someone calls the guard?Like where do i save the code part and then where do i save the command. any input would be greatly appreciated as i am new with coding and dont know how the server works lol.
[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 07/08/2009 - CO2 PServer Guides & Releases - 9 Replies 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.
case 10062: //Magic Artisan
{
if (LinkBack == 0)
{
Text("Hi. Gear here.", CSocket);
Link("Trojan", 1, CSocket);
Link("Warrior", 2, CSocket);