Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
(RevCMS) Shop Addon?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 355750" data-attributes="member: 36373"><p>Wow. Copying code great web developer (y)</p><p></p><p>On a side note ,copying and pasting code obviously means if you're getting paid for it, you shouldn't be doing it.</p><p></p><p>Break down what needs to happen, and then do it.</p><p></p><p>So you need to make a page, where there is a form, when the button gets pressed you need to check a couple things.</p><p>1) Are they signed in ? (Yes -> Continue)</p><p>2) Do they have enough points ? (Yes -> Continue)</p><p></p><p>Next you need to get the points OUT of their wallet, all their points are stored in the users table so</p><p>UPDATE users SET vip_points = vip_points - (number) WHERE user_id = (get their user ID and do it here)</p><p></p><p>Bam, now they have lost the points, next you need to give them the furniture. All the furniture is stored in the ITEMS table so you use the command "INSERT" to put a new insert in there, and make sure you set the room_id column = 0 so it goes in their inventory <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p></p><p>Next you will want to make sure it works before releasing, so buy one yourself and it should work fine. You could always do things like create packages, limit how many people can buy, limit how many are for sale, or other creative things too!</p></blockquote><p></p>
[QUOTE="JayC, post: 355750, member: 36373"] Wow. Copying code great web developer (y) On a side note ,copying and pasting code obviously means if you're getting paid for it, you shouldn't be doing it. Break down what needs to happen, and then do it. So you need to make a page, where there is a form, when the button gets pressed you need to check a couple things. 1) Are they signed in ? (Yes -> Continue) 2) Do they have enough points ? (Yes -> Continue) Next you need to get the points OUT of their wallet, all their points are stored in the users table so UPDATE users SET vip_points = vip_points - (number) WHERE user_id = (get their user ID and do it here) Bam, now they have lost the points, next you need to give them the furniture. All the furniture is stored in the ITEMS table so you use the command "INSERT" to put a new insert in there, and make sure you set the room_id column = 0 so it goes in their inventory :) Next you will want to make sure it works before releasing, so buy one yourself and it should work fine. You could always do things like create packages, limit how many people can buy, limit how many are for sale, or other creative things too! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
(RevCMS) Shop Addon?
Top