- // This function is for increasing your stats
- bool CWorldServer::pakAddStats( CPlayer* thisclient, CPacket* P )
- {
- BYTE statid = GETBYTE((*P), 0);
- int statval = -1;
- int nstatval = 0;
- switch(statid)
- {
- case 0: nstatval=(int)floor((float)thisclient->Attr->Str/5); break;
- case 1: nstatval=(int)floor((float)thisclient->Attr->Dex/5); break;
- case 2: nstatval=(int)floor((float)thisclient->Attr->Int/5); break;
- case 3: nstatval=(int)floor((float)thisclient->Attr->Con/5); break;
- case 4: nstatval=(int)floor((float)thisclient->Attr->Cha/5); break;
- case 5: nstatval=(int)floor((float)thisclient->Attr->Sen/5); break;
- }
- if (thisclient->CharInfo->StatPoints>=nstatval && nstatval < ((Config.MaxStat/5)+1))
- {
- switch(statid)
- {
- case 0: statval=++thisclient->Attr->Str; break;
- case 1: statval=++thisclient->Attr->Dex; break;
- case 2: statval=++thisclient->Attr->Int; break;
- case 3: statval=++thisclient->Attr->Con; break;
- case 4: statval=++thisclient->Attr->Cha; break;
- case 5: statval=++thisclient->Attr->Sen; break;
- }
- }
- if (statval>0)
- {
- thisclient->CharInfo->StatPoints-=nstatval;
- BEGINPACKET( pak, 0x7a9 );
- ADDBYTE( pak, statid );
- ADDWORD( pak, (unsigned short)statval );
- thisclient->client->SendPacket( &pak );
- }
- thisclient->SetStats( );
- return true;
- }
Hi Someone Please Help Me
Just Want To Know If It Is Possible To Increase The Stat Requirement Value
Example
I Have Str 15 And I Need To Have 3 Stat Points To Make It 16 And The Higher The Stat The Higher Stat Requirement It Needs
Sample Again I Have 300 Str To Make It 301 I Need 1000 Stat Points
Is This Possible ?
Thanks In Advance