version 1.77 | | version 1.78 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.77 2006/08/20 09:59:28 ryo_saeba Exp $"; | | * "$Id: plugins.c,v 1.78 2006/08/27 14:09:18 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
object* op; | | object* op; |
void* rv; | | void* rv; |
static int ri; | | static int ri; |
| | static float rf; |
| | |
va_start(args, type); | | va_start(args, type); |
| | |
| | |
*type = CFAPI_INT; | | *type = CFAPI_INT; |
break; | | break; |
| | |
case CFAPI_OBJECT_PROP_MOVE_TYPE: | | case CFAPI_OBJECT_PROP_ATTACK_MOVEMENT: |
rv = &op->attack_movement; | | rv = &op->attack_movement; |
*type = CFAPI_INT; | | *type = CFAPI_INT; |
break; | | break; |
| | |
| | |
case CFAPI_OBJECT_PROP_EXP: | | case CFAPI_OBJECT_PROP_EXP: |
rv = &op->stats.exp; | | rv = &op->stats.exp; |
*type = CFAPI_LONG; | | *type = CFAPI_SINT64; |
break; | | break; |
| | |
case CFAPI_OBJECT_PROP_OWNER: | | case CFAPI_OBJECT_PROP_OWNER: |
| | |
rv = &ri; | | rv = &ri; |
*type = CFAPI_INT; | | *type = CFAPI_INT; |
break; | | break; |
| | case CFAPI_OBJECT_PROP_MOVE_TYPE: |
| | ri = op->move_type; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_BLOCK: |
| | ri = op->move_block; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_ALLOW: |
| | ri = op->move_allow; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_ON: |
| | ri = op->move_on; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_OFF: |
| | ri = op->move_off; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_SLOW: |
| | ri = op->move_type; |
| | rv = &ri; |
| | *type = CFAPI_CHAR; |
| | break; |
| | case CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY: |
| | rf = op->move_slow_penalty; |
| | rv = &rf; |
| | *type = CFAPI_FLOAT; |
| | break; |
default: | | default: |
*type = CFAPI_NONE; | | *type = CFAPI_NONE; |
break; | | break; |
| | |
object* op; | | object* op; |
int property; | | int property; |
void* rv; | | void* rv; |
| | sint64 s64arg; |
partylist* partyarg; | | partylist* partyarg; |
va_start(args, type); | | va_start(args, type); |
| | |
| | |
op->move_status = iarg; | | op->move_status = iarg; |
break; | | break; |
| | |
case CFAPI_OBJECT_PROP_MOVE_TYPE: | | case CFAPI_OBJECT_PROP_ATTACK_MOVEMENT: |
iarg = va_arg(args, int); | | iarg = va_arg(args, int); |
op->attack_movement = iarg; | | op->attack_movement = iarg; |
break; | | break; |
| | |
{ | | { |
char* skillname; | | char* skillname; |
| | |
larg = va_arg(args, long); | | s64arg = va_arg(args, sint64); |
skillname = va_arg(args, char*); | | skillname = va_arg(args, char*); |
iarg = va_arg(args, int); | | iarg = va_arg(args, int); |
change_exp(op, larg, skillname, iarg); | | change_exp(op, s64arg, skillname, iarg); |
} | | } |
break; | | break; |
| | |