Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

exp pot code guide :D

Newbie Spellweaver
Joined
Sep 2, 2008
Messages
14
Reaction score
0
In your source, go into Character.cs and search for like "bool alive"
under it add

public byte dexp = 0;
public uint dexptime = 0;
so it looks like this, *i am starting it from the top, ending it at a random spot k?*:

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Timers;

namespace COServer_Project
{
public class Character
{
public Client MyClient;

public uint UID = 0;
public ushort Model = 0;
public ushort Avatar = 0;
public ushort RealModel = 0;
public ushort RealAvatar = 0;
public bool Alive = true;
public byte dexp = 0;
public uint dexptime = 0;
public uint SkillExpNull = 0;
public byte Stamina = 0;

public string Name = "";
public string PackedInventory = "";
public string PackedEquips = "";
public string PackedSkills = "";
public string PackedProfs = "";
public string PackedWHs = "";
public string PackedFriends = "";
public string PackedEnemies = "";
public bool Attacking = false;

public byte Level = 0;
public byte Job = 0;

public byte Action = 100;
public byte Direction = 3;
public byte PKMode = 0;

public byte RBCount = 0;
public ulong Exp = 0;
public uint WHSilvers = 0;
public uint Silvers = 0;
public uint CPs = 0;
public ushort PKPoints = 0;
public uint VP = 0;

public ushort Str = 0;
public ushort Agi = 0;
public ushort Vit = 0;
public ushort Spi = 0;
public ushort StatP = 0;
public ushort MaxHP = 0;
public ushort CurHP = 0;
public ushort Hair = 0;
public ushort ShowHair = 0;
public ushort LocX = 0;
public ushort LocY = 0;
public ushort LocMap = 0;
public ushort PrevX = 0;
public ushort PrevY = 0;
public ushort RealAgi = 0;
public double AddAtkPc = 1;
public double AddMAtkPc = 1;
public double AddExpPc = 1;
public double AddProfPc = 1;

public ushort Defense = 0;
public uint MDefense = 0;
public double MinAtk = 0;
public double MaxAtk = 0;
public double MAtk = 0;
public byte Dodge = 0;

------------------------------------------------------------------------------------------------------

Now search for "else if (ItemParts[0] == "725013")" in Character.cs
Add this:

else if (ItemParts[0] == "723017")
{
dexptime = 3600;
dexp = 1;
MyClient.SendPacket(General.MyPackets.Vital(UID, 19, dexptime));
RemoveItem(ItemUID);
}
When you are done it should look like this (starting at "else if (ItemParts[0] == "725013")" and ending where it should end:

else if (ItemParts[0] == "725013")

else if (ItemParts[0] == "723017")
{
dexptime = 3600;
dexp = 1;
MyClient.SendPacket(General.MyPackets.Vital(UID, 19, dexptime));
RemoveItem(ItemUID);
}
{
LearnSkill(1290, 0);
RemoveItem(ItemUID);
}

------------------------------------------------------------------------------------------------------

Now search the Point in CLient.cs Where you send the Welcome Message

And add under it:

foreach (DictionaryEntry DE in World.AllChars)
{
Character Cli = (Character)DE.Value;
if (Cli.Name == MyChar.Name && Cli.dexp == 1 && Cli.dexptime != 0)
{
int ID = int.Parse("19");
SendPacket(General.MyPackets.Vital((long)MyChar.UID, ID, MyChar.dexptime));
}
}
}


Add now in Database.cs in GetCharInfo:

Charr.dexptime = (uint)DR["dexptime"];
Charr.dexp = Convert.ToByte(DR["dexp"]);

And now at last first:

1. Add new Timer like that:

public static System.Timers.Timer General;

2.Add Timer Start Section

public static void General_System(object sender, ElapsedEventArgs e)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char != null && Char.dexp == 1)
{
if (Char.dexptime == 0)
{
Char.dexp = 0;
break;
}
int ID = int.Parse("19");
Char.dexptime -= 1;
Char.MyClient.SendPacket(General.MyPackets.Vital((long)Char.UID, ID, Char.dexptime));
}
}
}

And replace AddEXP with mine (Character.cs):

public bool AddExp(ulong Amount, bool CountMisc)
{
ulong dexp_exp1 = 0;
ulong dexp_exp2 = 0;
Ready = false;
if (CountMisc)
{
if (dexp == 1)
{
dexp_exp1 = (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
dexp_exp2 = dexp_exp1 / 2;
Exp += dexp_exp2;
}
else
{
Exp += (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
}
}
else
{
if (dexp == 1)
{
dexp_exp1 = Amount;
dexp_exp2 = dexp_exp1 / 2;
Exp += dexp_exp2;
}
else
{
Exp += (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
}
}
bool Leveled = false;

if (Exp > DataBase.NeededXP(Level) && Level < 130)
{
Leveled = true;
while (Exp > DataBase.NeededXP(Level) && Level < 130)
{
Exp -= DataBase.NeededXP(Level);
Level++;
if (Level == 3)
{
if (Job < 16 && Job > 9)
LearnSkill(1110, 0);
if (Job < 16 && Job > 9 || Job < 26 && Job > 19)
LearnSkill(1015, 0);
if (Job < 26 && Job > 19)
LearnSkill(1025, 0);
}
}
}
if (Leveled)
{
if (MyGuild != null)
MyGuild.Refresh(this);
DataBase.GetStats(this);
GetEquipStats(1, true);
GetEquipStats(2, true);
GetEquipStats(3, true);
GetEquipStats(4, true);
GetEquipStats(5, true);
GetEquipStats(6, true);
GetEquipStats(8, true);
MaxHP = BaseMaxHP();
MaxMP = MaxMana();
MinAtk = Str;
MaxAtk = Str;
Potency = Level;
GetEquipStats(1, false);
GetEquipStats(2, false);
GetEquipStats(3, false);
GetEquipStats(4, false);
GetEquipStats(5, false);
GetEquipStats(6, false);
GetEquipStats(8, false);
CurMP = MaxMP;
CurHP = MaxHP;

MyClient.SendPacket(General.MyPackets.Vital((long)UID, 13, Level));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 16, Str));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 17, Agi));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 15, Vit));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 14, Spi));
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, CurHP));
World.LevelUp(this);
}
MyClient.SendPacket(General.MyPackets.Vital((long)UID, 5, Exp));
Ready = true;

