Talk:Juiblex

From NetHackWiki
Revision as of 19:26, 1 June 2012 by Qazmlpok (talk | contribs) (Life Saving)
Jump to navigation Jump to search

Last night I tried digging my way down in Juiblex's swamp. I stood next to a moat while zapping a wand of digging, and the dug hole was filled with water, and I nearly drowned. I am wondering if this also happens when digging when the moat is not a square next to me. --Azzkikr 08:20, 28 February 2007 (UTC)

I've lost great amounts of potions and scrolls with this one. Always find a square surrounded by solid ground. Progo 13:51, 28 February 2007 (UTC)

"If the altar is chaotic or unaligned, a demon will be summoned under some circumstances (need to document these!). The demon will be friendly if you're chaotic and hostile otherwise." -- Was a chaotic monk, hallucinating, hadn't prayed at all before and I sacrificed on a chaotic altar something..think it was a were-rat. Got message "The blood covers the altar, you are terrified". Jubilex was summoned and I died. Qn: so can anyone explain what happened?—The preceding unsigned comment was added by 164.78.248.57 (talkcontribs) .

See altar for the skinny on sacrifices of all kinds. Were-creatures count as human when sacrificing. You sacrificed a creature of your own race on a chaotic altar. If you were chaotic, then Juiblex was generated as peaceful; but you were hallucinating and perhaps hit him by mistake.--Ray Chason 13:44, 5 July 2007 (UTC)

I was just wondering what the use of Juiblex being teleported to the alter could be, or if it is useful in any way.NerdLord 20:06, 7 May 2008 (UTC)

See here for details, but basically demon lord summoning is useful to chaotics because it makes these powerful guys peaceful so they don't kill you later on. For neutrals and lawfuls it's just an immediate, fatal punishment for saccing your own race. So don't do that. --Andronikus 20:48, 8 May 2008 (UTC)

Life Saving

I've had Juiblex life-save on me once. It was on NAO, so I could dig up the TTYREC if absolutely necessary. Despite this, the list of vanquished monsters reported that he died only once, so this probably isn't of much interest to extinctionists. --Darth l33t 21:17, 18 February 2011 (UTC)

Please do. People keep inserting this myth about no head - in fact, the monster amulet code does not check for body parts at all. --Tjr (talk) 09:03, 1 June 2012 (UTC)
Juiblex can be generated with an amulet of life saving: only animal body, eploding attacks, mindlessness, ghost, and non-living would exclude that (muse.c#rnd_misc_item, Makemon.c#line658).
He will wear any such amulets, since there is no reference to any kind of body parts in worn.c#m_dowear_type, its caller Source:Worn.c#line376, or its caller Makemon.c#line1081. --Tjr (talk) 09:56, 1 June 2012 (UTC)
It seems like the problem is that he won't wear an amulet of life saving that he finds, because he never picks them up. Dropping it in his stomach puts it in his inventory, but that doesn't make him wear it (the same was true of a purple worm). I'm guessing the function for a monster to wear an amulet is only called when the monster actually picks the item up, not when the player drops it in its inventory (according to nymph, this is true).
He definitely can wear them - I just made him do so in SLASH'EM, by dropping one in his stomach, polymorphing him as a genetic engineer, and killing the polymorphed form. The polymorphed form put the amulet on, and Juiblex continued wearing it. Obviously this isn't possible in a normal game, but it is a possible, albeit very tedious, way to kill Juiblex multiple times in SLASH'EM.
As for why he never picks them up, I think it's because he's covetous. Items are picked up when a monster moves onto them, but Juiblex never moves onto items like a normal monster. I can't get Yeenoghu or a quest nemesis to pick one up either; I'm guessing the quest nemesis picking up the quest artifact is a scripted thing.
Strangely, I'm getting the same thing of only having killed him once when he was life saved. I'm not sure why that is. -Ion frigate (talk) 10:58, 1 June 2012 (UTC)
He also seems never to be generated with any items. I just generated a bunch of Juiblexes (Juiblices?) and probed them; none of them seem to be carrying anything. I'm not seeing anything in makemon.c to suggest why this might be, though. -Ion frigate (talk) 11:19, 1 June 2012 (UTC)
I'm quite sure Juiblex was once generated with a wand of digging in one of my games; I might see if I can find the ttyrec for this. --Bcode (talk) 11:23, 1 June 2012 (UTC)
The ttyrec (near frame 2130) shows Juiblex indeed was generated with a wand of digging. --Bcode (talk) 11:46, 1 June 2012 (UTC)
Ok, maybe I just didn't make enough Juiblices. Still, it seems as though, if he were being generated with an amulet of life saving 1/80 or 1/200 of the time (1/40 chance, 1/2 or 1/5 chance for a misc. item, depending which stat is used for the level check there), we'd have heard more about it. -Ion frigate (talk) 12:12, 1 June 2012 (UTC)
The "monster puts things on" function worn.c#m_dowear takes care of all inventory whenever it is called. The most important calls to m_dowear are:
  1. dog_invent (pets only)
  2. makemon (one call at creation time)
  3. mpickstuff
  4. newcham (shapeshifters only)
  5. bhitm (if zapped with slow monsters or speed monsters)
You could prep Juiblex with a bunch of life saving amulets. Then you could slow or speed him, watch him put things on, and re-kill him. Repeat until you have your 120 kills. --Tjr (talk) 18:02, 1 June 2012 (UTC)
Confirmed that this will make him wear amulets; his MR is a problem but I suppose casting spells at him multiple times is nothing compared to the effort required to get 120 amulets in the first place. Fortunately you do not need to alternate spells; casting speed monster while he is already fast works fine.
However, killing him and letting him be lifesaved isn't counting as a kill. And the source agrees with this; the death count of a monster is incremented in mondead, which returns near the start of the function if the monster was lifesaved. So while this will enable you to kill juiblex 120 times, it will still count as one in the monsters vanquished screen. -- Qazmlpok (talk) 19:26, 1 June 2012 (UTC)