|
||
|
|||||||
| Subsystems This forum is for modifications to the various subystem code of RunUO |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
|
The canbedamaged function never control if the mobile is alive or not.
You can found the standard function in mobile.cs at line 4900 about...: Code:
public virtual bool CanBeDamaged()
{
return !m_Blessed;
}
Code:
public virtual bool CanBeDamaged()
{
return !m_Blessed && Alive;
}
![]() |
|
|
|
|
|
#3 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
||
|
|
|
|
|
#8 (permalink) | |
|
Forum Expert
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
|
Quote:
It doesn't take all that much work to put the spaces back in... I have to agree with Greystar / Phantom as well, why would you bother making a core change if you really don't have to?? |
|
|
|
|
|
|
#9 (permalink) |
|
Forum Novice
|
1) I have corrected the post
2) I dont told you to do the modding, if you like it, do it, else do everything you want, we are in a free cuntry 3) I dont read posting limitation in this forum, if you dislike my suggestions I take for myself, no problem, I gain nothing to post here. |
|
|
|
|
|
#10 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
This forum is for discussing and posting core changes. That's what he did.
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#11 (permalink) | ||
|
Forum Expert
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
|
Quote:
2) I never said you shouldn't post the change, but when you do it's good to get it right. 3) Que? Quote:
The only reason I replied is because I dislike it when people post a "fix" that can have a rather significant impact on somebodies files, and then don't even post correct code. I know, people should be able to spot this themselves but we all know there are plenty of poeple here who only download/use other people their changes and files and who know practically nothing about RunUO or coding. Even though I personally think those people don't really belong in the community, we have to give them a chance to start somewhere and provide them with clear and accurate information. Nothing is worse then learning from incorrect code. Just my 2 cents. |
||
|
|
|
|
|
#12 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
Incorrect code is a problem, yes.
As for severely impacting the code, that's kinda what the forum is for ;-> If someone's reading this forum, they are already editing the core most likely.
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#13 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,870
|
Lets everyone try to be nice, mmk?
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#16 (permalink) |
|
Newbie
|
I know this is an Old Post, but I thought I'd mention that in AOS.cs:
Code:
public static int Damage( Mobile m, Mobile from, int damage, int phys, int fire, int cold, int pois, int nrgy, bool keepAlive )
{
if ( m == null || m.Deleted || !m.Alive || damage <= 0 )
return 0;
BUT, changing it in BaseCreatures.cs can affect the majority of them, and then you can overide in the few others that Create Mobiles from Base Mobile.cs Otherwise, you can just do it in the Core or Create your OWN Mobile.cs that Inherets from Mobile.cs and takes the Place of Mobile.cs for the Other Files. Altho I think this has been discussed many times before. 'my two cents worth' |
|
|
|
|
|
#17 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
The reason why this was not put into the core is just for that reason. Maybe someone wants to make a dead mobile which can be damaged.... I dunno why, but just maybe. It is NOT a bug because the check is in AOS.cs like you stated, where if the CanBeDamaged function fails, the Alive check will correct it once they are attempted to be damaged.
mobile.Damage() -> Aos.Damage, so there is no reason for this modification at all. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|