hello,
im trying to set up my own private server and i could use some help :P
i got a few questions u might could help me with.
I got a 5165 server with korolos3 source.
so my questions are :
1. How to edit the chat of a npc with C# ? i tried to edit the cpadmin by getting rid of the trade of 500k money for 5k cps but i failed :P
2. how to create an extra map wich i can put special monsters in with a npc.
if im getting more questions ill post them here.
peace,
W.Maatman
im trying to set up my own private server and i could use some help :P
i got a few questions u might could help me with.
I got a 5165 server with korolos3 source.
so my questions are :
1. How to edit the chat of a npc with C# ? i tried to edit the cpadmin by getting rid of the trade of 500k money for 5k cps but i failed :P
this is what i got now..Quote:
#region korolos cpadmin
case 1524230:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hallow i am CPS Admin here to exchang Dragonsball and dbscroll for cps and exchang silvers for cps say thanks to korolos he make me."));
GC.AddSend(Packets.NPCLink("Dragonball for (215 cps)", 4));
GC.AddSend(Packets.NPCLink("Dragonball scroll for (2150 cps) ", 5));
GC.AddSend(Packets.NPCLink("Me doesnt have DBs, gimme plx", 255));
GC.AddSend(Packets.NPCSetFace(50));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Inventory.Count < 40)
{
if (Control == 4)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.CPs += 215;
GC.AddSend(Packets.NPCSay("You have have got 215 cps"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Dragonball."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 5)
{
if (GC.MyChar.InventoryContains(720028, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(720028));
GC.MyChar.CPs += 2150;
GC.AddSend(Packets.NPCSay("You have got 2150 cps"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't dbscroll."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
2. how to create an extra map wich i can put special monsters in with a npc.
if im getting more questions ill post them here.
peace,
W.Maatman