Worth command [by Taerin]
Snippet Posted Thursday, June 15th @ 03:39:16 PM, by Brandon Brown in the Players dept.
Brad Hegel writes, 'Originally by Taerin of Wintermute. I take no credit for this as i just rewrote it a little to get it too work better.'
Worth command
Originally by Taerin of Wintermute.  I take no credit for this as i just rewrote
it a little to get it too work better.

Just put this in act.informative.c
don't forget to add the stuff to interpreter.c for it

/*Worth command by Taerin of Wintermute*/
ACMD(do_worth)
{


  if (!IS_NPC(ch) && (GET_LEVEL(ch) < LVL_IMMORT)) {
  sprintf(buf1, "You have %d gp on hand and %d gp in the bank.\r\n",
           GET_GOLD(ch), GET_BANK_GOLD(ch));
      send_to_char(buf, ch)
      sprintf(buf, "You have %d experience.\r\n", GET_EXP(ch));
      send_to_char(buf, ch)     
      sprintf(buf, "You need %d exp to reach your next level.\r\n",
        level_exp(GET_CLASS(ch), GET_LEVEL(ch) + 1) - GET_EXP(ch));
      send_to_char(buf, ch)
  }
  else
  {
    sprintf(buf1, "You have %d gp on hand and %d gp in the bank.\r\n",
          GET_GOLD(ch), GET_BANK_GOLD(ch));
  send_to_char(buf,ch);
  }
return;
}

<< FTP Uploads 2000//0/6/ | Reply | Threaded >>

 


Related Links
  Brad Hegel
Related Articles
More by bbrown
 
 

Quick Links
 
The CircleMUD FAQ
The CircleMUD home page
Alex's Snippets
Wintermute Snippets
CircleMUD Bug Reporting or Help
CircleMUD List Archives
CircleMUD Resources
Death Gate's Scripts
(Author of C conversion)
Sammy's code site
Erwin S. Andreasen's page
(Author of mudFTP and other goodies)
Death's Gate Scripting site
Help for CircleMUD in Windows
The OasisOLC Maintenance Effort
George's Random Stuff
Imaginary Realities
MUD Dictionary