Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2006, 10:47 AM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Tweaking the Dice Roll Mod

I'm using the Dice Roll Mod (created by Kentaurus for 3.0 and ported to 3.5.4 by Eikinskjaldi) to instead draw playing cards from a deck. However, I need the mod tweaked a little so that ONLY ONE INSTANCE of each card can be drawn per thread (with dice it doesn't matter if there are duplicates, but card games need this limitation, as there can't be two aces of hearts etc.)

So my question is, can anyone help me tweak the code so that only one instance of each card is drawn per thread? I've asked in the thread itself and no one's replied so I thought I'd try here in case any coders wanted to take it up as a challenge. (Yeah, and it wouldn't hurt me none either! :cheeky

Here's the Mod thread:

https://vborg.vbsupport.ru/showthread.php?t=113972

it comes with this disclaimer from the original coder:
Quote:
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission.
I've got to say that any help with this would be vastly appreciated.
Reply With Quote
  #2  
Old 06-06-2006, 05:16 PM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else feel like it's a bit of a meat market in here? So many requests...so few coders. And we're all trying to attract your attention to our own particular wish code. Pick me! pick me! LOL! Most of the requests have few views and no replies. My own request had only 13 views (and I'm sure a few of those were myself, re-clicking on it). Statistically speaking, out of 13 views the chances are very slim that one of those was a skilled coder. Even smaller is the chance it's a coder wanting to undertake the task.

Oh well, one can always dream, right? So just bumping this back up (that is, if it will let me, I've noticed a peculiar merge feature here at vb.org with successive posts by the same person merged together).

If anyone thinks this hack is doable I'd love to try it out and test whatever codes you think might work.

Thanks again for any help and I'm not too proud to add....

PICK ME!! PICK ME!! :banana:

Reply With Quote
  #3  
Old 07-06-2006, 01:50 AM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i can look at this, im really busy with my other hacks right now, and tomorrow im going to the zoo, but maybe after i get back or somthing I can put a little time into this (i dont think it will take too long.)

hmm one question, what would happen if all the cards in the deck have run out?
Reply With Quote
  #4  
Old 07-06-2006, 11:54 AM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blaine, thank you! I posted this request a while ago, so you must have followed me over here via my profile from your other ICash hack.

I'd be thrilled if you could work on this! If all the cards have run out, could there just be a simple "No more cards" message the user gets instead of a card?

Thanks again, looking forward to what you come up with!
Reply With Quote
  #5  
Old 07-07-2006, 12:45 AM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more quick question, would the user still be able to draw more than one card out of the deck at a time? or just one per post?
Reply With Quote
  #6  
Old 07-07-2006, 01:11 AM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have it set now so users can draw from 1 to 5 cards in a post. Example, if they are playing a card game like poker, they could draw 5 cards to start. Then they could decide to keep 2 of the cards and draw 3 others, then they could keep 4 of those cards and draw 1 more...just like they were building a real poker hand. But the problem is, of course, that I need it so that only one card per thread can be drawn (doesn't matter WHO in the thread draws it, or how many they are drawing per post, but just one time per card per thread).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:52 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.03712 seconds
  • Memory Usage 2,207KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete