Thread: Major Additions - vBExperience 4
View Single Post
  #1886  
Old 05-25-2011, 07:47 PM
RollaJedi's Avatar
RollaJedi RollaJedi is offline
 
Join Date: Apr 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anybody at all is interested in expanding the Triple Triad game to use achievements based on certain cards you have in your possession and who might be able to create a plugin from this, please read:

I have a very small plugin request that i think wouldnt take but a few changes to an existing plugin. I really wish i understood the coding, and i have tried using the custom data base provider you supplied, but i just cant figure it out on my own. Please see what i'm asking for:




In the database for the triple triad game in the table called dbt_triad_cards, you'll find a list of all the battle cards that are in the shop for sale. Each card has its own id as you can see in the image under the column called "cid". I made my own example card called 'TEST1'. It has the number 111 as its ID.



Now, lets say you got the TEST1 card in your inventory of cards. If you'll look at the image below, this is the database table called dbt_triad_playercards. It is where each player's own personal cards are stored. In the vbulletin admincp, if you go to the USERS list, you'll see that i am User 1. If you look at the column called 'p_userid', this is the ID of the vbulletin user. As you see, I currently own 12 cards. Notice that card number 111 is on there. This is the one I created called TEST1. Both the 'cid' number from above and the 'p_card' number here match.



Now for what i am asking. All I need is for Vbexperience to look at the 'p_card' number, then look at the 'p_userid' number.
For the achievement to be earned, the player must own that card. Or, what it would look like in VBE:

http://www.coreplanets.com/MISC/example5.jpg

This will give a player an achievement for having the card called TEST1, or cid #111. The icon for the achievement will show other people playing the game that he has this card. This may make them want to try and battle him for it, trade with him, steal it, whatever. Do you see where I am coming from here on this?

I'm not a coder obviously, but i would think it would only take editing words from one of these triple triad plugins to make this request.

I really, really appreciate your time Phalynx and hope you consider this small request. Thank you and GOD bless you.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02664 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete