version 1.53 | | version 1.54 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.53 2004/07/16 22:24:10 ryo_saeba Exp $"; | | * "$Id: skills.c,v 1.54 2005/02/20 20:43:16 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if ((evt = find_event(item, EVENT_TRIGGER)) != NULL) { | | if ((evt = find_event(item, EVENT_TRIGGER)) != NULL) { |
CFParm CFP; | | CFParm CFP; |
int k, l, m; | | int k, l, m; |
| | uint32 n; |
k = EVENT_TRIGGER; | | k = EVENT_TRIGGER; |
l = SCRIPT_FIX_ALL; | | l = SCRIPT_FIX_ALL; |
m = 0; | | m = 0; |
| | n = 0; |
CFP.Value[0] = &k; | | CFP.Value[0] = &k; |
CFP.Value[1] = pl; | | CFP.Value[1] = pl; |
CFP.Value[2] = item; | | CFP.Value[2] = item; |
CFP.Value[3] = NULL; | | CFP.Value[3] = NULL; |
CFP.Value[4] = msg; | | CFP.Value[4] = msg; |
CFP.Value[5] = &m; | | CFP.Value[5] = &n; |
CFP.Value[6] = &m; | | CFP.Value[6] = &m; |
CFP.Value[7] = &m; | | CFP.Value[7] = &m; |
CFP.Value[8] = &l; | | CFP.Value[8] = &l; |
| | |
{ | | { |
CFParm CFP; | | CFParm CFP; |
int k, l, m; | | int k, l, m; |
| | uint32 n; |
k = EVENT_THROW; | | k = EVENT_THROW; |
l = SCRIPT_FIX_ACTIVATOR; | | l = SCRIPT_FIX_ACTIVATOR; |
m = 0; | | m = 0; |
| | n = 0; |
CFP.Value[0] = &k; | | CFP.Value[0] = &k; |
CFP.Value[1] = op; | | CFP.Value[1] = op; |
CFP.Value[2] = throw_ob; | | CFP.Value[2] = throw_ob; |
CFP.Value[3] = NULL; | | CFP.Value[3] = NULL; |
CFP.Value[4] = NULL; | | CFP.Value[4] = NULL; |
CFP.Value[5] = &m; | | CFP.Value[5] = &n; |
CFP.Value[6] = &m; | | CFP.Value[6] = &m; |
CFP.Value[7] = &m; | | CFP.Value[7] = &m; |
CFP.Value[8] = &l; | | CFP.Value[8] = &l; |