if (Leveled)
return true;
else
return false;
}




Taa daa!
 
Last edited:
Newbie Spellweaver
Joined
Sep 2, 2008
Messages
14
Reaction score
0
Yes, I am berry ebul lol:ibbanana:
 
Last edited:
Newbie Spellweaver
Joined
Jul 9, 2008
Messages
15
Reaction score
0
wer i find this?
And now at last first:

1. Add new Timer like that:

public static System.Timers.Timer General;

2.Add Timer Start Section

public static void General_System(object sender, ElapsedEventArgs e)
{
foreach (DictionaryEntry DE in World.AllChars)
 
Newbie Spellweaver
Joined
Sep 2, 2008
Messages
14
Reaction score
0
wer i find this?
And now at last first:

1. Add new Timer like that:

public static System.Timers.Timer General;

2.Add Timer Start Section

public static void General_System(object sender, ElapsedEventArgs e)
{
foreach (DictionaryEntry DE in World.AllChars)

that isnt full version
read the end
 
Newbie Spellweaver
Joined
Jul 9, 2008
Messages
15
Reaction score
0
@holl
Sorry, the more I'm not seeing anything after that :(
=O
 
Newbie Spellweaver
Joined
Aug 21, 2007
Messages
67
Reaction score
0
First go into Character.cs and search for like "bool alive"
under it add

public byte dexp = 0;
public uint dexptime = 0;

Now search for "else if (ItemParts[0] == "725013")" in Character.cs
and add at least

else if (ItemParts[0] == "723017")
{
dexptime = 3600;
dexp = 1;
MyClient.SendPacket(General.MyPackets.Vital(UID, 19, dexptime));
RemoveItem(ItemUID);
}

Now search the Point in CLient.cs Where you send the Welcome Message

And add under it:

foreach (DictionaryEntry DE in World.AllChars)
{
Character Cli = (Character)DE.Value;
if (Cli.Name == MyChar.Name && Cli.dexp == 1 && Cli.dexptime != 0)
{
int ID = int.Parse("19");
SendPacket(General.MyPackets.Vital((long)MyChar.UID, ID, MyChar.dexptime));
}
}
}

Add now in Database.cs in GetCharInfo:

Charr.dexptime = (uint)DR["dexptime"];
Charr.dexp = Convert.ToByte(DR["dexp"]);

And now at last first:

1. Add new Timer like that:

public static System.Timers.Timer General;

2.Add Timer Start Section

public static void General_System(object sender, ElapsedEventArgs e)
{
foreach (DictionaryEntry DE in World.AllChars)

if someone gives me a video that shows how to make reg pages add accs to MySQL database using PowerSourceCo source, i wont release the rest of it :ala:
This is not even yours and if you don't even know how to make an reg page and add accs to MySQL it really shows that your a noob. :| i saw the same thing also on ragezone until that person deleted it, so it's not possible you to code this. :|
 
Last edited:
Elite Diviner
Joined
Aug 19, 2006
Messages
415
Reaction score
0
rofl... don't copy other people's guides i got this guide written down also i believe and if ure gonna do that ill just post the whole guide ;)
 
Newbie Spellweaver
Joined
Aug 30, 2008
Messages
74
Reaction score
0
holl is a nub.
He always asks me for help on hamachi in english that I could say better when I was 10 and never got ny english lesson :showoff:
 
Last edited:
Newbie Spellweaver
Joined
Aug 30, 2008
Messages
74
Reaction score
0
Code:
Yes, I am berry ebul lol :ibbanana:
:poster_st Prove enough ?
 
Newbie Spellweaver
Joined
Sep 2, 2008
Messages
14
Reaction score
0
holl is a nub.
He always asks me for help on hamachi in english that I could say better when I was 10 and never got ny english lesson :showoff:

i dont even know who the you are! plus my keyboard was broken for 5 days and i just got a new 1, i typed by copy and pasting letters and using On-screen keyboard
 
Junior Spellweaver
Joined
Apr 19, 2008
Messages
170
Reaction score
0
omg thats supposed to a be a joke... lol noob :AR15firing: :native:


hey where exactly under the server message in client.cs do i place
Code:
foreach (DictionaryEntry DE in World.AllChars)
                                        {
                                            Character Cli = (Character)DE.Value;
                                            if (Cli.Name == MyChar.Name && Cli.dexp == 1 && Cli.dexptime != 0)
                                            {
                                                int ID = int.Parse("19");
                                                SendPacket(General.MyPackets.Vital((long)MyChar.UID, ID, MyChar.dexptime));
                                            }
                                        }
                                    }


and your public bool ADDEXP doesnt work it always gives me a The name Database does not exist in the current context????
 
Newbie Spellweaver
Joined
Jul 17, 2007
Messages
80
Reaction score
0
Hey Holls this is Rukia xDDD... iwas wondering if u can add in the exact steps/copy and paste trick. and also can u tell where to put the timer and where to put it in correctly please? thanks with much love xXxRukiaxXx
 
Back
Top