The following warnings occurred:
Warning [2] Undefined variable $settings - Line: 32 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 32 errorHandler->error_callback
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/showthread.php 28 require_once
Warning [2] Trying to access array offset on value of type null - Line: 32 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 32 errorHandler->error_callback
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/showthread.php 28 require_once
Warning [2] Undefined array key "action" - Line: 1545 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1545 errorHandler->error_callback
/inc/class_plugins.php 142 avatarep_popup
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$mention - Line: 524 - File: inc/plugins/MentionMe/forum.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/MentionMe/forum.php 524 errorHandler->error_callback
/inc/class_plugins.php 142 mentionMeBuildPopup
/global.php 498 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$mention_autocomplete_loading - Line: 5 - File: inc/plugins/MentionMe/forum.php(557) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/MentionMe/forum.php(557) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/MentionMe/forum.php 557 eval
/inc/class_plugins.php 142 mentionMeBuildPopup
/global.php 498 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $unreadreports - Line: 34 - File: global.php(961) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 34 errorHandler->error_callback
/global.php 961 eval
/showthread.php 28 require_once
Warning [2] Undefined variable $udmata - Line: 1182 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1182 errorHandler->error_callback
/inc/plugins/avatarep.php 1142 avatarep_format_ugroups
/inc/class_plugins.php 142 avatarep_style_guser
/global.php 1276 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on value of type null - Line: 1182 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1182 errorHandler->error_callback
/inc/plugins/avatarep.php 1142 avatarep_format_ugroups
/inc/class_plugins.php 142 avatarep_style_guser
/global.php 1276 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $udmata - Line: 1182 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1182 errorHandler->error_callback
/inc/plugins/avatarep.php 1142 avatarep_format_ugroups
/inc/class_plugins.php 142 avatarep_style_guser
/global.php 1276 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on value of type null - Line: 1182 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1182 errorHandler->error_callback
/inc/plugins/avatarep.php 1142 avatarep_format_ugroups
/inc/class_plugins.php 142 avatarep_style_guser
/global.php 1276 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $resourcelist - Line: 423 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 423 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $rolls - Line: 1 - File: inc/plugins/diceroller.php(428) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(428) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 428 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $results - Line: 1 - File: inc/plugins/diceroller.php(453) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(453) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 453 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resources - Line: 1 - File: inc/plugins/diceroller.php(453) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(453) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 453 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined array key 4 - Line: 396 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 396 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resourcelist - Line: 423 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 423 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $rolls - Line: 1 - File: inc/plugins/diceroller.php(428) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(428) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 428 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resourcelist - Line: 423 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 423 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resourcelist - Line: 423 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 423 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resourcelist - Line: 423 - File: inc/plugins/diceroller.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php 423 errorHandler->error_callback
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $results - Line: 1 - File: inc/plugins/diceroller.php(453) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(453) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 453 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined variable $resources - Line: 1 - File: inc/plugins/diceroller.php(453) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/diceroller.php(453) : eval()'d code 1 errorHandler->error_callback
/inc/plugins/diceroller.php 453 eval
[PHP] parse_nds_callback
/inc/plugins/diceroller.php 312 preg_replace_callback
/inc/plugins/diceroller.php 292 diceroller_parse
/inc/class_plugins.php 142 diceroller_setup
/inc/functions_post.php 897 pluginSystem->run_hooks
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "button_mention" - Line: 40 - File: inc/functions_post.php(946) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/functions_post.php(946) : eval()'d code 40 errorHandler->error_callback
/inc/functions_post.php 946 eval
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "button_mention" - Line: 40 - File: inc/functions_post.php(946) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/functions_post.php(946) : eval()'d code 40 errorHandler->error_callback
/inc/functions_post.php 946 eval
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "usergroup" - Line: 637 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 637 errorHandler->error_callback
/inc/plugins/avatarep.php 1079 avatarep_format_avatar
/inc/class_plugins.php 142 avatarep_threads
/showthread.php 1619 pluginSystem->run_hooks
Warning [2] Undefined array key "displaygroup" - Line: 638 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 638 errorHandler->error_callback
/inc/plugins/avatarep.php 1079 avatarep_format_avatar
/inc/class_plugins.php 142 avatarep_threads
/showthread.php 1619 pluginSystem->run_hooks
Warning [2] Undefined property: MyLanguage::$avatarep_user_alt_thread_contributor - Line: 1108 - File: inc/plugins/avatarep.php PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/avatarep.php 1108 errorHandler->error_callback
/inc/class_plugins.php 142 avatarep_threads
/showthread.php 1619 pluginSystem->run_hooks
Warning [2] Undefined variable $mentionScript - Line: 27 - File: showthread.php(1621) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1621) : eval()'d code 27 errorHandler->error_callback
/showthread.php 1621 eval
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1621) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1621) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1621 eval




Admin[Plugin] Dice Roller MyCode
#1
Exclamation 
Source:
https://community.mybb.com/mods.php?action=changelog&pid=955

Description:
Roll dice in a variety of exciting ways!

Demonstration:

Code:
## Syntax
* [roll=low-high]
 * Rolls a single dice with values between low and high, inclusive.
 * e.g. [roll=1-10]
 * *potential output* - Rolling 1-10: 5
* [roll=low-high+/-F]
 * Rolls a single dice with values between low and high, inclusive. Adds or subtracts the given offset F.
 * e.g. [roll=1-10+5]
 * *potential output*  - Rolling 1-10: 2 + 5 = 7
 * [roll=1-10-5]
 * *potential output* - Rolling 1-10: 2 - 5 = -3
* [roll=dS]
 * Rolls a single dice with with values between 1 and S, inclusive.
 * e.g. [roll=d6]
 * *potential output* - Rolling d6: 4
* [roll=NdS]
 * Rolls N dice with values between 1 and S, inclusive.
 * e.g. [roll=3d6]
 * *potential output* - Rolling 3d6: 4 + 2 + 6 = 12
* [roll=dS+/F]
 * Rolls a single dice with values between low and high, inclusive. Adds or subtracts the given offset F.
 * e.g. [roll=d6+5]
 * *potential output* - Rolling d6+5: 4 + 5 = 9
* [roll=NdS+/-F]
 * Rolls N dice with values between 1 and S, inclusive. Adds or subtracts the given offset F.
 * e.g. [roll=3d6+20]
 * *potential output* - Rolling 3d6+20: 4 + 1 + 6 + 20 = 31
* [roll=weighted list]
 * Rolls a single dice with as many values as there are items in weighted list. Each item in weighted list represents how likely that index is to be selected.
 * e.g. [roll=25,25,50] gives 1 a 25% chance to be rolled, 2 a 25% chance, and 3 a 50% chance.
 * *potential output* - Rolling 25,25,50: 3



Examples:
Rolling a d20 with +5 modifier:
Code:
[roll=d20+5]


Rolling d20+5: 2 +5 = 7



Rolling four d20s:
Code:
[roll=4d20]


Rolling 4d20: 20 + 1 + 8 + 14 = 43
Reply
#2
Configuration:

ACP > Settings > Plugin Settings >Dice Roller MyCode (6 Settings)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)