Uridium Posted April 18, 2010 Posted April 18, 2010 Some time ago i made a Mod that resulted in weapons being damaged from attacking or attacked and for the life of me i cant find it here on MWG has anyone got the Original version i wrote and could you post it for me as i want to revamp it. Im aware the older version was crap Hence why i want to try and upgrade it with other options.... Cheers Quote
Nicholas Posted April 19, 2010 Posted April 19, 2010 ive asked for this mod, weapon/armour condition mod where it starts at 100% and drops down to 0%, the lower the % the weaker to weapon/armour :) hope someone still has it, so you can revamp it!!! Quote
rulerofzu Posted May 20, 2010 Posted May 20, 2010 Came across this I believe it is part of what your looking for although I cannot remember if there is more to it other than an addition in the inventory and of course the sql. repair.php <?php include "globals.php"; print"<h1>Items Repair Center</h1> "; if($ir['itmdamage']>99) die(" <h3>This Item Doesnt Need Repairing</h3> <a href='inventory.php'> <h3>Inventory</h3></a>"); $_GET['ID']=abs((int) $_GET['ID']); $ir=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"));$cost=$ir['itmdamage']*10; $cf=number_format($cost); if($ir['money'] < $cost){ die("Sorry, you do not have enough money to repair this item. You need \$$cf. <a href='inventory.php'> <h3>Back</h3></a>");} print "You successfully repaired your Item and \$$cf. was deducted from your account <a href='inventory.php'> <h3>Back</h3></a>"; $db->query("UPDATE users SET money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET itmdamage=100 WHERE userid={$ir['userid']}"); $h->endpage(); ?> Condition {$ir['itmdamage']}% [[url='repairs.php?ID={$ir[']Repair[/url]] It was pretty basic so didnt end up using it. Found in a old back up. 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.