Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-24-2004, 05:15 AM
TJFweb TJFweb is offline
 
Join Date: Dec 2001
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default uShop shop action for RPG Inferno (converting points)

Hi,

I just discovered RPG Inferno and I must say I am extremely excited...

But like quite a few other people here, I wondered if it would be compatible with uShop...

Now, I considered having RPG Inferno and uShop shared a points field, however the problem is that RPG Inferno does not create a user entry with an appropriate points field until they create a character. Undoubtedly, not everyone will create an RPG Character, but would still like to be able to receive points (e.g. from the Arcade, from posting, reputation, etc...).

So I thought it would be better to have a shop action which would convert points to RPG Inferno money as per a specific ratio (i.e. 10 uttpoints for 100 RPG money).

What happens is there's a page where users can select the number of uttpoints to convert to RPG money, and then according to some ratio set in the shop settings page for the specific action, the selected number of uttpoints would be deleted from the user table and then the appropriate amount as per the ratio would be credited to the user's money field in the inferno_user table.

And uShop would give an error if they did not have an RPG Inferno character.

If anyone knows how to do this, please reply! Looking through the code for uShop actions, it doesn't look to hard for those who know what they're doing (but I might be wrong).

Thanks!
Reply With Quote
  #2  
Old 01-03-2005, 08:25 PM
bishop93 bishop93 is offline
 
Join Date: Dec 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has there been any response to this at all? I'm having the same issues and I would think that there are others than just two of us.
Reply With Quote
  #3  
Old 01-03-2005, 08:35 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, uCash (and uShop) were definately not designed for tables the way RPG inferno (allegedly - I haven't used RPG Inferno so I can't say for sure) has them, so it wouldn't work without modification.

As for the converting - it could be done, just don't expect much from me in that area since I do not have or use RPG Inferno. I am willing to help someone if they want to make such an action, however.
Reply With Quote
  #4  
Old 01-04-2005, 11:02 AM
Tal-CPO Tal-CPO is offline
 
Join Date: Sep 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can create new action for ushop to by/change points -> inferno-points

or you kann modify rpginferno to use ushop points....

i have modified rpginferno so i have only one points-field ( in user -table )


little example:

Code:
// global query
$gmember=$DB->query("select u.*, FROM_UNIXTIME(u.bottimer,'%H:%i:%s') as timer from inferno_user as u where rid='{$bbuserinfo['userid']}'");
$member=$DB->fetch_array($gmember);
$gpoints=$DB->query("select uttpoints from user where userid='{$bbuserinfo['userid']}'");
$points=$DB->fetch_array($gpoints);
$member['money']=$points['uttpoints'];
________________________________________

or

        $DB->query("update inferno_user set inbattle='0',money=money+'{$hand_take}',bankmoney=bankmoney+'{$bank_take}',rage='{$rage}',exp='{$exp}',won=won+'1' where gid='{$winner['gid']}'");
        $DB->query("update user set uttpoints=uttpoints+'{$hand_take}' where userid='$from'");

you must always make a second query with update of a uttpoints

demo @ www.community-portal.to

bank is managed by ushop


P.S. sorry for my bad english
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08075 seconds
  • Memory Usage 2,184KB
  • 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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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