Corpses

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago #7229 by JTP
Corpses was created by JTP
Hmm ok im playing with even more corpse messages... i made a switch:

  switch (killedbytype) {

  case  SPELL_FIRESHIELD:
  case  SPELL_FIREBALL:sprintf(spec_desc,"smoldering remains of %s are",
                        (IS_NPC(ch) ? ch->player.short_descr : GET_NAME(ch)));
                        break;
  default:sprintf(spec_desc,"corpse of %s is",
                (IS_NPC(ch) ? ch->player.short_descr : GET_NAME(ch)));
                break;
  }


changed:
 } else {
  corpse->name = strdup("corpse");
  snprintf(buf2, sizeof(buf2), "The %s lying here.", spec_desc);      <<<---New
/*  snprintf(buf2, sizeof(buf2), "The corpse of %s is lying here.", GET_NAME(ch)); */ <<<--- Old
  corpse->description = strdup(buf2);

  snprintf(buf2, sizeof(buf2), "the corpse of %s", GET_NAME(ch));
  corpse->short_description = strdup(buf2);
}







Got it to compile, i had to add:
void make_corpse(struct char_data *ch, int killedbytype);

void raw_kill(struct char_data *ch,int killedbytype);

void die(struct char_data *ch,int killedbytype);

Also i had to add:
make_corpse(ch, killedbytype);

And added 0 to a bunch of die places and raw_kill like: raw_kill(vict, ch, 0);
What is best to add 0 or NULL ??


But killing a mob with fireball just got the corpse the default message....Any ideas ?? 

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #7231 by WhiskyTest
Replied by WhiskyTest on topic Corpses
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago - 2 years 9 months ago #7232 by JTP
Replied by JTP on topic Corpses
Please login to view the answers
Last edit: 2 years 9 months ago by JTP.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago - 2 years 9 months ago #7245 by JTP
Replied by JTP on topic Corpses
Please login to view the answers
Last edit: 2 years 9 months ago by JTP.

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • LuminariMUD Developer
More
2 years 9 months ago #7246 by zusuk
Replied by zusuk on topic Corpses
Please login to view the answers

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago #7247 by JTP
Replied by JTP on topic Corpses
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • LuminariMUD Developer
More
2 years 9 months ago #7248 by zusuk
Replied by zusuk on topic Corpses
Please login to view the answers

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago #7249 by JTP
Replied by JTP on topic Corpses
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • LuminariMUD Developer
More
2 years 9 months ago #7250 by zusuk
Replied by zusuk on topic Corpses
Please login to view the answers

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 9 months ago #7251 by JTP
Replied by JTP on topic Corpse
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #7254 by WhiskyTest
Replied by WhiskyTest on topic Corpse
Please login to view the answers
Attachments:
The following user(s) said Thank You: thomas, JTP

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds