Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.... :?

Posted

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

Posted

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.

Posted

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...

  • 8 months later...
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...