furn355 Posted May 14, 2009 Posted May 14, 2009 ONce you have equipped your weapon after a short delay it will return to your inventory.php so they can equip armour. Open up attack.php find the line.. print "Item {$r['itmname']} equipped successfully."; Remove the " and ; from the end of it then add... <META HTTP-EQUIV=Refresh CONTENT='1;url=inventory.php'> and replace the " and ; Also can be done for armor... Find the line print "Item {$r['itmname']} equipped successfully."; And do the same as above :) Just a little mod hope you enjoy it and off course there are plenty more places to use it Quote
Isomerizer Posted May 14, 2009 Posted May 14, 2009 Re: Automatically returns to inventory after equipping Let me get this right... You equip an item during an attack, and it redirects you back to inventory? Won't this cause you to run away from the fight? Does the default mccodes even allow equipping of items during an attack? I just don't get it.... :? Quote
furn355 Posted May 14, 2009 Author Posted May 14, 2009 Re: Automatically returns to inventory after equipping I know What it does is once you have clicked equip on the normal inventory screen, it will come up you have equipped " test weapon" succesfully. then will automatically take you back to the inventory without the need for clicking Quote
Miniman Posted May 14, 2009 Posted May 14, 2009 Re: Automatically returns to inventory after equipping Iso, I think he got it wrong Open up attack.php Should be Open up inventory.php If he didn't mean this then this addon is gonna phail. Quote
furn355 Posted May 14, 2009 Author Posted May 14, 2009 Re: Automatically returns to inventory after equipping haha thanks i did mean inventory.php editting it now :mrgreen: Quote
Isomerizer Posted May 14, 2009 Posted May 14, 2009 Re: Automatically returns to inventory after equipping Ah ok, good work. Quote
Uridium Posted May 15, 2009 Posted May 15, 2009 Re: Automatically returns to inventory after equipping Ive just given you a +1 cos your script as just helped me out on one of my mods Cheers and keep up the good work... Quote
Snake Posted January 21, 2010 Posted January 21, 2010 Ive just given you a +1 cos your script as just helped me out on one of my mods Cheers and keep up the good work... haha thanks i did mean inventory.php editting it now :mrgreen: ONce you have equipped your weapon after a short delay it will return to your inventory.php so they can equip armour. Open up attack.php find the line.. print "Item {$r['itmname']} equipped successfully."; Remove the " and ; from the end of it then add... and replace the " and ; Also can be done for armor... Find the line print "Item {$r['itmname']} equipped successfully."; And do the same as above :) Just a little mod hope you enjoy it and off course there are plenty more places to use it This Code Works For The equip_weapon.php and equip_armor.php and for the unequip files too....not the inventory.php....for those who didn't know....not for the smart asses who will say something about this 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.