MANY SOURCE EDITS-Eveything possible (except Quests)
Ive been coding for about a year but i still dont understand alot of the c# format, i was wondering if there was any way for someone to help me with these:if they have been posted before please leave a link...
when people create a character i want them to have 1m silvers and 10k cps along with lvl 100 full Armour for class and have level 3 VIP
Solution-
Quote:
in Database.cs Search BW.Write((ushort)(Spi * 5));
under it is what the new characters will start with- Specificly
BW.Write((uint)100000);//Silvers <<<Silvers Start With
BW.Write((uint)10000);//CPs <<<CPS Start With
Lower is the #region Beginner Items
this is nearly self explanitory, change the value in
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 422010; <<<< Item in inventory
in Chat.cs Search
if (GC.AuthInfo.Status == "[GM]" || GC.AuthInfo.Status == "[PM]") <<both users can use ||
change second to RP or whatever extra ADMIN you create...
{note:PM can not do codes now}
{Fix- add another || GC.AuthInfo.Status == "[<ADMIN 2 INITIALS>]" after the PM and you have all 3 doing most commands}
{
if (GC.AuthInfo.Status == "[PM]") <<< change this to GM
Search again for if (GC.AuthInfo.Status == "[PM]")
and change that to GM and BINGO GM is higher then PM in commands
when i use my GM or PM against another GM or PM they dont lose hp... and Acro your edit made my c# build go hay wire (besides the pk thing... all can pk except normals cant attack authority =p good work)
all players can enter if they have specified position such as class 63 (will create later) after completing they gain item (please leave code as /* */ and have <item> for the item id
players kill HUGE chess pieces (leave mob id as <mob>) after killing specified ID they gain ranging cps... Pawn==10kcps Knight==100kcps Bishop==200kcps Rourke== 500kcps Queen==1m cps King==<item>
Diretly under it
LevelExp = new ulong[146];<<< update 146 to the highest level you want
[without bump of other variable the default max is 255 no matter this value]
Now we move to
LevelExp[130] = <exp to get lvl 130>;
you can copy and paste this many times and just change the level between [130] and in the <>'s the exp amount needed which you can increase for harder leveling after level 130
TIP: does not apply for levels under 130
no matter how i manipulate the text when i use bless lantern all it does is do what it was supposed to do not what i edited it to do... what i want is for it to do cps and do the items like... buy emerald, buy MB, buy gold ore, buy exurite ore, the next says skills-Riding skill, war cry skill, other horse skill, previous ,next is for cps-1m gold for 1k cps, 10m gold for 10kcps 50m gold for 50kcps 100m gold for 100k cps, Previous
in your NPCDialog.cs Find the NPC you would like to edit... i will show you how to blend two NPC's into one
Now, to make your WINE KIDO in my case who sells emeralds and the skills already i wants it to also sell CPS, so what do we do?
Find your second NPC and copy its entire text besides the case <id>:
in my case it was this CPADMIN
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello I am the Cps Admin, I can exchange Dragonballs and Dragonball scrolls for cps, I can also exchange Silver for Cps. Which would you like me to do for you?"));
GC.AddSend(Packets.NPCLink("Dragonball for 215 cps.", 1));
GC.AddSend(Packets.NPCLink("Dragonball scroll for 2150 cps. ", 2));
GC.AddSend(Packets.NPCLink("500,000 silver for 5000 cps. ", 3));
GC.AddSend(Packets.NPCLink("1,000,000 silver for 10,000 cps. ", 4));
GC.AddSend(Packets.NPCLink("5,000,000 silver for 50,000 cps. ", 5));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(50));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Inventory.Count < 40)
{
if (Control == 1)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.CPs += 215;
GC.AddSend(Packets.NPCSay("You 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 a Dragonball."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
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 have a dbscroll."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
else
{
GC.AddSend(Packets.NPCSay("Im sorry I can't help you."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
Now we have to blend Wine Kido into it also... my problem was i didnt attach the avatar correctly or change the IF commands... anyway in this instance you want to paste it directly under your Wine Kido or Special Seller to give it the properties... when you finish mine looked like this
}
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello I am the Cps Admin, I can exchange Dragonballs and Dragonball scrolls for cps, I can also exchange Silver for Cps. Which would you like me to do for you?"));
GC.AddSend(Packets.NPCLink("Dragonball for 215 cps.", 1));
GC.AddSend(Packets.NPCLink("Dragonball scroll for 2150 cps. ", 2));
GC.AddSend(Packets.NPCLink("500,000 silver for 5000 cps. ", 3));
GC.AddSend(Packets.NPCLink("1,000,000 silver for 10,000 cps. ", 4));
GC.AddSend(Packets.NPCLink("5,000,000 silver for 50,000 cps. ", 5));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(50));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Inventory.Count < 40)
{
if (Control == 1)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.CPs += 215;
GC.AddSend(Packets.NPCSay("You 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 a Dragonball."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
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 have a dbscroll."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
else
{
GC.AddSend(Packets.NPCSay("Im sorry I can't help you."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
this is where my problem was... review the IF (CONTROL == <num>) and you will see that it repeats itself so what we had to do was change the variables so that it continued instead of glitched... also you should blend your NPC faces. after adjusting the CPS chat i came up with this
how do i create PK safe and PK unsafe area... is there just a 0-1 false-true code or a harder concept?
Solution
Any and all works collectively obtained will be explained and posted in one client Any help is greatly appreciated, and when my source is completely finished i will post it on a forum along with a tutorial on how to edit...
It's Paralyzer[GM] here, Report me(idc) I am banned for 7 days and I am not locked out of the community so it's ok for me to make another acc for 7 days anyway
What you are asking for is alot..
Try looking around the client and see what you can find
i looked around but most of them are just general fixes and some dont work in my source... like the Monster hunter couldnt connect mhunt bool and NPC's do 2 things insted of one when you choose an option like the blessing lantern gives me 10kcps and riding skill without taking my gold yet the source isnt flawed... also for the second time, this forum is for general use and all glites/edits, im not asking for it all at once but if someone knows how to fix a problem like the commands (which will not actually execute the way i wanted) then they should post the fix and i will mark it off the list and provide the solution under as a Solution-Spoiler:....
Huseby, please dont delete this post >.> , and my post about photoshop shouldnt have been closed, i still cant use photoshop and you ignored the fact that it should be moved not ended >.>... totally not helping
Fang's Source Edit [5165] 09/15/2010 - CO2 PServer Guides & Releases - 38 Replies I'm releasing this because someone requested it o.o ..
It's from AGES ago so please don't judge my coding experience on this! xP
I don't know why you guys like this source. lol, but here's my edit:
Download the Source: (Patch 5165 - 5172)
http://www.megaupload.com/?d=23OIWCFA
or try downloading it here: http://www.elitepvpers.com/forum/co2-pserver-guides -releases/735668-fangs-source-edit-5165-a.html#pos t6769828
Running Windows 32bit Edition? Here's the fix:
[Guide]How to edit 5165 source! 12/19/2009 - CO2 PServer Guides & Releases - 6 Replies Well here is a simple thread on using the functions in the 5165 source that everyone has, Basicly will be talking bout functions about the source
Ok first lets start with adding a item and what it does
Lets start by going to Character.cs in Game/Character.cs
Search for
MoneyBag
Request for lvl 115 Backsword Edit and 100 Robe Edit 11/17/2007 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies Hey Guys, Is there any chance someone could show me some cool edits of the lvl 100 and 115 Tao robes, and the 110 and 115 Backswords? Just post some screenies for me and upload them if you like :p
They're gonna be on a large female though so make them sexy! :D :cool: