EUREKA!!! you are brilliant. I forgot that that was there. seems that stat and other functions will remove the hiding flag. it was killing the flag ... but not the gsn ... so now I have to just put the gsn strip in there, and add a whole bunch of log_hides
Thanks guys. ---------- Original Message ---------------------------------- From: Witt Hinton <[EMAIL PROTECTED]> Date: Tue, 6 Jan 2004 09:57:16 -0700 (MST) >Be sure to add the hiding but into handler.c (I think that's where it is) >and also check interp.c for the affect_stip of hiding whenever a command >is entered. Hide comes stock as a skill that only works while stationary. >Use a char and hide with that char then use your imm to stat them - don't >type anything with the hiding char until you stat them with the imm. >Hope that helps some, I had this same problem. >--Witt > >On Tue, 6 Jan 2004, Rick St Jean wrote: > >> I changed AFF_HIDE to AFF_HIDING hoping that it would solve the >> issue, but it didn't. I did a global find and replace. My bad >> for the confusion. The skill is 100%. When I hide the hiding affect >> is not showing. and it is not set in the bits. >> >> >> Affected by detect_hidden haste dark_vision regeneration >> Affected2 by vampire >> Spell: 'detect hidden' modifies none by 0 for 888 hours with bits >> detect_hidden, level 978. >> Spell: 'hide' modifies none by 0 for 999 hours with bits hiding, level 1000. >> >> >> >> >> >> >> ---------- Original Message ---------------------------------- >> From: "Jeremy Hill" <[EMAIL PROTECTED]> >> Date: Tue, 6 Jan 2004 10:20:59 -0600 >> >> >Make sure you have holylight off too, of course. >> > >> >-- Jeremy >> > >> > >> >----- Original Message ----- >> >From: "Jeremy Hill" <[EMAIL PROTECTED]> >> >To: <rom@rom.org> >> >Sent: Tuesday, January 06, 2004 10:19 AM >> >Subject: Re: Another affects bug >> > >> > >> >> > af.bitvector = AFF_HIDING; >> >> >> >> Let's start with the easy troubleshoots. Could it be as something small >> >> as >> >this >> >> (and other checks) supposed to be AFF_HIDE? Although you should be >> >> getting >> >> compiler errors if it's supposed to be AFF_HIDE since AFF_HIDING should be >> >> undeclared. Or maybe your test character's 'hide' skill is 1%, or they >> >> don't >> >> know it at all. Definitely a problem there. >> >> >> >> What do you mean 'will not work for chars'? Clarify. They are not >> >> hiding? >> >> Have you tried to see if the bit is setting correctly by stat <charname> >> >> after >> >> they have typed 'hide'? (In stat, you'll see a line "Affected by <XXX>". >> >> If >> >> 'hide' is not showing up here, then see below). If the hide bit is being >> >> set >> >> correctly, then you'll have to take a look through bool can_see (*ch,*ch) >> >> to >> >see >> >> if maybe that's the culprit. If not there, then repost, identifying what >> >> you >> >> have boiled the problem down to. >> >> >> >> - Jeremy >> >> >> >> If hide is not showing up in a stat, then there's a few potential >> >> problems. >> >> Firstly, there's a possibility that hide is not in the ascii table lookup. >> >Look >> >> in char *affect_bit_name( int vector ) for that. Or the bit is not being >> >> set >> >> correctly. >> >> >> >> >> >> ----- Original Message ----- >> >> From: "Rick St Jean" <[EMAIL PROTECTED]> >> >> To: <rom@rom.org> >> >> Sent: Tuesday, January 06, 2004 10:07 AM >> >> Subject: Another affects bug >> >> >> >> >> >> > I am working on actually cleaning up hide, trying to get >> >> > it to work properly, but I am having a problem getting >> >> > the IS_AFFECTED to check and see of the AFF_HIDE flag is set >> >> > on chars. This works fine when set on mobs with olc. >> >> > >> >> > All of the other equivalents of IS_AFFECTED work just fine >> >> > with the Q bit. I have an AFF_BURY (for vampires) does the same thing, >> >> > and >> >> works fine. it is an IS_AFFECTED2 bit. >> >> > >> >> > I pasted the skills and the code that strips them. For some >> >> > reason bury is perfect .. but hide will not work on chars. >> >> > >> >> > and insight would be wonderful. Thanks. Snippets below >> >> > >> >> > >> >> > ---------in skills.c >> >> > >> >> > void do_hide(CHAR_DATA * ch, char *argument) >> >> > { >> >> > AFFECT_DATA af; >> >> > >> >> > send_to_char("You attempt to hide.\n\r", ch); >> >> > >> >> > affect_strip(ch, gsn_hide); >> >> > >> >> > if (number_percent() < get_skill(ch, gsn_hide)) >> >> > { >> >> > af.where = TO_AFFECTS; >> >> > af.type = gsn_hide; >> >> > af.level = ch->level; >> >> > af.duration = ch->level; >> >> > af.location = 0; >> >> > af.modifier = 0; >> >> > af.bitvector = AFF_HIDING; >> >> > affect_to_char(ch, &af); >> >> > >> >> > check_improve(ch, gsn_hide, TRUE, 3); >> >> > } >> >> > else >> >> > { >> >> > check_improve(ch, gsn_hide, FALSE, 3); >> >> > } >> >> > return; >> >> > } >> >> > >> >> > void do_bury(CHAR_DATA * ch, char *argument) >> >> > { >> >> > AFFECT_DATA af; >> >> > >> >> > if (!IS_VAMPIRE(ch)) >> >> > { >> >> > send_to_char("You are to claustrophobic to bury yourself.\n\r", ch); >> >> > return; >> >> > } >> >> > >> >> > if (IS_SET(ch->in_room->room_flags, ROOM_INDOORS) || >> >> (ch->in_room->sector_type==SECT_INSIDE) || (ch->in_room->sector_type == >> >> SECT_WATER_SHALLOW) || (ch->in_room->sector_type == SECT_WATER_DEEP) >> >> > || (ch->in_room->sector_type == SECT_AIR) || (ch->in_room->sector_type >> >> > == >> >> SECT_WATER_DEEP_SURFACE)) >> >> > { >> >> > send_to_char("You cannot cover yourself here.\n\r", ch); >> >> > return; >> >> > } >> >> > >> >> > affect_strip(ch, gsn_bury); >> >> > >> >> > send_to_char("You attempt to bury yourself.\n\r", ch); >> >> > act_new("$n tries to bury $mself.", ch, NULL, NULL, TO_ROOM, >> >> > POS_RESTING, >> >> TRUE, C_DEFAULT); >> >> > >> >> > >> >> > if (number_percent() < get_skill(ch, gsn_bury)) >> >> > { >> >> > af.where = TO_AFFECTS2; >> >> > af.type = gsn_bury; >> >> > af.level = ch->level; >> >> > af.duration = ch->level; >> >> > af.location = 0; >> >> > af.modifier = 0; >> >> > af.bitvector = AFF_BURY; >> >> > affect_to_char(ch, &af); >> >> > >> >> > send_to_char("It is very dark, and you feel claustrophobic.\n\r", >> >> > ch); >> >> > check_improve(ch, gsn_bury, TRUE, 3); >> >> > } >> >> > else >> >> > { >> >> > check_improve(ch, gsn_bury, FALSE, 3); >> >> > } >> >> > >> >> > return; >> >> > } >> >> > >> >> > ----- in act_move.c >> >> > if (IS_AFFECTED(ch, AFF_HIDING)) >> >> > { >> >> > affect_strip(ch, gsn_hide); >> >> > send_to_char("You slip out of hiding.\n\r", ch); >> >> > } >> >> > >> >> > if (IS_AFFECTED2(ch, AFF_BURY)) >> >> > { >> >> > affect_strip(ch, gsn_bury); >> >> > send_to_char("You exume yourself.\n\r", ch); >> >> > } >> >> > >> >> > >> >> > -- >> >> > ROM mailing list >> >> > ROM@rom.org >> >> > http://www.rom.org/cgi-bin/mailman/listinfo/rom >> >> >> > >> > >> >-- >> >ROM mailing list >> >ROM@rom.org >> >http://www.rom.org/cgi-bin/mailman/listinfo/rom >> > >> >> > >