Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Weapon/Armor Breaks In Battle  (Read 967 times)

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Weapon/Armor Breaks In Battle
« on: June 01, 2010, 12:09:50 PM »
Weapon/Armor Breaks In Battle [46]

This mod randomly breaks a users equipped weapons/armor during battle by random chance.
If their item is broken they will receive an event after the battle telling them.
Currently it is set to a 1/100 chance of breaking, but this is easily changed.
This mod is only available in v2.

The cost for this mod is:

Click here to purchase this mod.
Note: You need to be logged in to purchase the mod so you can receive the download link after purchase.
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

Newclear

  • Basic Member
  • *
  • Reputation Power: 22
  • Newclear has no influence.
  • Offline Offline
  • Posts: 13
    • MSN Messenger - joachima93@hotmail.com
    • Yahoo Instant Messenger - maliciousgamers@yahoo.com
    • View Profile
    • WWW
Re: Weapon/Armor Breaks In Battle
« Reply #1 on: April 09, 2011, 03:07:25 PM »
Awesome mod!

I have one question, now that i have done so my weapons break, is it possible to do so some weapons do not break ever? Make them unbreakable? If yes, how could i do that?
Logged
Owner of Andersen Marketing | Gold Rush is finally done! Check it out!

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: Weapon/Armor Breaks In Battle
« Reply #2 on: April 13, 2011, 06:17:42 AM »
It is possible, you would have to add an exception to the if() statements.
You would need to edit a LOT though, adding a field to the items table will mess up quite a few forms...
So the best route would probably be to create a new table for items that are "unbreakable".
You would need to also edit the item create function in the admin panel.

Unless you are fluent in php I would not suggest trying this yourself.
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.
 


This forum is now closed and has moved to a new location! Click here to find out why.