Now, search for public void RemoveItem, and under that void, add this:
Quote:
public void EPotTimer_Elapsed(object sender, ElapsedEventArgs e)
{
EPot = false;
MyClient.SendPacket(General.MyPackets.SendMsg(MyCl ient.MessageId, "SYSTEM", Name, "Your exppot is over, please buy a new one to refill!", e2000));
}
Now,we need to code so you actually get doubleexp. Search for public bool AddExp, and replace from public bool AddExp to bool Leveled = false , with this:
Ty emme. just one problem with this public Timer EPotTimer = new Timer();
Error 1 'Timer' is an ambiguous reference between 'System.Timers.Timer' and 'System.Threading.Timer' C:\Documents and Settings\Owner\Desktop\ShadowCO\COServerProject\Ch aracter.cs 135 16 COServerProject
Error 1 'Timer' is an ambiguous reference between 'System.Timers.Timer' and 'System.Threading.Timer' D:\Desktop\UltimateCo\Character.cs 92 16 COServerProject
Error 1 'Timer' is an ambiguous reference between 'System.Timers.Timer' and 'System.Threading.Timer' D:\Desktop\UltimateCo\Character.cs 92 16 COServerProject
sulutions??
heyyy dumb dumb the guy ^^^ a post said how to do it public System.Timers.Timer EPotTimer = new System.Timers.Timer(); instead of that line and btw ty moderator for ur help. Now i just gotta figure out why i got like an error saying Blessed isn't in the current dictionary thing lol
heyyy dumb dumb the guy ^^^ a post said how to do it public System.Timers.Timer EPotTimer = new System.Timers.Timer(); instead of that line and btw ty moderator for ur help. Now i just gotta figure out why i got like an error saying Blessed isn't in the current dictionary thing lol
no durr but i was meaning once i changed that thing then it was saying blah blah blah Blessing isn't in the current dictionary. Bless from the heaven blessing thing but i think i figured it out but ill go onto the right place but well okay i made it like this public bool Blessed = true; or should it be null or somthing else but going onto right place and asking
Okay,here are some features I'd like to give you,about exppot.
The first is, when exppot runs out,it brings up an NPC chat and ask you if you want to automaticlly use a new exppot,for a fee of 27 CPs.
The other one is, unlike ConquerOnline( TQ ), you can join two exppots into one,lets say you have 37 minutes left on your exppot,you can use a new one and get a total time of 1 hour and 37 minutes.
First one:
Search for //--This code stops exppot time-- , and above that , add:
Code:
if (EPotXP == 8)
{
if (EPotRate)
{
MyClient.CurrentNPC = 63421;
MyClient.SendPacket(General.MyPackets.NPCSay("Your exppot has ended,and you now have normal Exp."));
MyClient.SendPacket(General.MyPackets.NPCSay("Would you like to use 27 CPs to active a new ExpPot?"));
MyClient.SendPacket(General.MyPackets.NPCLink("Yeah,why not", 1));
MyClient.SendPacket(General.MyPackets.NPCLink("No, thank you", 255));
MyClient.SendPacket(General.MyPackets.NPCSetFace(30));
MyClient.SendPacket(General.MyPackets.NPCFinish());
}
}
Now, search for :
if (CurrentNPC == 44)
Above it , add :
Code:
if (CurrentNPC == 63421)
{
if (Control == 1)
{
if (MyChar.CPs >= 27)
{
MyChar.EPotXP = 3600;
MyChar.EPotXP2 = MyChar.EPotXP * 2;
MyChar.EPotRate = true;
SendPacket(General.MyPackets.Vital(MyChar.UID, 19, MyChar.EPotXP));
SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
World.UpdateSpawn(MyChar);
MyChar.CPs -= 27;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
}
else
{
SendPacket(General.MyPackets.NPCSay("You do not have 27 CPs"));
SendPacket(General.MyPackets.NPCLink("Ah shit, sorry!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
[Release]ExpBall+ExpPot Experience Gain Fix[LOTF] 07/14/2009 - CO2 PServer Guides & Releases - 8 Replies Ok... Well this isn't really anything too spectacular, but I know I myself got extremely annoyed at the fact that when I used an ExpBall while using an ExpPot, that I'd gain like 10x the normal amount of experience. So I went and made an adjustment to the ExpBall coding to change it.
Just so you guys know, my number may not be 100% accurate on this, I did make changes to my expballs, because I found after level 110, you gained too much, and just tried to remember the original rates.
By...
[Guide]ExpPot 11/13/2008 - CO2 PServer Guides & Releases - 17 Replies Heyaa
i got work Exp potion in PowerSourceCO
-Credits for Keving and for me :D
here is the code
in Character.cs search for
now in Character.cs search for
how to change prayingstone/exppot time 05/14/2007 - CO2 Exploits, Hacks & Tools - 8 Replies like this u change prayingstone/exppotion time
http://i3.tinypic.com/66n25g4.jpg