corruptcity || skalman Posted January 30, 2010 Posted January 30, 2010 hi ino its been a while since ive posted anythink here but i have another freebie for yall basically its a stock monorail but ive add a few extras into it which give your users either a very good reward of a bad 1 good is money special items or crystals(or whatever your game uses) bad jail time the mod should worked ive tested in myself on my local copy of my game but in they case that it doesnt work for your post all the info and ill look into it and if ive made a mistake ill correct it on here for yall it does have some basic security but it could always be improved more ill also include the SQl for the 3 items if you decide on using them ( dont forget you will prob have to change the itmid and itemtype ok here it is just copy and paste over your monorail.php monorail.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. [mysql] INSERT INTO `items` (`itmid`, `itmtype`, `itmname`, `itmdesc`, `itmbuyprice`, `itmsellprice`, `itmbuyable`, `effect1_on`, `effect1`, `effect2_on`, `effect2`, `effect3_on`, `effect3`, `weapon`, `armor`) VALUES (1, 3, 'soap on a rope', 'a bar of soap type onto a bit of string', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 25, 0), (2, 3, 'Toothbrush shank', 'a toothbrush with a razer blade melted into the toothbrush', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 20, 0), (3, 3, 'Guards cat and 9 tails', 'a Guard whip for beating convicts that stepped out of line', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 30, 0); [/mysql] Quote
Djkanna Posted February 1, 2010 Posted February 1, 2010 Haha (just read the comments on it(ImmortalThug :P)) Looks good, well done :) Djkanna. Quote
corruptcity || skalman Posted February 1, 2010 Author Posted February 1, 2010 ty dj and yeah jst waiting for the immortal thugs approval for this mod now lol Quote
Joshua Posted February 1, 2010 Posted February 1, 2010 Not Tested, you had userid defined wrong in the last function so that wasnt going to work and no need to MRES the GET['to'] as it's an integer. Also sprintf isnt being used properly as you arent definding it so :P A few quick fixes, not tested You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
The Bonded Game Posted June 5, 2011 Posted June 5, 2011 I like this but after install on the first one i got a parse error on line 55, and the second one gave one on line 59. Any ideas anybody? Quote
Dominion Posted June 5, 2011 Posted June 5, 2011 (edited) I like this but after install on the first one i got a parse error on line 55, and the second one gave one on line 59. Any ideas anybody? look at the link inside the echo. (line 59) Edited June 5, 2011 by Dominion Quote
realmoflegends Posted June 5, 2011 Posted June 5, 2011 I believe this should fix it; two sets of double quotes inside one another are something PHP doesn't like: echo "Stop You have been detained due to your illegal activities Please follow me to the <a href='http://monorail3.php?action=stopped' target='_blank'> security center</a>"; 1 Quote
The Bonded Game Posted June 5, 2011 Posted June 5, 2011 I believe this should fix it; two sets of double quotes inside one another are something PHP doesn't like: echo "Stop You have been detained due to your illegal activities Please follow me to the <a href='http://monorail3.php?action=stopped' target='_blank'> security center</a>"; Thank you very much. I am very new to coding (read: absolute beginner, and totally clueless.) The tip on the double quotes will be something I will now not forget. I am learning slowly but appreciate any help I can get. Quote
realmoflegends Posted June 5, 2011 Posted June 5, 2011 Thank you very much. I am very new to coding (read: absolute beginner, and totally clueless.) The tip on the double quotes will be something I will now not forget. I am learning slowly but appreciate any help I can get. No problem, I know in the beginning the learning curve can be rough. I had the advantage of a C++/Visual programming background to speed me up a bit, but even I get stuck sometimes still. I learn something new about PHP every day though. Quote
corruptcity || skalman Posted June 8, 2011 Author Posted June 8, 2011 wow nice to know people are still using it even after almost 18 months Quote
The Bonded Game Posted August 18, 2011 Posted August 18, 2011 Ok, with the help of Aderick, and Corrupt City plus others on this thread I think we now have a fully functional mod. I am going to do my best here to Post it. It will Have three (3) Separate pieces. Spelling and text should be cleaned up for your game. If anyone finds anything that needs cleaning up (besides text/spelling) I will happily edit it on this post. Please just pm me with what needs changing. I did not write any of this code, nor did I secure it, nor do I claim any ownership of it. DO NOT ATTEMPT TO JUST SIMPLY COPY AND PASTE THIS IN TO YOUR GAME UNLESS YOU ARE AN EXPERIENCED CODER. I know the table code is wrong, and the header code is most likely wrong. But, if you know how to work with these and can make the adjustments go for it!! A)The Main monorail php code. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. B) The new table column you need to help secure it. You will need to add this to your users table. The code is probaly wrong but I will adjust it if someone tells me what it should be. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. C) The code for your header to work with the securing. You will need to add this into your header somewhere. (Again it may not be perfect but I will clean the code up if anyone tells me how. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. As Far as I can tell this is now fully functional. Quote
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.