The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regs List
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #1
Regs List
Time to share some scripts we use frequently on TUP. Some may be in need of updating.

Simple script to show regs in your backpack, highlights what you are low on. We don't allow Razor on our server or similar tools, so this can be useful.

Use: .regs

Code:
//********************************************************************//
//                          REAGENT LIST                              //
//       DISPLAYS A LIST OF REGS A PLAYER HAS IN THEIR BACKPACK       //
//********************************************************************//
[FUNCTION status_reg_amtcolor]
  LOCAL.CNT    = <eval <rescount i_reag_<args>>>
  if ( 0 )
  elseif ( <LOCAL.CNT> <  10 )
     RETURN 025
  elseif ( <LOCAL.CNT> <  20 )
     RETURN 025
  else
     RETURN 0
  endif

[FUNCTION status_reg_namecolor]
  LOCAL.CNT    = <eval <rescount i_reag_<args>>>
  if ( 0 )
  elseif ( <LOCAL.CNT> <  10 )
     RETURN 025
  elseif ( <LOCAL.CNT> <  20 )
     RETURN 0
  else
     RETURN 0
  endif

[FUNCTION status_reg_itemnum]
  RETURN <eval <serv.itemdef(i_reag_<args>).id>>

[FUNCTION regs]
  if ( <SRC.ISDEAD> )
     src.sysmessage You're dead.
     return 1
  endif
  If <ARGN1> = 1
     DIALOG d_reagents 1
  ELSEIF <ARGN1> = 2
     DIALOG d_reagents 2
  ELSEIF <ARGN1> = 3
     DIALOG d_reagents 3
  ELSE
     DIALOG d_reagents
  ENDIF
  
//********************************************************************//
[DIALOG d_reagents]
0, 0
   gumppic -8   0    <eval 097e>
   gumppic -8  90    <eval 097e>
   gumppic -8 180    <eval 097e>
  
PAGE 1
   tilepic   0   4    <eval <status_reg_itemnum spider_silk>>
   dtext      7  12    <eval <status_reg_amtcolor spider_silk>>    <eval <rescount i_reag_spider_silk>>
   dtext     45   8    <eval <status_reg_namecolor spider_silk>>    Spider's Silk

   tilepic   0  34    <eval <status_reg_itemnum sulfur_ash>>
   dtext      7  42    <eval <status_reg_amtcolor sulfur_ash>>        <eval <rescount i_reag_sulfur_ash>>
   dtext     45  38    <eval <status_reg_namecolor sulfur_ash>>    Sulfurous Ash

   tilepic   0  64    <eval <status_reg_itemnum nightshade>>
   dtext      7  72    <eval <status_reg_amtcolor nightshade>>        <eval <rescount i_reag_nightshade>>
   dtext     45  68    <eval <status_reg_namecolor nightshade>>    Nightshade

   tilepic   0  94    <eval <status_reg_itemnum blood_moss>>
   dtext      7 102    <eval <status_reg_amtcolor blood_moss>>        <eval <rescount i_reag_blood_moss>>
   dtext     45  98    <eval <status_reg_namecolor blood_moss>>    Blood Moss

   tilepic   0 125    <eval <status_reg_itemnum ginseng>>
   dtext      7 132    <eval <status_reg_amtcolor ginseng>>        <eval <rescount i_reag_ginseng>>
   dtext     45 128    <eval <status_reg_namecolor ginseng>>        Ginseng

   tilepic   0 155    <eval <status_reg_itemnum garlic>>
   dtext      7 162    <eval <status_reg_amtcolor garlic>>        <eval <rescount i_reag_garlic>>
   dtext     45 158    <eval <status_reg_namecolor garlic>>        Garlic

   tilepic   0 185    <eval <status_reg_itemnum mandrake_root>>
   dtext      7 192    <eval <status_reg_amtcolor mandrake_root>>    <eval <rescount i_reag_mandrake_root>>
   dtext     45 188    <eval <status_reg_namecolor mandrake_root>>    Mandrake Root

   tilepic   0 215    <eval <status_reg_itemnum black_pearl>>
   dtext      7 222    <eval <status_reg_amtcolor black_pearl>>    <eval <rescount i_reag_black_pearl>>
   dtext     45 218    <eval <status_reg_namecolor black_pearl>>    Black Pearls

   button   65 252    <eval 09cd> <eval 09cd> 0 2 0
   button   97 252    <eval 085F> <eval 085E> 1 0 0

