Jump to content
MakeWebGames

Aderik

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Aderik

  1. Recently it's come to my attention that players are able to "attack someone until they have 0 health, go do some mining and then come back to pummel them before the tick gives them health" I'm going on the assumption that this isn't supposed to happen since it has set that players lose exp when they leave a fight to go to another page. Is there a fix to prevent players from leaving then re-entering a fight?
  2. Even for fictional settings I still recommend researching historical cultures and civilizations. Pretty near all fictional books you'll read has some reference to the real world and I am 100% sure you would have better results. I'm also putting in collectables but these are rarer items. Weapons with high power and low level. Food that increases energy but decreases hunger less. They can collect em or use em, their choice. For your list of catagories I'd tack on Raw Materials for your crafting idea, in addition to Refined Materials if your making it progressive. Splitting Raw Materials up would be Ores, Raw Food, Wood, etc. Splitting up Refined Materials could be Lumber and Metals etc. If you were to make food progressive (ie Grain > Flour > Bread) I'd put Grain in Raw Food/Material and Flour/Bread in Food for example.
  3. I've already spent quite a lot of time researching the era and storyline behind my game's theme. Creating a player's equipment I didn't find too hard, at first I was concerned about the lack of data on my time specific equipment but once I introduced variations (ie Worn Shortsword, Bronze Chainmail, Iron Gauntlets, Jade Amulet) I found that the list grew to the point I was over crowding. I'm still not done Oo. Too much repitition isn't good with variations as well, so having a broad list of variations helps. My advice would be to research your theme considerably and refine it. 'Medieval' game isn't really a good classifcation I think, considering Medieval Europe is far different theme than Medieval Africa or Asia. Once you know the era (Medieval) and location (lets say Europe) you can come with a comprehensive list based on the culture and technology of that time such as longswords, meat skewers, brick ovens, handdrawn carts, horse barding, etc. If it's a completely new world mixed with different areas than you have so many potential items it's mind boggling o_o   As to a standard list. I wouldn't know if one existed v_v. I've fully pimped out my catagories to include everything from single handed weapons to various raw materials to mission items.
  4. 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!
  5. 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 if ($r['swsib2']) { $oath=$db->query("SELECT * FROM users WHERE userid={$r['swsib2']}"); $sw=$db->fetch_row($oath); if($sw['donatordays']) { $sw['username'] = "<font color=#8F5E99>{$sw['username']}</font>"; } print "[url='viewuser.php?u={$sw[']{$sw['username']}[/url], "; } if ($r['swsib1']) { $oath=$db->query("SELECT * FROM users WHERE userid={$r['swsib1']}"); $sw=$db->fetch_row($oath); if($sw['donatordays']) { $sw['username'] = "<font color=#8F5E99>{$sw['username']}</font>"; } print "[url='viewuser.php?u={$sw[']{$sw['username']}[/url] and "; } if ($r['swsib1'] || $r['swsib2']) { $oath=$db->query print "{$r['username']} are sworn siblings"; } else { print "{$r['username']} has no sworn siblings."; } print " ";   /---Optional---/ In your marriage.php find in your accept function   if(!$_GET['ID']) { print " Invalid proposal ID! <hr width=75%> [[url='marriage.php']Back[/url]]<hr width=75%>"; }   and add below it   else if($_POST['ID'] == $ir['swsib1'] || $_POST['ID'] == $ir['swsib2']) { print " You cannot accept this proposal! <hr width=75%> [[url='marriage.php']Back[/url]]<hr width=75%>"; }   in your propose function find else if($_POST['ID'] == $userid) { print " You cannot propose to yourself! <hr width=75%> [[url='marriage.php']Back[/url]]<hr width=75%>"; }   add below it   else if($_POST['ID'] == $ir['swsib1'] || $_POST['ID'] == $ir['swsib2']) { print " You cannot propose to this player! <hr width=75%> [[url='marriage.php']Back[/url]]<hr width=75%>"; }   in the attackbeat.php/attackwin.php/attacktake.php/attacklost.php find if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+# WHERE gangID={$r['gang']}"); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-# WHERE gangID={$ir['gang']}"); print " You lost # respect for your gang!"; }   and replace with (remember to replace the # with your numbers)   if ($db->num_rows($warq) > 0) { $sib1=$db->query("SELECT gang FROM users WHERE userid=$ir[swsib1]"); $sib2=$db->query("SELECT gang FROM users WHERE userid=$ir[swsib2]"); $sw1=mysql_fetch_array($sib1); $sw2=mysql_fetch_array($sib2); if ($ir[gang] == $sw1[gang]) { $sa=1; } else { $sa=0; } if ($ir[gang] == $sw2[gang]) { $sb=1; } else { $sb=0; } $ssa=#+$sa+sb; $ssb=#+$sa+$sb; $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-$ssa WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=$ssa; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+$ssb WHERE gangID={$ir['gang']}"); print " You earnt $ssb respect for your gang!"; }   /---End of Optionability---/ Create siblings.php and put into it <?php include "globals.php"; switch($_GET['action']) { case 'offer': offer_oath(); break; case 'accept': accept_oath(); break; case 'defend': defend_sibling(); break; case 'decline': decline_oath(); break; case 'myoaths': view_oath(); break; default: oath_index(); break; } function oath_index() { global $ir,$c,$userid, $db; $oath2=$db->query("SELECT g.*,u.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.userid={$ir['swsib2']}"); $sw2=$db->fetch_row($oath2); $oath1=$db->query("SELECT g.*,u.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.userid={$ir['swsib1']}"); $sw1=$db->fetch_row($oath1); if($sw1['hospital'] == 0) { $hosp1=""; } else { $hosp1="{$sw1['hospital']} {$sw1['hospreason']}"; } if($sw2['hospital'] == 0) { $hosp2=""; } else { $hosp2="{$sw2['hospital']} {$sw2['hospreason']}"; } if($sw1['jail'] == 0) { $jail1=""; } else { $jail1="{$sw1['jail']} {$sw1['jail_reason']}"; } if($sw2['jail'] == 0) { $jail2=""; } else { $jail2="{$sw2['jail']} {$sw2['jail_reason']}"; } print "<center> Welcome to the the Oath Gardens. "; if ($ir['TP'] <= 499 && !$ir['swsib1'] && !$ir['swsib2']) { print "You do not have enough TP to swear an oath with someone. <font color=red>Remember to choose your siblings carefully. Also remember that if you and your chosen siblings share IP adresses that you still are not allowed to transfer anything between your accounts.</font> [url='siblings.php?action=myoaths']View my Oaths[/url]"; } elseif (!$ir['swsib1'] && !$ir['swsib2']) { print "[url='siblings.php?action=offer']Swear the Oath[/url] <font color=red>Remember to choose your siblings carefully. Also remember that if you and your chosen siblings share IP adresses that you still are not allowed to transfer anything between your accounts.</font> [url='siblings.php?action=myoaths']View my Oaths[/url]"; } else { $q=$db->query("SELECT * FROM offeroath WHERE oaUSER1=$userid || oaUSER2=$userid || oaFROM=$userid"); $r=$db->fetch_row($q); if($r['oaACCEPT1'] == 1 && $r['oaACCEPT2'] == 1) { print "You now have your pact. Remember, that while you may now be considered family, your ideals and loyalties are your own."; $db->query("UPDATE users SET swsib1={$r['oaFROM']} WHERE userid={$r['oaUSER1']}"); $db->query("UPDATE users SET swsib2={$r['oaUSER2']} WHERE userid={$r['oaUSER1']}"); $db->query("UPDATE users SET swsib1={$r['oaFROM']} WHERE userid={$r['oaUSER2']}"); $db->query("UPDATE users SET swsib2={$r['oaUSER1']} WHERE userid={$r['oaUSER2']}"); $db->query("UPDATE users SET swsib1={$r['oaUSER1']} WHERE userid={$r['oaFROM']}"); $db->query("UPDATE users SET swsib2={$r['oaUSER2']} WHERE userid={$r['oaFROM']}"); $db->query("DELETE FROM offeroath WHERE oaFROM=$userid OR oaUSER1=$userid OR oaUSER2=$userid"); } print " <table width=100%> <tr><td width=20%>Name</td><td width=30%>Hospital</td><td width=30%>Jail</td><td width=20>Abilities</td> </tr>"; if ($ir['swsib1']) { if ($sw1[gang]) { $gang="of [url='coalitions.php?action=view&ID={$sw1[gang]}']{$sw1['gangNAME']}[/url]"; } else { $gang="$nbsp;"; } print " <tr> <td>{$sw1['username']} $gang</td> <td>$hosp1</td> <td>$jail1</td> <td>[url='siblings.php?action=defend&ID={$ir[']Defend[/url]* </td> </tr>";} if ($ir['swsib2']) { if ($sw2[gang]) { $gang="of [url='coalitions.php?action=view&ID={$sw2[gang]}']{$sw2['gangNAME']}[/url]"; } else { $gang="$nbsp;"; } print " <tr> <td>{$sw2['username']} $gang</td> <td>$hosp2</td> <td>$jail2</td> <td>[url='siblings.php?action=defend&ID={$ir[']Defend[/url]* </td> </tr>";} print " </table> *The Defend ability costs 10 gold and is usable three times per day. <hr width=75%> "; if (!$ir['swsib1'] || !$ir['swsib2']) { print "[url='siblings.php?action=offer']Swear the Oath[/url] [url='siblings.php?action=myoaths']View my Oaths[/url] "; } } print " [[url='siblings.php']Back[/url]]"; } function view_oath() { global $ir,$c,$userid,$db,$h; $p=0; $xx=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaFROM=u.userid WHERE o.oaUSER1=$userid OR o.oaUSER2=$userid"); $xy=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaUSER1=u.userid WHERE o.oaUSER1=$userid OR o.oaUSER2=$userid"); $xz=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaUSER2=u.userid WHERE o.oaUSER1=$userid OR o.oaUSER2=$userid"); $getoath=$db->query("SELECT * FROM offeroath WHERE oaUSER1=$userid OR oaUSER2=$userid"); $t=mysql_fetch_array($xy); $s=mysql_fetch_array($xz); if(mysql_num_rows($getoath)==0) { print "You dont have any offers. "; } elseif ($ir[swsib1] > 0 && $ir[swsib2] > 0) { print "You have already sworn an oath. "; } else { print "<table width='60%'><tr><td colspan=4>These are the offers you have received over the past two weeks.</td></tr><tr><td>[b]From[/b]</td><td>[b]With[/b]</td><td>[b]Accept?[/b]</td><td>[b]Decline?[/b]</td></tr>"; while($r=mysql_fetch_array($xx)) { $p++; print " <tr> <td> {$r['username']}</td> <td>"; if($r['oaUSER1'] > 0) { print " {$s['username']} "; } print " "; if($r['oaUSER2'] > 0) { print " {$t['username']} "; } print " <td>[url='siblings.php?action=accept&ID={$r[']Yes[/url]</td><td>[url='siblings.php?action=decline&ID={$r[']No[/url]</td></tr></table> "; } } $xa=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaFROM=u.userid WHERE o.oaFROM=$userid"); $xb=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaUSER1=u.userid WHERE o.oaFROM=$userid"); $xc=$db->query("SELECT o.*,u.username FROM offeroath o LEFT JOIN users u ON o.oaUSER2=u.userid WHERE o.oaFROM=$userid"); $getoath2=$db->query("SELECT * FROM offeroath WHERE oaFROM=$userid"); $l=mysql_fetch_array($xb); $m=mysql_fetch_array($xc); $n=mysql_fetch_array($xa); if(mysql_num_rows($getoath2)==0) { print "You have not made any oaths. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else { print "You have offered to swear an oath with"; if($n['oaUSER1'] > 0) { print " {$l['username']} "; } print " "; if($n['oaUSER2'] > 0) { print "and {$m['username']} "; } print " <hr width=75%> [[url='siblings.php']Back[/url]]"; } } function offer_oath() { global $db,$ir,$c,$userid,$h; $_POST['ID'] = abs((int) $_POST['ID']); $_POST['ID2'] = abs((int) $_POST['ID2']); $detect=$db->query("SELECT swsib1,swsib2,username FROM users WHERE userid={$_POST['ID']}"); $detect2=$db->query("SELECT swsib1,swsib2,username FROM users WHERE userid={$_POST['ID2']}"); $r1=$db->fetch_row($detect); $r2=$db->fetch_row($detect2); $getoath=$db->query("SELECT * FROM offeroath WHERE oaFROM=$userid"); if(mysql_num_rows($getoath) > 0) { print " You have already offered someone the chance to be your sibling. Don't get cocky."; } elseif(!$_POST['ID'] && !$_POST['ID2']) { print " <form action='siblings.php?action=offer' method='post'> Please type the ID# of the player or players you wish to become siblings with below. Remember this is permanent and cannot be undone. "; if(!$ir['swsib1']) { print " ID: <input type='text' name='ID' value='{$_POST['ID']}' maxlength='10' length='10' size='10' width='10' /> "; } if(!$ir['swsib2']) { print " ID: <input type='text' name='ID2' value='{$_POST['ID2']}' maxlength='10' length='10' size='10' width='10' /> "; } print " <input type='submit' value='Offer' /> </form> <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($r1['swsib1'] > 0 && $_POST['ID'] > 0 && $_POST['ID2'] > 0) { print " {$r1['username']} already has a sworn sibling. You cannot make this offer. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($r1['swsib2'] > 0 && $_POST['ID'] > 0 && $_POST['ID2'] > 0) { print " {$r1['username']} already has a sworn sibling. You cannot make this offer. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($r2['swsib1'] > 0 && $_POST['ID'] > 0 && $_POST['ID2'] > 0) { print " {$r1['username']} already has a sworn sibling. You cannot make this offer. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($r2['swsib2'] > 0 && $_POST['ID'] > 0 && $_POST['ID2'] > 0) { print " {$r1['username']} already has a sworn sibling. You cannot make this offer. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($ir['swsib1'] && $ir['swsib2']) { print " You already have sworn siblings. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($ir['marriage'] > 0 && $_POST['ID'] == $ir['marriage']) { print " You cannot become siblings with your spouse! <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($ir['marriage'] > 0 && $_POST['ID2'] == $ir['marriage']) { print " You cannot become siblings with your spouse! <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($_POST['ID'] == $userid || $_POST['ID2'] == $userid) { print " You cannot become siblings with yourself! <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($ir['TP'] < 500) { print " You do not have enough Technique Points to do this. <hr width=75%> [[url='siblings.php']Back[/url]]"; } else { if($ir['swsib1']) { $auto1 = 0; } elseif($_POST['ID'] == 0) { $auto1 = 1; } else { $auto1 = 0; } if($ir['swsib2']) { $auto2 = 0; } elseif($_POST['ID2'] == 0) { $auto2 = 1; } else { $auto2 = 0; } if($ir['swsib1']) { $id = $ir['swsib1']; } else { $id = $_POST['ID']; } $db->query("INSERT INTO offeroath VALUES ('', $userid, $id, $auto1, '{$_POST['ID2']}', $auto2)"); $db->query("UPDATE users SET TP=TP-500 WHERE userid=$userid"); $q=$db->query("SELECT * FROM offeroath WHERE oaFROM=$userid"); $r=$db->fetch_row($q); event_add($id, "{$ir['username']} has asked someone to become your sibling. [url='siblings.php?action=myoaths']View[/url]", $c,'general'); event_add($_POST['ID2'], "{$ir['username']} has made you an offer. [url='siblings.php?action=myoaths']View[/url]", $c,'general'); print " Offer sent! <hr width=75%> [[url='siblings.php']Back[/url]]"; } } function accept_oath() { global $db,$ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); $q=$db->query("SELECT * FROM offeroath WHERE oaID={$_GET['ID']}"); $r=$db->fetch_row($q); if(!$_GET['ID']) { print " Invalid oath ID! <hr width=75%> [[url='siblings.php']Back[/url]]"; } else if($r['oaFROM'] == $userid) { print " You cannot accept this oath! <hr width=75%> [[url='siblings.php']Back[/url]]"; } elseif ($ir['TP'] < 250) { print "You do not have enough Technique Points to accept another's offer. You must have at least 250 points to do this."; } else { $q=$db->query("SELECT * FROM offeroath WHERE oaUSER1=$userid || oaUSER2=$userid"); $r=$db->fetch_row($q); event_add($r['oaFROM'], "{$ir['username']} has accepted your offer!", $c); $db->query("UPDATE users SET TP=TP-250 WHERE userid=$userid"); $db->query("UPDATE offeroath SET oaACCEPT1=1 WHERE oaID=$_GET[iD] AND oaUSER1=$userid"); $db->query("UPDATE offeroath SET oaACCEPT2=1 WHERE oaID=$_GET[iD] AND oaUSER2=$userid"); print " Oath accepted! <hr width=75%> [[url='siblings.php']Go here to finish.[/url]]"; } } function decline_oath() { global $db,$ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); $q=$db->query("SELECT * FROM offeroath WHERE oaID={$_GET['ID']}"); $r=$db->fetch_row($q); if(!$_GET['ID']) { print " Invalid proposal ID! <hr width=75%> ][url='siblings.php']Back[/url]]"; } else if($r['oaFROM'] == $userid) { print " You cannot decline this proposal! <hr width=75%> [[url='siblings.php']Back[/url]]"; } else { $q=$db->query("SELECT * FROM offeroath WHERE oaID={$_GET['ID']}"); $r=$db->fetch_row($q); event_add($r['oaFROM'], "{$ir['username']} has declined your offer.", $c); if($r['oaUSER1'] == $userid) { event_add($r['oaUSER2'], "{$ir['username']} has declined your offer.", $c); } elseif($r['oaUSER2'] == $userid) { event_add($r['oaUSER1'], "{$ir['username']} has declined your offer.", $c); } $db->query("DELETE FROM offeroath WHERE oaID={$_GET['ID']}"); print " Offer declined! <hr width=75%> [[url='siblings.php']Back[/url]]"; } } function defend_sibling() { global $db,$ir,$c,$userid,$h; $_GET['ID'] = abs((int) $_GET['ID']); if ($_GET['ID'] == $ir['swsib1'] || $ir['swsib2']) { if ($ir['bguard_oa']==3) { print "You can only do this action 3 times a day"; } elseif ($ir['crystals']>10) { print " You send some of your top men to help defend your sibling against attack. <hr width=75%> [[url='siblings.php']Back[/url]]"; $db->query("UPDATE users SET crystals=crystals-10, bguard_oa=bguard_oa+1 WHERE userid=$userid"); $db->query("UPDATE users SET bguard=bguard+20 WHERE userid={$_GET['ID']}"); event_add($_GET['ID'], "{$ir['username']} helped defend you against attacks.", $c); } else { print " What are you doing here? <hr width=75%> [[url='siblings.php']Back[/url]]"; } } } $h->endpage(); ?>   Add to daily crons $db->query("UPDATE users SET bguard_oa=0");
  6. UPDATE Sworn Siblings SET Accept Oath=Complete, Decline Oath=Complete, Defend=Complete, Offer Oath=Complete WHERE Aderik=Awesome; XD Seriously thou, I'm almost done. I'm just going to take a couple more days to tweak it over and make sure it's not a complete mess.
  7. Ok, I just had a complete brainflash and I can't believe I didn't realise this before. I was under the assumption using another's work as your own and selling it was bad right? Why would the person who works on this want to sell it to others? I'm not looking for an entirely new modification, I would like Richards basic template only modified to suit my needs. I'm sorry but I do not expect to pay 45$-160$ for an altered free modification. On that note I've decided to forgo my current additions to my game in favor of this one (it's bugging the hell out of me), which if I'm able to I will be posting as a free modification. I'll be working on it myself, but there is the part of getting the swearing an oath to multiple people bit I'm stuck on so any assistance with that particular addition would be appreciated. And... this should prolly be moved to Mods in Production.
  8. Actually I want the defend ability to simply add time to the NPC bodyguard ^_^ and you'd be right Paul.
  9. Using the free marriage mod and the bodyguard mod I linked as a base I'm really only asking for a snippet of code to allow two or three players to 'swear the oath' a snippit of code that will detect if the other peeps are in your gang and add points depending if they are a snippit of code that will give them the defend ability If anyone would care to give me a quote I would be more than happy to consider increasing my modification budget If anyone can create any of those code snippits by itself we can discuss payment as well As to The Bonded, this is not for that game :S I appreciate the luck thou considering
  10. Definately looking forward to this mod ^_^
  11. Can now be found here   Decided to move this from the back burner to the front burner. Based off Richard's Simple Marriage Mod   Where as marriage can be between two people, I'd like the sworn siblings mod to be between either two or three players. Once the 'oath is sworn', however, it is irreversable (barring admin intervention of course) Swearing the Oath Can be sworn by two or three players A third player can be sworn in at any time. Each sibling will receive an event to go to the Oath Garden where they can accept or reject the offer. If a player rejects the Oath then the other two will recieve an event telling them that it was rejected. Both the receiving players must accept the oath for it to complete. You cannot swear a new oath until an old oath has been completed. The sender may reject the oath until both receivers accepts or one receiver rejects. *Each sibling will appear on the other's profile. Sending an oath costs 500 Technique Points, or 'TP' per receiver. (500 for one, 1000 for two) *Player A will show up on B/C's profiles, Player B will show up on player A/C's profiles, etc Once in an oath you will see on the default page Status *Name of sibling 1 | **Gang Name | Display if they are online or offline | Display if they are in jail or hospital *Name of sibling 2 | **Gang Name | Display if they are online or offline | Display if they are in jail or hospital *Link to profile **Link to gang profile Defend Used in conjunction with Bodyguard. Affects the bguard on user table. Adds 20 minutes to bguard. Can only affect one sibling with each use. Can not be used if there is already a value in bguard EDIT: Costs 7 gold to use and decreases energy to 0 Other Effects If none of your siblings is in your gang than the respect you gain during war is 1 If one sibling is in your gang then the respect you gain during war is 2 If both siblings is in your gang than the respect you gain during war is 3 The respect that is lost from the other side is 1 regardless of who is in your gang If you feel you can assist with this mod message me here. Thank you for your time!
  12. I would also be interested in a mod like this, even if I could get some tips on how to go about making it myself.
  13. Fixed, thank you very much once again! :D
  14. Fatal error: Call to undefined function: get_gameranks() in /home/kingd34/public_html/cron_srun_day.php on line 48 I get this when I manually run the cron
  15. What I'm interested in is an addition to the cron job that runs daily interest. I know it should be simple but I can't wrap my brain around it. I'd like daily interest to be based on game rank, Example 1% for Recruit, Officer, Lt Govenor and Captain 2% for Govenor, General, Regent, and Grand General 3% for Chancellor, Duke, Prince, and King 4% for Emperor   Right now the cron job is $db->query("UPDATE users SET bankmoney=bankmoney*1.01 where bankmoney>0");   The function for get_gameranks is   function get_gameranks($level, $sapphire, $jade, $diamond, $garnet, $amber) { $tp=$level; if ( $tp <= 2 ) {return " Recruit"; } else if ( $tp <= 6 && $sapphire >= 5 && $amber >= 5 && $diamond >= 5 && $garnet >= 5 && $jade >= 5 ) { return " Officer"; } else if ( $tp >= 6 && $sapphire <= 4 || $amber <= 4 || $diamond <= 4 || $garnet <= 4 || $jade <= 4 ) { return " Officer"; } else if ( $tp <= 11 && $sapphire >= 10 && $amber >= 10 && $diamond >= 10 && $garnet >= 10 && $jade >= 10 ) { return " Lt. Governor"; } else if ( $tp >= 11 && $sapphire <= 9 || $amber <= 9 || $diamond <= 9 || $garnet <= 9 || $jade <= 9 ) { return " Lt. Governor"; } else if ( $tp <= 21 && $sapphire >= 20 && $amber >= 20 && $diamond >= 20 && $garnet >= 20 && $jade >= 20 ) { return " Captain"; } else if ( $tp >= 21 && $sapphire <= 19 || $amber <= 19 || $diamond <= 19 || $garnet <= 19 || $jade <= 19 ) { return " Captain"; } else if ( $tp <= 31 && $sapphire >= 30 && $amber >= 30 && $diamond >= 30 && $garnet >= 30 && $jade >= 30 ) { return " Governor"; } else if ( $tp >= 31 && $sapphire <= 29 || $amber <= 29 || $diamond <= 29 || $garnet <= 29 || $jade <= 29 ) { return " Governor"; } else if ( $tp <= 51 && $sapphire >= 50 && $amber >= 50 && $diamond >= 50 && $garnet >= 50 && $jade >= 50 ) { return " General"; } else if ( $tp >= 51 && $sapphire <= 49 || $amber <= 49 || $diamond <= 49 || $garnet <= 49 || $jade <= 49 ) { return " General"; } else if ( $tp <= 76 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Regent"; } else if ( $tp >= 76 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Regent"; } else if ( $tp <= 101 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Grand General"; } else if ( $tp >= 101 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Grand General"; } else if ( $tp <= 151 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Chancellor"; } else if ( $tp >= 151 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Chancellor"; } else if ( $tp <= 226 && $sapphire >= 100 && $amber >= 100 && $diamond >= 100 && $garnet >= 100 && $jade >= 100 ) { return " Duke"; } else if ( $tp >= 226 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Duke"; } else if ( $tp <= 301 && $sapphire >= 100 && $amber >= 100 && $diamond >= 100 && $garnet >= 100 && $jade >= 100 ) { return " Prince"; } else if ( $tp >= 301 && $sapphire <= 99 || $amber <= 99 || $diamond <= 99 || $garnet <= 99 || $jade <= 100 ) { return " Prince"; } else if ( $tp <= 401 && $sapphire >= 150 && $amber >= 150 && $diamond >= 150 && $garnet >= 150 && $jade >= 150 ) { return " King"; } else if ( $tp >= 401 && $sapphire <= 149 || $amber <= 149 || $diamond <= 149 || $garnet <= 149 || $jade <= 149) { return " King"; } else if ( $tp <= 500 && $sapphire >= 150 && $amber >= 150 && $diamond >= 150 && $garnet >= 150 && $jade >= 150 ) { return " Emperor"; } }     I'd be willing to pay a few dollars if it's a difficult piece but if anyone's interested in taking a crack at it I'd appreciate.
  16. The call I believe is this ".get_gameranks($level, $sapphire, $jade, $diamond, $garnet, $amber)." on my viewusers.php If I edit it to ".get_gameranks($r['level'], $r['smspph'], $r['smjade'], $r['smdiam'], $r['smgrnt'], $r['smambr'])." my lvl 500 becomes Emperor, but everyone else remains King. Reversing what I had as a function fixed that up though, recruit at top emperor at bottom, and now everything's perfect THANK YOU ALL SO MUCH! XD
  17. That's actually the reason I posted, I wasn't sure if what I was using actually gave them a value. So would I replace get_gameranks($level, $sapphire, $jade, $diamond, $garnet, $amber) with get_gameranks($r['level'], $r['sapphire'], $r['jade'], $r['diamond'], $r['garnet'], $r['amber']); ? And then adjust the If statements to match? or if there another area I would define their values? These global functions are trickier than other pages...
  18. function get_gameranks($level, $sapphire, $jade, $diamond, $garnet, $amber) { $tp=$level; if ( $tp == 500 && $sapphire >= 150 && $amber >= 150 && $diamond >= 150 && $garnet >= 150 && $jade >= 150 ) { return " Emperor"; } else if ( $tp <= 401 && $sapphire >= 150 && $amber >= 150 && $diamond >= 150 && $garnet >= 150 && $jade >= 150 ) { return " King"; } else if ( $tp >= 401 && $sapphire <= 149 || $amber <= 149 || $diamond <= 149 || $garnet <= 149 || $jade <= 149) { return " King"; } else if ( $tp <= 301 && $sapphire >= 100 && $amber >= 100 && $diamond >= 100 && $garnet >= 100 && $jade >= 100 ) { return " Prince"; } else if ( $tp >= 301 && $sapphire <= 99 || $amber <= 99 || $diamond <= 99 || $garnet <= 99 || $jade <= 100 ) { return " Prince"; } else if ( $tp <= 226 && $sapphire >= 100 && $amber >= 100 && $diamond >= 100 && $garnet >= 100 && $jade >= 100 ) { return " Duke"; } else if ( $tp >= 226 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Duke"; } else if ( $tp <= 151 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Chancellor"; } else if ( $tp >= 151 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Chancellor"; } else if ( $tp <= 101 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Grand General"; } else if ( $tp >= 101 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Grand General"; } else if ( $tp <= 76 && $sapphire >= 75 && $amber >= 75 && $diamond >= 75 && $garnet >= 75 && $jade >= 75 ) { return " Regent"; } else if ( $tp >= 76 && $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Regent"; } else if ( $tp <= 51 && $sapphire >= 50 && $amber >= 50 && $diamond >= 50 && $garnet >= 50 && $jade >= 50 ) { return " General"; } else if ( $tp >= 51 && $sapphire <= 49 || $amber <= 49 || $diamond <= 49 || $garnet <= 49 || $jade <= 49 ) { return " General"; } else if ( $tp <= 31 && $sapphire >= 30 && $amber >= 30 && $diamond >= 30 && $garnet >= 30 && $jade >= 30 ) { return " Governor"; } else if ( $tp >= 31 && $sapphire <= 29 || $amber <= 29 || $diamond <= 29 || $garnet <= 29 || $jade <= 29 ) { return " Governor"; } else if ( $tp <= 21 && $sapphire >= 20 && $amber >= 20 && $diamond >= 20 && $garnet >= 20 && $jade >= 20 ) { return " Captain"; } else if ( $tp >= 21 && $sapphire <= 19 || $amber <= 19 || $diamond <= 19 || $garnet <= 19 || $jade <= 19 ) { return " Captain"; } else if ( $tp <= 11 && $sapphire >= 10 && $amber >= 10 && $diamond >= 10 && $garnet >= 10 && $jade >= 10 ) { return " Lt. Governor"; } else if ( $tp >= 11 && $sapphire <= 9 || $amber <= 9 || $diamond <= 9 || $garnet <= 9 || $jade <= 9 ) { return " Lt. Governor"; } else if ( $tp <= 6 && $sapphire >= 5 && $amber >= 5 && $diamond >= 5 && $garnet >= 5 && $jade >= 5 ) { return " Officer"; } else if ( $tp >= 6 && $sapphire <= 4 || $amber <= 4 || $diamond <= 4 || $garnet <= 4 || $jade <= 4 ) { return " Officer"; } else if ( $tp <= 2 ) {return " Recruit"; } }   What I currently have. My level 500 has 300 of each of the points I want to give him the rank Emperor, currently ranked King.
  19. No change :(   Hehehe... please don't kill me when I say I don't know how to echo each value...
  20. Tried and no change. Also if I remove those what would I use to get the $sapphire, $garnet, etc etc to be defined for each player in the statements?
  21. Editted as per suggestion but same effect, every member account currently says the rank is 'King' Edit: To expand, I have 14 NPC accounts of varying levels. Each of the NPCs should be within the range of one of these, but they all say king. Even my lvl 500 says king and not emperor.
  22. Mkays, this time I'm super stumped and I triple checked these forums and others and now I'm simply confused. I want this so that the user will have to have certain points in order to attain a new rank.   function get_gameranks($level, $sapphire, $jade, $diamond, $garnet, $amber) { $tp=$level; $sapphire=$r['smspph']; $diamond=$r['smdiam']; $jade=$r['smjade']; $amber=$r['smambr']; $garnet=$r['smgrnt']; if ( $tp = 500 & $sapphire >= 150 & $amber >= 150 & $diamond >= 150 & $garnet >= 150 & $jade >= 150 ) { return " Emperor"; } else if ( $tp < 401 & $sapphire >= 150 & $amber >= 150 & $diamond >= 150 & $garnet >= 150 & $jade >= 150 ) { return " King"; } else if ( $tp > 401 & $sapphire <= 149 || $amber <= 149 || $diamond <= 149 || $garnet <= 149 || $jade <= 149) { return " King"; } else if ( $tp < 301 & $sapphire >= 100 & $amber >= 100 & $diamond >= 100 & $garnet >= 100 & $jade >= 100 ) { return " Prince"; } else if ( $tp > 301 & $sapphire <= 99 || $amber <= 99 || $diamond <= 99 || $garnet <= 99 || $jade <= 100 ) { return " Prince"; } else if ( $tp < 226 & $sapphire >= 100 & $amber >= 100 & $diamond >= 100 & $garnet >= 100 & $jade >= 100 ) { return " Duke"; } else if ( $tp > 226 & $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Duke"; } else if ( $tp < 151 & $sapphire >= 75 & $amber >= 75 & $diamond >= 75 & $garnet >= 75 & $jade >= 75 ) { return " Chancellor"; } else if ( $tp > 151 & $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Chancellor"; } else if ( $tp < 101 & $sapphire >= 75 & $amber >= 75 & $diamond >= 75 & $garnet >= 75 & $jade >= 75 ) { return " Grand General"; } else if ( $tp > 101 & $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Grand General"; } else if ( $tp < 76 & $sapphire >= 75 & $amber >= 75 & $diamond >= 75 & $garnet >= 75 & $jade >= 75 ) { return " Regent"; } else if ( $tp > 76 & $sapphire <= 74 || $amber <= 74 || $diamond <= 74 || $garnet <= 74 || $jade <= 74 ) { return " Regent"; } else if ( $tp < 51 & $sapphire >= 50 & $amber >= 50 & $diamond >= 50 & $garnet >= 50 & $jade >= 50 ) { return " General"; } else if ( $tp > 51 & $sapphire <= 49 || $amber <= 49 || $diamond <= 49 || $garnet <= 49 || $jade <= 49 ) { return " General"; } else if ( $tp < 31 & $sapphire >= 30 & $amber >= 30 & $diamond >= 30 & $garnet >= 30 & $jade >= 30 ) { return " Governor"; } else if ( $tp > 31 & $sapphire <= 29 || $amber <= 29 || $diamond <= 29 || $garnet <= 29 || $jade <= 29 ) { return " Governor"; } else if ( $tp < 21 & $sapphire >= 20 & $amber >= 20 & $diamond >= 20 & $garnet >= 20 & $jade >= 20 ) { return " Captain"; } else if ( $tp > 21 & $sapphire <= 19 || $amber <= 19 || $diamond <= 19 || $garnet <= 19 || $jade <= 19 ) { return " Captain"; } else if ( $tp < 11 & $sapphire >= 10 & $amber >= 10 & $diamond >= 10 & $garnet >= 10 & $jade >= 10 ) { return " Lt. Governor"; } else if ( $tp > 11 & $sapphire <= 9 || $amber <= 9 || $diamond <= 9 || $garnet <= 9 || $jade <= 9 ) { return " Lt. Governor"; } else if ( $tp < 6 & $sapphire >= 5 & $amber >= 5 & $diamond >= 5 & $garnet >= 5 & $jade >= 5 ) { return " Officer"; } else if ( $tp > 6 & $sapphire <= 4 || $amber <= 4 || $diamond <= 4 || $garnet <= 4 || $jade <= 4 ) { return " Officer"; } else {return " Recruit"; } }   The problem that is coming up is that the rank it gives all around is   else if ( $tp < 401 & $sapphire >= 150 & $amber >= 150 & $diamond >= 150 & $garnet >= 150 & $jade >= 150 ) { return " King"; }   I think I have the problem zeroed down to the fact that I'm not properly defining the $sapphire/$amber/$diamond/$garnet/$jade properly and it's ignoring it... unfortunately I haven't a clue how to fix it. Any help?
  23. I'm sorry I found what I wanted in another thread. Thank you for your patience
×
×
  • Create New...