RE: 2004-07-20 - By Eos
Back
You only require a check in damage(). No other function actually causes damages. A substate check will not succeed. A timer check is required, just like the one in interpret()
if ( (timer=get_timerptr(ch, TIMER_DO_FUN)) != NULL ) { int tempsub;
tempsub = ch->substate; ch->substate = SUB_TIMER_FORCED_ABORT; (timer->do_fun)(ch,""); if ( char_died(ch) ) return rCHAR_DIED; if ( ch->substate != SUB_TIMER_CANT_ABORT ) { ch->substate = tempsub; extract_timer( ch, timer ); } else ch->substate = tempsub; }
You really must learn not to ask us to play 'guess what I did wrong without me ever showing you my code', it does not encourage assistance.
|?----Original Message-- -- |?From: Evil jay [mailto:e_viljay@(protected)] |?Sent: Tuesday, July 20, 2004 6:46 AM |?To: smaug@(protected) |?Subject: |? |? |?I've been trying to create a new SUB_TIMER_FORCED_ABORT, |?which aborts a |?player from |?searching or detraping when damaged by a player or mob in |?some way (not a |?miss). Added |?the timer to mud.h, made case checks for it in the |?appropriate skills, and |?set substate |?checks (SUB_NONE) in one_hit, dam(..etc, to change substate to |?SUB_TIMER_FORCED_ABORT. |?Damage to the player isnt aborting the skill(s). Any suggestions? |? |?__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ |?Don?t just search. Find. Check out the new MSN Search! |?http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |? |? |?
|
|