Aderik Posted January 12, 2011 Posted January 12, 2011 Thank you to Richard and 21lockdown for inspiring me with their Simple Marriage and Bodyguard modifications. This mod works well with them but if you don't use them it would be easy to edit to your tastes. Thank you to to Equinox, Paul, and Sims for assisting me with a particularly irksome part of my coding. If there are any bugs, feel free to post em. If there are any questions, the same. Also this is the second largest piece of code I've worked on so if it's a mess, sorry :P To start add these to your database [mysql]ALTER TABLE users ADD swsib1 INT(11) NOT NULL DEFAULT '0'; ALTER TABLE users ADD swsib2 INT(11) NOT NULL DEFAULT '0'; ALTER TABLE users ADD bguard INT(11) NOT NULL DEFAULT '0'; ALTER TABLE users ADD bguard_oa INT(11) NOT NULL DEFAULT '0'; ALTER TABLE users ADD TP INT(11) NOT NULL DEFAULT '0'; CREATE TABLE `offeroath` ( `oaID` int(11) NOT NULL auto_increment, `oaFROM` int(11) NOT NULL default '0', `oaUSER1` int(11) NOT NULL default '0', `oaACCEPT1` int(11) NOT NULL default '0', `oaUSER2` int(11) NOT NULL default '0', `oaACCEPT2` int(11) NOT NULL default '0', PRIMARY KEY (`prID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/mysql] Add this to viewusers.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. /---Optional---/ In your marriage.php find in your accept function You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and add below it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in your propose function find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add below it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in the attackbeat.php/attackwin.php/attacktake.php/attacklost.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with (remember to replace the # with your numbers) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. /---End of Optionability---/ Create siblings.php and put into it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add to daily crons You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
rulerofzu Posted January 13, 2011 Posted January 13, 2011 Skimmed through some of the code. I would suggest not using * where possible. For example the addition to the viewuser. Your using donatordays, userid, username but calling the entire table by using * and the users table is a pretty big table! Quote
Jordan Palmer Posted January 13, 2011 Posted January 13, 2011 Looks an interesting idea, Well done :-) Quote
Lilith Posted January 13, 2011 Posted January 13, 2011 Zu: hes already been informed Here but true to form, He didn't listen. Ade: Its cool that you got it to work tho. Quote
Uridium Posted January 13, 2011 Posted January 13, 2011 In a nutshell EXCELLENT! takes time to create something on this scale i know from past experience Excellent idea havent used the script but just looking at this lots of ideas which can be added to this script to make it one of a kind. Im all for new ideas for a script and this one is the beez knees Weldone to all :) Quote
Aderik Posted January 13, 2011 Author Posted January 13, 2011 What does this script do ?With what I posted it allows you to form an 'oath' with one or two other players. It costs what I call Technique Points in my game to use this (makes it a small buffer since you actually have to play my game to earn TP) Right now the only ability available is the Defend, which is used in conjunction with the bodyguard mod I referenced (I had mine edited a tad to fit the theme of my game). I plan on opening up more unique abilities that will will help from things like Warring to Mining to I don't know what else. Always looking for suggestions for these abilities! To Zu and Lilith, I had completely forgot to edit the queries. *wonders how one listens on a forum :P* It took everything I had to to try and make it unabusable XD (I will get around to making it simpler/update it eventually.) To illusions and Lilith thank you! Quote
Aderik Posted January 18, 2011 Author Posted January 18, 2011 Very big bug found recently. If player a is siblings with player b, and player c sends an offer to player a and d, player a and d accepts, it would negate the sibling status between a and b for player a but not for b replacing it with sibling status between a c and d. I'll be working to fix this asap. Quote
Aderik Posted January 24, 2011 Author Posted January 24, 2011 Fixed, thanks to Blade Maker for some very helpful tuning. 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.