Register for your free account! | Forgot your password?

You last visited: Today at 08:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Mr.Free for 5017 Pvp

Discussion on [Release] Mr.Free for 5017 Pvp within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
vipper123's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 52
Received Thanks: 23
[Release] Mr.Free for 5017 Pvp

Hello elitepvps this is my first release so please dont flame me.

Oh k i coded this npc that gives away free gold cps and exp to a char but i didnt get to test it becouse my dads pc is really gay and wont let me play co or co pservers

oh k search for....

Quote:
CurrentNPC = NPCID;
and under it add....

Quote:
if (CurrentNPC == 57210)//Mr.Free
{
SendPacket(General.MyPackets.NPCSay("Hello "+ MyChar.Name +". My name is Mr.Free and i will give you free Cps, Exp and Gold. Would you like some?"));
SendPacket(General.MyPackets.NPCLink("Hell yea. Cps pls!", 1));
SendPacket(General.MyPackets.NPCLink("Hell yea. Exp pls!", 2));
SendPacket(General.MyPackets.NPCLink("Hell yea. Gold pls!", 3));
SendPacket(General.MyPackets.NPCLink("Nah im good.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
then search for...

Quote:
if (CurrentNPC == 390)
and under it add...

Quote:
if (CurrentNPC == 57210)//Mr.Free
{
if (Control == 1)
{
if (MyChar.CPs >= 0)
{
MyChar.CPs += 100000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Mr.Free gave you some Cps and u have " + MyChar.CPs + " now.", 2005));
}
}
if (Control == 2)
{
if (MyChar.Exp >= 0)
{
MyChar.Exp += 90000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 5, MyChar.Exp));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Mr.Free gave you some Exp and u are level " + MyChar.Level + " now.", 2005));
}
}
if (Control == 3)
{
if (MyChar.Silvers >= 100)
{
MyChar.Silvers += 100000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Mr.Free gave you some Money and u have " + MyChar.Silvers + " now.", 2005));
}
}
}
that all test it out for me and if it worked and it helped press Thanks and if it dont work see if u can fix it or ill try and fix it wen u tell me the error =)

Note.
This is for 5017 server that want to be pvp. i released this to help them out =)

P.S.
The id for Mr.Free is 1320 use that when u swam the npc on server =). Oh and just to tell you i did this in like 20sec and some people will call this a noob release if you do im ok with it i guess =)
vipper123 is offline  
Old 09/15/2009, 02:13   #2
 
elite*gold: 0
Join Date: Dec 2005
Posts: 23
Received Thanks: 5
I wonder if this could possibly work?
Itsmeyouidiot is offline  
Old 09/15/2009, 02:24   #3
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
go character.cs add public bool Freeprize = false; and then use in the dialog or in the control if (MyChar.Freeprize == true) to check if someone already got the rewards .. and after gaining (control) under additem or CPs += add Mychar.freeprize = true;
danielachraf is offline  
Old 09/15/2009, 02:28   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
Quote:
Originally Posted by danielachraf View Post
go character.cs add public bool Freeprize = false; and then use in the dialog or in the control if (MyChar.Freeprize == true) to check if someone already got the rewards .. and after gaining (control) under additem or CPs += add Mychar.freeprize = true;
If you are as good as you say you would know that wouldn't work. Once they will relog it will reset to Freeprize = false so they can get it again. The best thing to do is either if its the first opening of the server and no one logged in is check for logon count or create a different one such as a byte FreePrize and make that save.
Empty Project is offline  
Old 09/15/2009, 02:31   #5
 
Zion~'s Avatar
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
FreePrize.ini FTW?
Or just add it to your DB?

You guys are so difficult.
Zion~ is offline  
Old 09/15/2009, 02:45   #6
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
Quote:
Originally Posted by Zion~ View Post
FreePrize.ini FTW?
Or just add it to your DB?

