[Question]

05/19/2010 03:29 4bidden969#1
Is There Commands That Modify Attck or Defense? Patch v1565
05/19/2010 04:00 scottdavey#2
Quote:
Originally Posted by 4bidden969 View Post
Is There Commands That Modify Attck or Defense?
In what source, be more specific not everyone is using the same source or variables..

Post in the thread you downloaded the source from.

Jees..
05/19/2010 05:02 pro4never#3
Assuming you aren't using binaries (which wouldn't be surprising seeing as you haven't simply looked in your source for the commands) then you could always code a command to give attack/defense easily enough.

Note: Pseudo code, does nothing.

case "buffme":
{
switch(Data[1])
case "on":
{

CSocket.Client.ExtraAttack += 999999
CSocket.Client.ExtraDefense += 999999
break;
}
case "off":
{
CSocket.Client.ExtraAttack = 0;
CSocket.Client.ExtraDefense = 0;
break;
}
default:
{
console.writeline("You didn't use either 'on' or 'off'!);
break;
}
break;
}

Then simply add the variable ExtraDefense/Attack to your character stats and then in the attack calculations near the end have it add your extra attack and remove the extra defense.

Very simple to do really...

Note: based off basic coemu coding style but again... not intended for actual use.