Armors wont degrade?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.

Moderator: POL Developer

Post Reply
Breg
New User
Posts: 27
Joined: Sat Dec 09, 2006 11:58 am

Armors wont degrade?

Post by Breg » Sun Feb 01, 2009 5:09 am

Found my degrading code how where would I alter it to degrade abit faster and be it noticeable to players?

Code: Select all

						if (RandomInt (1000) == 1)
							defender_armor.hp := defender_armor.hp - 1;
							if (defender_armor.hp < 1)
								SendSysMessage (defender, "Your " + defender_armor.desc + " breaks!");
								DestroyItem (defender_armor);
							endif
Last edited by Breg on Sun Feb 01, 2009 3:08 pm, edited 1 time in total.

User avatar
Austin
Former Developer
Posts: 612
Joined: Wed Jan 25, 2006 2:30 am
Contact:

Re: Armors wont degrade?

Post by Austin » Sun Feb 01, 2009 12:56 pm

If you want it to wear out in combat then you need to make it wear out in combat.

If you're using a combat hook, you need to do-so there.
If you use the older mainhitscript concept then wear it out there.
-Austin

Breg
New User
Posts: 27
Joined: Sat Dec 09, 2006 11:58 am

Re: Armors wont degrade?

Post by Breg » Sun Feb 01, 2009 1:06 pm

Can ya gimme an example of the code if I paste some of the combat hook here?

User avatar
Austin
Former Developer
Posts: 612
Joined: Wed Jan 25, 2006 2:30 am
Contact:

Re: Armors wont degrade?

Post by Austin » Sun Feb 01, 2009 3:07 pm

-Austin

Post Reply