You guys are so difficult.
You should read before post, I said to add it into the database. Also if you did it as an Ini File you would have to make it write down character name and also the number of that, also you would have to make it read each time the player does this. Which infact would probably slow down a little bit since you don't really need it. Though it may not slow down but wont be as quick to make or do as MYSQL.
Empty Project is offline  
Old 09/15/2009, 12:12   #7
 
Soiken's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 836
Received Thanks: 239
Hmmm... is this working?
Soiken is offline  
Old 09/15/2009, 14:44   #8
 
NukingFuts's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 480
Received Thanks: 111
nice work and ya Empty is right it will reset agian and players will get da same prize agian
NukingFuts is offline  
Old 09/15/2009, 16:01   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Lol, somebody that can't code a simple save function, shouldn't use this code.
I don't think this is a really useful release, but at least it is a release..
Basser is offline  
Old 09/15/2009, 16:13   #10
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Smythe94 View Post
Lol, somebody that can't code a simple save function, shouldn't use this code.
I don't think this is a really useful release, but at least it is a release..
Somebody capable of having a server shouldnt be using this code at the first place
damianpesta is offline  
Old 09/15/2009, 16:15   #11
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
I use this code...
Basser is offline  
Old 09/15/2009, 17:54   #12
 
Soiken's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 836
Received Thanks: 239
Quote:
Originally Posted by Smythe94 View Post
but at least it is a release..
ROTFL! EXACTLY
Soiken is offline  
Old 09/15/2009, 22:57   #13
 
elite*gold: 0
Join Date: Sep 2009
Posts: 249
Received Thanks: 17
Quote:
Originally Posted by Smythe94 View Post
I use this code...
:O
Empty Project is offline  
Old 09/17/2009, 03:55   #14
 
.Matt's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 145
Received Thanks: 34
I don't really see the point in putting in a save function, unless this is for a leveling server. Haven't tested it vipper and I won't but good job on contributing.
.Matt is offline  
Reply


Similar Threads Similar Threads
[RELEASE] old 5017 lotf
03/20/2010 - CO2 PServer Guides & Releases - 8 Replies
it works okay... this is my second draft because my first one got wiped so dont expect it to be as good... haven't spent much time on it.. its all urs.. do what you want.. LOTF v5017.. put the database in your C: and define it directly in the src.. it loads dmaps and npcs from there.. to do npcs just go to NPcSystem.cs ... yeah just put it in recently .. it works ifne , i have tested it.
[RELEASE]Big Project..5095,5065,5017,5017 (command Server)
10/01/2009 - CO2 PServer Guides & Releases - 23 Replies
Hi, Yes i made a big project with my self by my self i host i edit i control i code. The Project contain 3 Co plvling Servers and 1 Command server the plvling servers are Snow Server and Treasure island . snow server works with 5065 client and it have alot of edits , adds , well i have made 135 gears and you can upgrade it in market from De La Vega for 250k CPS for each item also you should get 1 blessing amulet to make dmg -1 and you can get it by killing 1000 Birdman or 1000 Snake man or...
[RELEASE] 5017 Source
09/18/2009 - CO2 PServer Guides & Releases - 18 Replies
.
[Release] Special NPC for 5017 Pvp
09/14/2009 - Conquer Online 2 - 2 Replies
Hello elitepvps this is my first release so please dont flame me. Oh k i coded this npc that gives away free gold cps and exp to a char but i didnt get to test it becouse my dads pc is really gay and wont let me play co or co pservers oh k search for.... CurrentNPC = NPCID; and under it add....
[RELEASE] Client 5017 (only 4 mb)
07/17/2009 - CO2 PServer Guides & Releases - 4 Replies
This is my client 5017.... just extract it any Conquer Online Client (any patch). This the most Important in client 5017 (.dll files) (ani folder) and (ini folder) ... so you can easily join to any private server using client 5017... by the way... dont delete the (data.wdf) and (c3.wdf) files in conquer client. Click here for MegaUpload http://www.megaupload.com/?d=BEX4LCS0



All times are GMT +2. The time now is 08:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.