PAGE 2
   tilepic   0   4    <eval <status_reg_itemnum blood_vial>>
   dtext      7  12    <eval <status_reg_amtcolor blood_vial>>        <eval <rescount i_reag_blood_vial>>
   dtext     45   8    <eval <status_reg_namecolor blood_vial>>    Blood Vials

   tilepic   0  34    <eval <status_reg_itemnum volcanic_ash>>
   dtext      7  42    <eval <status_reg_amtcolor volcanic_ash>>    <eval <rescount i_reag_volcanic_ash>>
   dtext     45  38    <eval <status_reg_namecolor volcanic_ash>>    Volcanic Ash

   tilepic   0  64    <eval <status_reg_itemnum Dragons_heart>>
   dtext      7  72    <eval <status_reg_amtcolor Dragons_heart>>    <eval <rescount i_reag_Dragons_heart>>
   dtext     45  68    <eval <status_reg_namecolor Dragons_heart>>    Dragon's Hearts

   tilepic   0  94    <eval <status_reg_itemnum bone>>
   dtext      7 102    <eval <status_reg_amtcolor bone>>        <eval <rescount i_reag_bone>>
   dtext     45  98    <eval <status_reg_namecolor bone>>        Bone

   tilepic   0 125    <eval <status_reg_itemnum pumice>>
   dtext      7 132    <eval <status_reg_amtcolor pumice>>        <eval <rescount i_reag_pumice>>
   dtext     45 128    <eval <status_reg_namecolor pumice>>        Pumice

   tilepic   0 155    <eval <status_reg_itemnum worm_heart>>
   dtext      7 162    <eval <status_reg_amtcolor worm_heart>>        <eval <rescount i_reag_worm_heart>>
   dtext     45 158    <eval <status_reg_namecolor worm_heart>>    Wyrm's Hearts

   tilepic   0 185    <eval <status_reg_itemnum fertile_dirt>>
   dtext      7 192    <eval <status_reg_amtcolor fertile_dirt>>    <eval <rescount i_reag_fertile_dirt>>
   dtext     45 188    <eval <status_reg_namecolor fertile_dirt>>    Fertile Dirt

   tilepic   0 215    <eval <status_reg_itemnum brimstone>>
   dtext      7 222    <eval <status_reg_amtcolor brimstone>>        <eval <rescount i_reag_brimstone>>
   dtext     45 218    <eval <status_reg_namecolor brimstone>>        Brimstone

   button    5 252    <eval 09cc> <eval 09cc> 0 1 0
   button   65 252    <eval 09cd> <eval 09cd> 0 3 0
   button   97 252    <eval 085F> <eval 085E> 1 0 0

PAGE 3
   tilepic   0   4    <eval <status_reg_itemnum ectoplasm_vial>>
   dtext      7  12    <eval <status_reg_amtcolor ectoplasm_vial>>    <eval <rescount i_reag_ectoplasm_vial>>
   dtext     45   8    <eval <status_reg_namecolor ectoplasm_vial>>    Ectoplasm Vials

   tilepic   0  34    <eval <status_reg_itemnum heart_zombie>>
   dtext      7  42    <eval <status_reg_amtcolor heart_zombie>>    <eval <rescount i_reag_heart_zombie>>
   dtext     45  38    <eval <status_reg_namecolor heart_zombie>>    Zombie Hearts


   button    5 252    <eval 09cc> <eval 09cc> 0 2 0
   button   97 252    <eval 085F> <eval 085E> 1 0 0

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-16-2013 01:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Regs List - Ultima One - 05-16-2013 01:09 AM
RE: Regs List - Rizz - 05-17-2013, 08:21 AM
RE: Regs List - Ultima One - 05-17-2013, 10:50 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)