View Single Post
Old 09-03-2007, 01:06 AM   #1
tochi
New Member
 
Join Date: Sep 2007
Posts: 4
tochi is on a distinguished road
Unhappy npc summoning code bug (SMAUG)

howdy folks. i'm a bit of an amatuer coder here so be gentle.

we're working on developing a code that'll summon a large NPC to follow the player inside our MUD. basicly summon up a kind of silly homonculus. took bits from animate dead and a pre-existing summon familiar snippet and went to town.

the problem is that for some reason the NPC isn't showing up with the charm flag. it'll follow you, but you can't order it to do a single thing.

there've also been some odd crashes in our test MUD related to this, but the core dumps tell us nothing helpful and the body of the errors are the enigmatic 'called with threadlist_ix -1' sort.

anyway. here's the code itself. if anyone can figure out why the charm flag isn't turning itself on, it'd be great. if you can figure why it appears to make us volitile too, that'd be absotively astonishing.

code's totally free to use and modify, too. :3
tochi is offline   Reply With Quote