Register for your free account! | Forgot your password?

You last visited: Today at 03:51

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

Advertisement



[Release]NPC SELLS GOLDCUP

Discussion on [Release]NPC SELLS GOLDCUP within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
Talking [Release]NPC SELLS GOLDCUP

First of all u have to have GoldCup in your server... then all u need to do it add this to NpcTalk.cs

This is a good release for donaters.. u cannot get that amount of cps.. so no one will have it.. but if u donate to the server and get the cps.. and buy it.. it will show that u donated... etc..


I MADE THIS FROM SCRATCH SO GIVE ME SOME CREDIT PLEASE,

QUESTION : How do I make cps save in CoEmu.. if i sell a DB for 215 cps.. it gives me the cps.. but if i relog... I dont have that 215 Cps.. Where can I fix that?

Code:
                case 47: //GoldPrize Rewarder - CODED BY imported_spitt_fire911
                    {
                        if (LinkBack == 0)
                        {
                            Text("I can sell you items!, So I suggest donating to obtian the CP for these items.", CSocket);
                            Link("Buy a GoldCup for 500,000 CPs.", 1, CSocket);
                            Link("No Thank You", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1) //Gold Cup
                            if (CSocket.Client.CPs >= 500000)
                            {
                                CPs(-500000, CSocket);
                                AddItem(2100075, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                            }
                        else
                            {
                                Text("How dare you, You do not have the CPs!", CSocket);
                                Link("Sorry!", 255, CSocket);
                                End(CSocket);
                            } break;
                    }
imported_spitt_fire911 is offline  
Thanks
1 User
Old 07/15/2009, 11:52   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 52
Received Thanks: 3
good aport
habbo245 is offline  
Thanks
1 User
Old 07/15/2009, 12:16   #3
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
PHP Code:
public static void SaveConquerPoints(Character Client) {
    
MySqlCommand Command = new MySqlCommand("UPDATE `characters` SET `CPoint` = " Client.CPs " WHERE `CharID` = " Client.IDDatabaseConnection.NewConnection());
    
Command .ExecuteNonQuery();
    
Command .Connection.Close();
    
Command .Connection.Dispose();

That should save the ConquerPoints you have. Place it in your Database.cs
tanelipe is offline  
Thanks
1 User
Old 07/15/2009, 16:39   #4
 
raidenx123's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 440
This is good and all but GoldCup is supposed to be won in GuildWar :/
raidenx123 is offline  
Old 07/15/2009, 17:55   #5
 
Yooha's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 47
Received Thanks: 5
i maked npc Give GoldCup and GoldPrize For LOTF
Yooha is offline  
Old 07/15/2009, 18:00   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Quote:
Originally Posted by raidenx123 View Post
This is good and all but GoldCup is supposed to be won in GuildWar :/

Just make it so like if your guild has pole, if your gl already took it, or if they didnt, and if your gl and you can get itto work
f0am is offline  
Old 07/15/2009, 20:32   #7
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
Well i dont have guildwar *****... im a new coder.... all im trying to do... is start up #C and just write outa my head so that i know how to work #C and so far its workin out well... im tryin to finish all my NPC's... come in on well... accept for MagicArtisan... I really need that... But U can edit it how u want.... U can add other things to it... but i only wanted to make it basic... I do plan on adding other stuff to mine.. ^.^ But its a good release for nubs... Now... can someone teach me how to make a NPC like MagicArtisan ... to up level of the gear..
imported_spitt_fire911 is offline  
Old 07/16/2009, 01:30   #8
 
raidenx123's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 440
Lol k anywase its C#

as in C (C) Sharp (#)
raidenx123 is offline  
Old 07/16/2009, 09:42   #9
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
#Edited - tanelipe
xellios is offline  
Old 07/16/2009, 21:39   #10
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
How to code skills in CoEmu?

If you go to MagicCost.. thats were all the Cost of everything is.. so thats the first thing you need

....

Then you got to SpellDamaged.cs

All this is in Calculations....
I will do a example...



GameServer>Calculations>MagicCost

Code:
				case 1000://Thunder - MP Check
      			{
      				int ManaCost = 0;
      				if(MagicLevel == 0)
      					ManaCost = 1;
      				else if(MagicLevel == 1)
      					ManaCost = 6;
      				else if(MagicLevel == 2)
      					ManaCost = 10;
      				else if(MagicLevel == 3)
      					ManaCost = 11;
      				else if(MagicLevel == 4)
      					ManaCost = 17;
      				if(CSocket.Client.CurrentMP < ManaCost)
      				{
      					CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[ERROR] Not enough mana!", Struct.ChatType.Top));
      					return false;
      				}
      				else
      				{
      					CSocket.Client.CurrentMP -= ManaCost;
      					CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CurrentMP, Struct.StatusTypes.Mp));
      					return true;
      				}
      			}
Now .... GameServer>Calculations>SpellDamage

Code:
	      		case 1000://Thunder
	      			{
	      				if(Level ==0)
	      				return 7;
	      				if(Level== 1)
	      				return 16;
	      				if(Level == 2)
	      					return 32;
	      				if(Level == 3)
	      					return 57;
	      				if(Level == 4)
	      					return 86;
	      				break;
	      			}
And thats the skill Thunder... Which is already coded... so just change that code into another skill... but ONLY magic skills... Tell me if that works.. I didn't test it.. but ya... lol
imported_spitt_fire911 is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Npc Sell Prize - GoldCup
08/19/2010 - CO2 PServer Guides & Releases - 18 Replies
Code for add Prize : http://www.elitepvpers.com/forum/co2-pserver-guides -releases/386516-release-goldprize-silverprize-bro nze-price-5165-a.html I do not know what to do .. #region Npc Prize case 51200: { if (Control == 0) { GC.AddSend(Packets.NPCSay("Hello, I sell the prize :)")); ...
[RELEASE]NPC that sells +12items for a common item
11/14/2009 - CO2 PServer Guides & Releases - 8 Replies
#REMOVED
[HELP] need help making moon goddess on source 5065 to give 2soc garm and goldcup.etc
06/01/2009 - CO2 Private Server - 0 Replies
I need help to make moon goddess give 2 soc garment and 2 soc goldcup and 2 soc gm robe please..PLease tell me how and what ID i need to put so she would do that..thanks
[HELP] need help with making the GM/PM moon goddess give 2 soc garm and goldcup..etc
05/31/2009 - CO2 Private Server - 0 Replies
need help with making the GM/PM moon goddess give 2 soc garm and goldcup..etc I want to make my market better because its all strange( weapon socketer npc is in market xD) and i need awesome fast translating.. Thanks



All times are GMT +1. The time now is 03:51.


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.