vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Dice Roller Hack [BBCode] (https://vborg.vbsupport.ru/showthread.php?t=113972)

Eikinskjaldi 05-31-2006 02:41 AM

Add that to the select in the same post. It will add another entry to the option drop down.

darkram 05-31-2006 03:02 AM

Nice work cclaerhout!

Although there seems to be another bug, when rolling multiples of a d10 sometimes it drops the last image of the dice. For instances if I do 2d10 I only see one image of the dice and if I do 3d10 I only see 2 images. It seems to replace an image with the "D10" at times.

Here is an example that I have:
http://www.darkram4.com/forums/showthread.php?p=9#post9

Emmy2 05-31-2006 08:23 AM

The script is executing okay but you are getting red x's instead of two of the images. It looks like those images are missing, either they were accidentally left out of the package or they didn't upload properly to your images folder.

You're missing:

d10_8.png
d10_9.png

cclaerhout 05-31-2006 09:24 AM

Quote:

Originally Posted by Eq4bits
Thanks for the work around cclaerhout, or should I say Merci?
One more question, on your interface can you 'mix' the different dice in one roll? i.e. 1d5 1d10 1d20 (1 for # of dice,d for dice, 5/10/20 for # of faces) did that make sense?

"De rien" ;) (translation : you're welcome.

As the original script you can mix dice, but it will give you several windows with one for the D4, one for the D6, one for D10, etc. In fact the roll is the moment whrn you press the "Ok" button. I think it's better to have several windows to count different faces dice seperately.

But you can't launch a 1D5, because D5 doesn't exist in user interface. If you do it manually with the bbcode, the dice window will be blank because the D5 has no picture (i don't think it exists).

cclaerhout 05-31-2006 09:27 AM

Quote:

Originally Posted by Emmy2
The script is executing okay but you are getting red x's instead of two of the images. It looks like those images are missing, either they were accidentally left out of the package or they didn't upload properly to your images folder.

You're missing:

d10_8.png
d10_9.png


In fact i've seen this problem yesterday night (In France it was night) but i was too tired to correct it ;D

It's very easy : picture exist but are called "d10_08.png
d10_09.png" ; rename them "d10_8.png" "d10_9.png"

cclaerhout 05-31-2006 09:29 AM

Quote:

Originally Posted by darkram
Nice work cclaerhout!

Although there seems to be another bug, when rolling multiples of a d10 sometimes it drops the last image of the dice. For instances if I do 2d10 I only see one image of the dice and if I do 3d10 I only see 2 images. It seems to replace an image with the "D10" at times.

Here is an example that I have:
http://www.darkram4.com/forums/showthread.php?p=9#post9

I'm going to look at this problem. Let me a little time because it's time to eat here ! :D

cclaerhout 05-31-2006 09:59 AM

Are you sure of this bug ?
I've tried here and it works well.

P.S : your vB style is very nice.

cclaerhout 05-31-2006 10:10 AM

I've updated my archive here.

The name of two pictures have been corrected.

Eikinskjaldi you don't answer me, can i distribute RPG hack to vbulletin-fr.org ? Of course, everybody will be in the credit.

darkram 05-31-2006 03:05 PM

Quote:

Originally Posted by cclaerhout
Are you sure of this bug ?
I've tried here and it works well.

P.S : your vB style is very nice.

Seems to be working now after I reinstalled it. Thanks again for a great job so far folks!

:banana:

BTW: Thanks its from the World of Warcraft style here.

Emmy2 05-31-2006 03:21 PM

I've got another question/idea.

I'm using Eiken's drop down menu to choose the dice roll. Is there any way to have that menu ONLY show up in my games forum? So it doesn't appear on all the toolbars in all my forums?

What would the conditional statement for that be? I can express it verbally but I can't code it....
Code:

<if forum id = 6>
code for menu here
</if>

But that's not code I know! but what would the REAL code for that be?


All times are GMT. The time now is 07:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01686 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete