|
You last visited: Today at 01:40
Advertisement
Set StatPoints
Discussion on Set StatPoints within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
04/04/2010, 09:55
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Set StatPoints
Ex:
/str 45
/vit 45
/spi 45
/agi 45
Code:
if (Cmd[0] == "/str")
{
if (GC.MyChar.StatPoints >= ushort.Parse(Cmd[1]))
{
GC.MyChar.Str += ushort.Parse(Cmd[1]);
GC.MyChar.StatPoints -= ushort.Parse(Cmd[1]);
}
else
{
GC.MyChar.MyClient.LocalMessage(2005, "You don't have enough StatPoints!");
}
}
if (Cmd[0] == "/vit")
{
if (GC.MyChar.StatPoints >= ushort.Parse(Cmd[1]))
{
GC.MyChar.Vit += ushort.Parse(Cmd[1]);
GC.MyChar.StatPoints -= ushort.Parse(Cmd[1]);
}
else
{
GC.MyChar.MyClient.LocalMessage(2005, "You don't have enough StatPoints!");
}
}
if (Cmd[0] == "/spi")
{
if (GC.MyChar.StatPoints >= ushort.Parse(Cmd[1]))
{
GC.MyChar.Spi += ushort.Parse(Cmd[1]);
GC.MyChar.StatPoints -= ushort.Parse(Cmd[1]);
}
else
{
GC.MyChar.MyClient.LocalMessage(2005, "You don't have enough StatPoints!");
}
}
if (Cmd[0] == "/agi")
{
if (GC.MyChar.StatPoints >= ushort.Parse(Cmd[1]))
{
GC.MyChar.Agi += ushort.Parse(Cmd[1]);
GC.MyChar.StatPoints -= ushort.Parse(Cmd[1]);
}
else
{
GC.MyChar.MyClient.LocalMessage(2005, "You don't have enough StatPoints!");
}
}
|
|
|
04/04/2010, 11:27
|
#2
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
tkx : D
|
|
|
04/04/2010, 12:04
|
#3
|
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
|
Simple, Basic, Good for noobs +Thanks
|
|
|
04/04/2010, 12:05
|
#4
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Im supprised this isnt already in the source, its one of the first commands i write in so i can correctly test equiping without having to manually edit the database.
|
|
|
04/05/2010, 04:00
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Korvacs
Im supprised this isnt already in the source, its one of the first commands i write in so i can correctly test equiping without having to manually edit the database. 
|
Just wondering what does this have to do with have to do with manually editing the database. If this command isn't there then you would have to distribute the points manually by clicking the button thingies. Nothing to do with manually editing the database. -.-
|
|
|
04/05/2010, 04:23
|
#6
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by .Arco
Just wondering what does this have to do with have to do with manually editing the database. If this command isn't there then you would have to distribute the points manually by clicking the button thingies. Nothing to do with manually editing the database. -.-
|
you can set statpoints by going into the database and typing them in..
|
|
|
04/05/2010, 12:57
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by PeTe Ninja
you can set statpoints by going into the database and typing them in..
|
And this command is for distributing stat points instead of clicking the button multiple times.
|
|
|
04/05/2010, 15:22
|
#8
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Korvacs wasn't talking about clicking the button to distribute the points but using commands to get the required attributes so he could test gear equipping.
So something like this.
Code:
if (Cmd[0] == "/agi")
GC.MyChar.Agi = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/spi")
GC.MyChar.Spi = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/str")
GC.MyChar.Str = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/vit")
GC.MyChar.Vit = ushort.Parse(Cmd[1]);
|
|
|
04/05/2010, 19:08
|
#9
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Kiyono
Korvacs wasn't talking about clicking the button to distribute the points but using commands to get the required attributes so he could test gear equipping.
So something like this.
Code:
if (Cmd[0] == "/agi")
GC.MyChar.Agi = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/spi")
GC.MyChar.Spi = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/str")
GC.MyChar.Str = ushort.Parse(Cmd[1]);
if (Cmd[0] == "/vit")
GC.MyChar.Vit = ushort.Parse(Cmd[1]);
|
That's what I thought he might've been talking about.
|
|
|
04/06/2010, 00:28
|
#10
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by .Arco
Just wondering what does this have to do with have to do with manually editing the database. If this command isn't there then you would have to distribute the points manually by clicking the button thingies. Nothing to do with manually editing the database. -.-
|
It has everything to do with it, what you have done is exactly what i was describing, if this wasnt in then i would have to edit the database to set the values, or like you say spend forever giving myself specific values for stats, repeatedly clicking.
|
|
|
Similar Threads
|
StatPoints to reborn
10/15/2008 - CO2 Private Server - 2 Replies
How can I make to you will be reborn added +3 points StatPoints to climb each level?:confused:
|
[Help]StatPoints!!
09/30/2008 - CO2 Private Server - 7 Replies
Hello.
My str and vit and agi and spi not saving..
Help me,tranks a all!!:handsdown:
|
All times are GMT +1. The time now is 01:41.
|
|