Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

Conquer Releases Discuss, exp pot code guide :D at Conquer Online forum; In your source, go into Character.cs and search for like "bool alive" under it add public byte dexp = 0; ...




Reply
Thread Tools
Release exp pot code guide :D
 
 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-13-2008, 02:01 AM
 
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.UI D, 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(1**** 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 by holl; 09-15-2008 at 01:26 AM.
 
 
permalink
 

RaGEZONE is proudly sponsored by
 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-13-2008, 02:04 AM
 
Yes, I am berry ebul lol:ibbanana:

Last edited by holl; 09-13-2008 at 03:12 AM.
 
 
permalink
 

 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: Apr 2008
Location: on the corner next to your mom
Posts: 170
09-13-2008, 02:31 AM
 
Quote: Originally Posted by holl View Post
Yes, I am berry ebul lol:ibbanana:
i could give u a very good website with a reg page (like exact copy of conquers webby) is that good enuff?
 
 
permalink
 


 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-13-2008, 02:34 AM
 
shw me a pic of 1:vegeta:
 
 
permalink
 

 
RaGEZONER

Rank: Omicron


Reply With Quote
 
Join Date: Feb 2008
Posts: 87
09-13-2008, 02:36 AM
 
Sup dude add me on msn taylor2846@hotmail.com
 
 
permalink
 

 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: Apr 2008
Location: on the corner next to your mom
Posts: 170
09-13-2008, 02:50 AM
 
welll hes the file :/ [Only Registered and Activated Users Can See Links. Click Here To Register...]
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Jul 2008
Location: USA
Posts: 15
09-13-2008, 02:52 AM
 
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)
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-13-2008, 03:11 AM
 
Quote: Originally Posted by minino09 View Post
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
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Jul 2008
Location: USA
Posts: 15
09-13-2008, 03:18 AM
 
@holl
Sorry, the more I'm not seeing anything after that :(
=O
 
 
permalink
 

 
Average Member

Rank: Omicron


Reply With Quote
 
Join Date: Aug 2007
Posts: 67
09-13-2008, 08:58 AM
 
Quote: Originally Posted by holl View Post
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.UI D, 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 by ryuchetval; 09-13-2008 at 11:54 AM.
 
 
permalink
 

 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2007
Posts: 28
09-13-2008, 09:49 AM
 
this guide sucks !
 
 
permalink
 

 
RaGEZONER

Rank: Omicron


Reply With Quote
 
Join Date: Aug 2008
Posts: 87
09-13-2008, 01:37 PM
 
yes it does
 
 
permalink
 

 
Account Upgraded | Title Enabled!

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: illlinois
Posts: 428
09-13-2008, 02:22 PM
 
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 ;)
 
 
permalink
 

 
RaGEZONER

Rank: Omicron


Reply With Quote
 
Join Date: Aug 2008
Posts: 87
09-14-2008, 06:01 PM
 
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 by Basjee; 09-14-2008 at 06:04 PM. Reason: holl is a nub.
 
 
permalink
 

 
RaGEZONER

Rank: Omicron


Reply With Quote
 
Join Date: Aug 2008
Posts: 87
09-14-2008, 06:06 PM
 
Code:
Yes, I am berry ebul lol :ibbanana:
:poster_st Prove enough ?
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-14-2008, 08:50 PM
 
Quote: Originally Posted by Basjee View Post
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
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-14-2008, 09:04 PM
 
Quote: Originally Posted by Basjee View Post
Code:
Yes, I am berry ebul lol :ibbanana:
:poster_st Prove enough ?
omg thats supposed to a be a joke... lol noob :AR15firing: :native:
 
 
permalink
 

 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: Apr 2008
Location: on the corner next to your mom
Posts: 170
09-14-2008, 09:43 PM
 
Quote: Originally Posted by holl View Post
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????
 
 
permalink
 

 
The Omega

Rank: New Blood


Reply With Quote
 
Join Date: Jul 2007
Location: california
Posts: 106
09-14-2008, 10:19 PM
 
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
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Sep 2008
Posts: 14
09-14-2008, 10:56 PM
 
ugh lol, il try
 
 
permalink
 

 
Average Member

Rank: Omicron


Reply With Quote
 
Join Date: Jul 2008
Posts: 54
09-15-2008, 12:35 AM
 
Rofl. This code is messed up. You needa fix it up.
 
 
permalink
 

 
Account Upgraded | Title Enabled!

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: illlinois
Posts: 428
09-15-2008, 02:18 AM
 
Quote: Originally Posted by iHaveALife View Post
Rofl. This code is messed up. You needa fix it up.
alrdy have lolz

anywayz for any1 who wants this just wait untill i release my(loftco) based source...
 
 
permalink
 

 
The Omega

Rank: New Blood


Reply With Quote
 
Join Date: Jul 2007
Location: california
Posts: 106
09-15-2008, 06:24 AM
 
well it works for me u jsut have to redit it a bit xD
 
 
permalink
 

 
Average Member

Rank: Omicron


Reply With Quote
 
Join Date: Aug 2007
Posts: 67
09-15-2008, 07:11 PM
 
can anyone put a better xp pot this makes my source don't let ppl log in...and i tried many things...also you forgot the timer like general.time interval etc...post that...
 
 
permalink
 

 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: Apr 2008
Location: on the corner next to your mom
Posts: 170
09-15-2008, 08:13 PM
 
Quote: Originally Posted by ryuchetval View Post
can anyone put a better xp pot this makes my source don't let ppl log in...and i tried many things...also you forgot the timer like general.time interval etc...post that...

i agree many people release the mini versions and they end up not working rite cuz they dont tell how to do it and good coders dont release :/
 
 
permalink
 

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 01:30 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008





 
Evade Blackbelt School