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
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;
this is what i got now..
2. how to create an extra map wich i can put special monsters in with a npc.
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."));
See where it says Packets.NPCSay?
Thats what the NPC says, change the text in the qoutes to change the text
You shouldn't need to build (assuming you are running your debug copy anyways)
Change the script around to how you want it to be ingame, close the server (if it is running), debug (f5), restart server, login with your client and the npc should be updated.
I think he is talking about adding a new/clone of a map. I know clone maps are possible by re-using the .dmaps or something but I have no idea in practice how to go about it so can't really help there.
As said though, there are ALOT of un-used maps and quite a few copies. Find one that suits your quest and add some spawns there, then worry about drops, npcs, quest functions and all that good stuff later.
I think he is talking about adding a new/clone of a map. I know clone maps are possible by re-using the .dmaps or something but I have no idea in practice how to go about it so can't really help there.
As said though, there are ALOT of un-used maps and quite a few copies. Find one that suits your quest and add some spawns there, then worry about drops, npcs, quest functions and all that good stuff later.
Seriously, creating a new map is probably just a matter of copying, editing and renaming files.
Dummies 03/14/2008 - Cabal Online - 7 Replies is there any skill spammer bot that spams skills at the dummies? i have search but all the ones i see r for monsters.thanx in advance..