Dragon Blade Posted June 8, 2013 Share Posted June 8, 2013 This script is to give free stuff to the new people who join the game... So first all alter this - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now make a file called bonus.php or what ever you want and add - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up headers and add this somewhere near the jail thingy bit - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Luckily for me I got the V2 item system on my V1 game Note: SQL only MCCodes. But inventory etc I re-coded. 1 Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 8, 2013 Share Posted June 8, 2013 (edited) I came up with something just like this a long time ago and I'm going to tell you what people told me since its a better idea :p. Do this on register and here's why: No additions to the users table A player can only register once Less file edits On the register page where they get inserted in the database you just do something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then you can send a message or an event to the player which ever you choose. all done **EDIT** Also you have like 3 different queries to update one table. How about one query only for example, if you want to keep it the same way as op: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. other than that its not bad and will get the job done granted it clutters the header even more ;) Thanks for the contribution though Edited June 8, 2013 by KyleMassacre more detail Quote Link to comment Share on other sites More sharing options...
Dragon Blade Posted June 9, 2013 Author Share Posted June 9, 2013 Thanks KyleMassacre! Great guy you are, always helping out people when you can :') And I think register will be much easier :') Quote Link to comment Share on other sites More sharing options...
Dominion Posted June 9, 2013 Share Posted June 9, 2013 With Kyle's method I would also add an event to tell them they have got the welcome or a welcome message with some basic information on the site. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 9, 2013 Share Posted June 9, 2013 Also if your using V2.0.5 you dont have to include or require global_func.php and here, ill expand a little bit for ya: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can do a little something like that Quote Link to comment Share on other sites More sharing options...
Dragon Blade Posted June 9, 2013 Author Share Posted June 9, 2013 Hmm I like it KyleMassacre, you are very good with coding. Any tips with MCCodes V1? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2013 Share Posted June 9, 2013 Hmm I like it KyleMassacre, you are very good with coding. Any tips with MCCodes V1? Learn basic PHP, be creative :) Quote Link to comment Share on other sites More sharing options...
Dragon Blade Posted June 9, 2013 Author Share Posted June 9, 2013 Thanks Ian! Also go on this thread - http://makewebgames.io/showthread.php/43555-New-Job-Addon Quote Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2013 Share Posted June 9, 2013 Thanks Ian! Also go on this thread - http://makewebgames.io/showthread.php/43555-New-Job-Addon Dominion pretty much summed that thread up :) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 9, 2013 Share Posted June 9, 2013 Hmm I like it KyleMassacre, you are very good with coding. Any tips with MCCodes V1? Far from it but thank you. And what kind of tips are you looking for, anything particular? Just like Ian said just be creative and you would be surprised at what you come up with Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.