version 1.121 | | version 1.122 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.121 2005/04/27 21:43:28 ryo_saeba Exp $"; | | * "$Id: apply.c,v 1.122 2005/05/06 21:10:24 tchize Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
return; | | return; |
} | | } |
| | |
new_draw_info_format (NDI_UNIQUE, 0, op, | | |
"You open the %s and start reading.", tmp->name); | | |
| | |
/* GROS: Handle for plugin trigger event */ | | /* GROS: Handle for plugin trigger event */ |
if ((evt = find_event(tmp, EVENT_APPLY)) != NULL) | | if ((evt = find_event(tmp, EVENT_APPLY)) != NULL) |
{ | | { |
| | new_draw_info_format (NDI_UNIQUE, 0, op, |
| | "You open the %s and start reading.", tmp->name); |
CFParm CFP; | | CFParm CFP; |
int k, l, m; | | int k, l, m; |
uint32 n; | | uint32 n; |
| | |
if (findPlugin(evt->plugin)>=0) | | if (findPlugin(evt->plugin)>=0) |
((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); | | ((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); |
} | | } |
else | | else{ |
new_draw_info(NDI_UNIQUE | NDI_NAVY, 0, op, tmp->msg); | | char buf[HUGE_BUF]; |
| | char nicebuf[HUGE_BUF]; |
| | snprintf(buf,HUGE_BUF,"You open the %s and start reading.\n%s", tmp->name, tmp->msg); |
| | snprintf(nicebuf,HUGE_BUF,"%s\n%s", long_desc(tmp,op), tmp->msg); |
| | readable_message_type* msgType = get_readable_message_type(tmp); |
| | draw_ext_info_format(NDI_UNIQUE | NDI_NAVY, 0, op, |
| | msgType->message_type, msgType->message_subtype, |
| | "You open the %s and start reading.\n%s", |
| | "%s\n%s", |
| | long_desc(tmp,op), tmp->msg); |
| | } |
| | |
/* gain xp from reading */ | | /* gain xp from reading */ |
if(!QUERY_FLAG(tmp,FLAG_NO_SKILL_IDENT)) { /* only if not read before */ | | if(!QUERY_FLAG(tmp,FLAG_NO_SKILL_IDENT)) { /* only if not read before */ |