The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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.
|
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|