Discussion on [RELEASE] Random Things For All Types Of Sources! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
Well Guys i havent really released much, imma be making some random things for all types of sources, To try to improve my coding, yes im not great at coding, i can do it though, I'll try to make something new each day, I'll be posting things such as, NPC's, Quests, Commands, Alot more i cannot think about at moment.
First of all you'll need to search in Client.cs for:
Code:
CurrentNPC = NPCID;
Below that Add:
Code:
if (CurrentNPC == 950)//Santa Claus
{
SendPacket(General.MyPackets.NPCSay("Hello, Christmas is a great time of the year, We have Decided we will give out christmas presents this year"));
SendPacket(General.MyPackets.NPCSay("What Christmas Present would you like this year?"));
SendPacket(General.MyPackets.NPCLink("Trojan Items Please", 1));
SendPacket(General.MyPackets.NPCLink("Warrior Items Please", 2));
SendPacket(General.MyPackets.NPCLink("Fire Items Please", 3));
SendPacket(General.MyPackets.NPCLink("Water Items Please", 4));
SendPacket(General.MyPackets.NPCLink("Archer Items Please", 9));
SendPacket(General.MyPackets.NPCLink("Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
Now find where all the other NPC's are located in Client.cs and add:
Code:
if (CurrentNPC == 950)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want Trojan Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 5));
SendPacket(General.MyPackets.NPCLink("No Thanks,Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 5)
{
MyChar.AddItem("135999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112389-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 2)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Warrior Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 6));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 6)
{
MyChar.AddItem("136999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("410339-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("900399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112919-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 3)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Fire Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 7));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 7)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 4)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Water Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 8));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 8)
{
MyChar.AddItem("139999-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112949-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-3-3", 0, (uint)General.Rand.Next(346623472));
}
if (Control == 9)
{
SendPacket(General.MyPackets.NPCSay("Are you sure you want to Archer Items?"));
SendPacket(General.MyPackets.NPCLink("Yes please.", 10));
SendPacket(General.MyPackets.NPCLink("No Thanks, Good Bye.", 255));
SendPacket(General.MyPackets.NPCSetFace(999));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 10)
{
MyChar.AddItem("138999-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("500329-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("112939-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
MyChar.AddItem("117399-12-7-255-13-13", 0, (uint)General.Rand.Next(346623472));
}
}
Now you need to create a NPC for this, In You're Database Copy This EXACTLY
Gratz, You're Santa Claus is now active, log in and check it out, You can edit the items it gives, I didnt create this full npc, i saw some released so i made a little better version of this.
why not just PeTes, all things are there and is for both, santa etc. are already there also:
and you even dont give credit to the persons that have made them
Dude, All npcs are basically the same, no one can accuse people for saying thats somebody elses npc, however i did take little bits from NPC's not the full ones though, i coded more than half of the npc's which makes them my own work.
Is exactly 100% the same and yes you can make them different.
You have just edited NPC number and what they say.
Thats not a release.
And why in the santa npc, why does the items come in exactly same as in the other code?
Is only coding if all is made by you.
There is big different between coding and editing.
Coding = You have self made everything on the "code"
Edit = You have copied a code and edit something in it
WannabeCoded(Noob editing) = You ahve copied a code and edited something in it and claim all credits to your self.
Sorry to say it.
and why is your drop commands same as kinshis?
This is from kinshis:
and commands have big different all after who made it.
@Yashi
it is copy and paste....
Was that enough prOOOOF?
now this is my release then
(Original by PeTe Ninja)
How did i code it?
Copied his npc and
edited npc dialogs and
npc id + //Comments
GuildDirector:
Dialog:
Code:
if (CurrentNPC == 35411) // GuildControl
{
SendPacket(General.MyPackets.NPCSay("Want to enter guildwar? if you die you have to wait a little.")); // NPC Dialog
SendPacket(General.MyPackets.NPCLink("Send me in.", 1)); // Link (Control 1)
SendPacket(General.MyPackets.NPCLink("I dont want to go.", 255)); // Your Respond ( Dialog end + Link)
SendPacket(General.MyPackets.NPCSetFace(30)); // NPC face
SendPacket(General.MyPackets.NPCFinish()); // End NPC Talk
}
Control:
Code:
if (CurrentNPC == 35411) // Controls for npc
{
if (Control == 1) // What NPC do when click on send me in
{
Random R = new Random(); // New Random
int Nr = R.Next(1, 10); // Random picks a number from 1-10
if (Nr == 1) //Random Spot 1
{
MyChar.Teleport(1038, 351, 341);
}
if (Nr == 2) //Random Spot 2
{
MyChar.Teleport(1038, 335, 345);
}
if (Nr == 3) //Random Spot 3
{
MyChar.Teleport(1038, 309, 369);
}
if (Nr == 4) //Random Spot 4
{
MyChar.Teleport(1038, 283, 340);
}
if (Nr == 5) //Random Spot 5
{
MyChar.Teleport(1038, 310, 327);
}
if (Nr == 6) //Random Spot 6
{
MyChar.Teleport(1038, 318, 297);
}
if (Nr == 7) //Random Spot 7
{
MyChar.Teleport(1038, 347, 309);
}
if (Nr == 8) //Random Spot 8
{
MyChar.Teleport(1038, 337, 320);
}
if (Nr == 9) //Random Spot 9
{
MyChar.Teleport(1038, 309, 293);
}
if (Nr == 10) //Random Spot 10
{
MyChar.Teleport(1038, 371, 300);
}
}
}
You think this is a release NO!
I dont think either.
Sorry to say it, but is not a release
Goodluck next time.
[Release] KalHackZz v0.3 + v0.4 Sources ... 03/30/2013 - Kal Hacks, Bots, Cheats & Exploits - 98 Replies hey guys,
it's time for me to quit kal now :P have to do some more important things in rl now ( school, friends, driving licens test and so on ) :P
so as i dont need my sources anymore i will release them now ... old KalHackZz v0.3 src and also my new KalHackZz v0.4 ( including tradehack for pserver ) ( special credits and thx for this new built src to MoepMoep and chibis )
hope come guys of u can need this ... for all others : i know its not much, not all is my work and its bulshit...
[RELEASE] cq_action help: types & params description(translated from chinese) 09/01/2011 - EO PServer Guides & Releases - 12 Replies Here we go: this is translation of ActionDefine.h (found in old server sources)
It will help you understand the numbers in cq_action.
If you are planning to build your own cq_action section, this will for sure help you.
Also, you will know what are the limits of cq_action table.
However there are for sure more types/params implemented in new msg servers, so not all is covered.
njoy another fine release from ACME.
[RELEASE] General Data Types. 05/08/2010 - CO2 PServer Guides & Releases - 11 Replies This is just a tiny release with the correct sub-types for the General Data .
This will be a part of the things I will be dumping after I formatted my PC without being prepared. I'm sorry for all other info I still had on the CO2 PServer development, it is not available for my any more. I was going to release it all though, but not just yet.
NinjaStep = 0x9C,
EndFly = 0x78,
GUIDialog = 0x7E,
SetLocation = 0x4A,
SetMapColor = 0x68,
Jump = 0x89,
[Release] Good Sources !! ALL - in - one!! 02/20/2009 - CO2 PServer Guides & Releases - 22 Replies I GOT GOOD SOURCES FROM ELITEPVPERS AND I WANT TO RELEASE THEM :D
1) CoV2 Source:
The link:RapidShare: Easy Filehosting
2) DeathCo Source:
The link:RapidShare: Easy Filehosting