WhiteWolf

Member
Hey you all
I am Building a new system for Lumberjacking I know we have the Old system and UltimaLive system
So can you all give me some input and what you think? Its not done and still working the bugs out of it
and still working the artwork but here you go have a look

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Thank you
 
Looks great so far!

Can you explain a little bit how it works? Does it update maps in real time like Ultima Live, or are the trees "spawned" etc?
 
If I am not wrong these Trees are Mobiles? I guess the part where you see the hatchets hits is you turning it? And then you got the death animation.

Or its using the IDamageItem thing, but I am not sure about animations for that. unless you used different itemids and changed them per script.

Ok, now to the critic part ;) it looks pretty good but the tree stump shouldnt move around. Not sure if you want the damage number to display there. Also after the tree fell down it stripped all leaves. You could either keep them on the tree or use the leaf itemid and spawn some around? But again it looks pretty nice.
 
Very awesome to see a tree that will fall over with chopping :) now can the tree be cut up after this?
 
Looks great so far!

Can you explain a little bit how it works? Does it update maps in real time like Ultima Live, or are the trees "spawned" etc?
Thank you m309 feed back
As it is right now is a spawned system. Its 20% done
Its going to start with a seed and it will grow into a big tree and when its big you can chop it down and when its down you need to remove the leaves and branches but when you remove the branches it will become Kindling and for the trunk there is levels for it to cut.
Like the first level trunk you can build in ships or log houses.
Second level you can build boards.
so on so on.

Its going to link up to all UO system
[doublepost=1492717659][/doublepost]
If I am not wrong these Trees are Mobiles? I guess the part where you see the hatchets hits is you turning it? And then you got the death animation.

Or its using the IDamageItem thing, but I am not sure about animations for that. unless you used different itemids and changed them per script.



Ok, now to the critic part ;) it looks pretty good but the tree stump shouldnt move around. Not sure if you want the damage number to display there. Also after the tree fell down it stripped all leaves. You could either keep them on the tree or use the leaf itemid and spawn some around? But again it looks pretty nice.

Thank you for your input
Yes its in Mobiles for right now.
and I did two things I did artwork and anim in to one.
For the Leaves go right now its remove it for you but I am still working on it that you have to remove the leaves and some will come off when going down.
For the moving around that is artwork bug that I need to fix up (Right).
The Number to display ---I don't want to have that too Trying to remove that and the Blood..


Thank you
[doublepost=1492717721][/doublepost]
Very awesome to see a tree that will fall over with chopping :) now can the tree be cut up after this?
Thank you for your input

Yes when its fully Done its going to Link up to the full UO system

Thank you
 
Last edited:
Found your idea interesting and actually started to fiddle. What you would want is at least 1 Core edit I would recommend 2. And for the Blood you would need the optional second Core edit, unless you want to do it in BaseCreature.

What I did!
Server - Mobile.cs Line ~5260
I took this,
Code:
        private static VisibleDamageType m_VisibleDamageType;

        public static VisibleDamageType VisibleDamageType { get { return m_VisibleDamageType; } set { m_VisibleDamageType = value; } }

and changed it to
Code:
        public static VisibleDamageType VisibleDamageType { get; set; }

        private VisibleDamageType m_VisibleDamageTypeInstance = VisibleDamageType;
        public virtual VisibleDamageType VisibleDamageTypeInstance { get { return m_VisibleDamageTypeInstance; } }

The previous version allowed you to show or hide the damage numbers on a global setting, here it defaults to a global value based on the Expansion as befor but you get the option to override it in the creature.

Next part:
Server - Mobile.cs Line ~5547
lets change this (I am not sure why it wasnt using the property in the first place)
Code:
switch (m_VisibleDamageType)
to
Code:
switch (VisibleDamageTypeInstance)

Voila! Now you can override the property in the TreeMobile you have there! So no more numbers for it the others can still get them.


Now for the blood!
What I did and kind of liked was the way to add this to the core itself as well.
Code:
        private bool m_CanBleed = true;
        public virtual bool CanBleed { get { return m_CanBleed; } }

Reason why a property and not a simple variable in this case. Well because you can then override the property and you would not care about the (de-)serialization and if you like you can add some logic depening on the monster there too for special monster types.


And now so this actually has an effect!
Script - BaseWeapon ~2976
You will find the AddBlood method there.
Code:
        public virtual void AddBlood(Mobile attacker, Mobile defender, int damage)
        {
            if (damage > 0)
All we need to do there is add our new CanBleed property in the check! Like this ..
Code:
        public virtual void AddBlood(Mobile attacker, Mobile defender, int damage)
        {
            if (damage > 0 && defender.CanBleed)

Dont forget to recompile and set your tree up as well ;)
 
Found your idea interesting and actually started to fiddle. What you would want is at least 1 Core edit I would recommend 2. And for the Blood you would need the optional second Core edit, unless you want to do it in BaseCreature.

What I did!
Server - Mobile.cs Line ~5260
I took this,
Code:
        private static VisibleDamageType m_VisibleDamageType;

        public static VisibleDamageType VisibleDamageType { get { return m_VisibleDamageType; } set { m_VisibleDamageType = value; } }

and changed it to
Code:
        public static VisibleDamageType VisibleDamageType { get; set; }

        private VisibleDamageType m_VisibleDamageTypeInstance = VisibleDamageType;
        public virtual VisibleDamageType VisibleDamageTypeInstance { get { return m_VisibleDamageTypeInstance; } }

The previous version allowed you to show or hide the damage numbers on a global setting, here it defaults to a global value based on the Expansion as befor but you get the option to override it in the creature.

Next part:
Server - Mobile.cs Line ~5547
lets change this (I am not sure why it wasnt using the property in the first place)
Code:
switch (m_VisibleDamageType)
to
Code:
switch (VisibleDamageTypeInstance)

Voila! Now you can override the property in the TreeMobile you have there! So no more numbers for it the others can still get them.


Now for the blood!
What I did and kind of liked was the way to add this to the core itself as well.
Code:
        private bool m_CanBleed = true;
        public virtual bool CanBleed { get { return m_CanBleed; } }

Reason why a property and not a simple variable in this case. Well because you can then override the property and you would not care about the (de-)serialization and if you like you can add some logic depening on the monster there too for special monster types.


And now so this actually has an effect!
Script - BaseWeapon ~2976
You will find the AddBlood method there.
Code:
        public virtual void AddBlood(Mobile attacker, Mobile defender, int damage)
        {
            if (damage > 0)
All we need to do there is add our new CanBleed property in the check! Like this ..
Code:
        public virtual void AddBlood(Mobile attacker, Mobile defender, int damage)
        {
            if (damage > 0 && defender.CanBleed)

Dont forget to recompile and set your tree up as well ;)

Thank you
That is cool that will save me lot of time Two thumbs up
By the way What Server are you running? Runuo or Servuo?

Why I am asking is I don't have Mobile.cs I do have playerMobile
 
I am running ServUO, you will have Mobile.cs in the Server folder not in your script folder (wrote it next to the filename)
 
I am running ServUO, you will have Mobile.cs in the Server folder not in your script folder (wrote it next to the filename)

Thank you for replying fast But I don't have that I am Running Runuo 2.2
I did all search on it
 
Oh right, in at least that version the RunUO Core only came by compiled, that will complicate the approach to do this in RunUO 2.2

I dont really know if there is a better way then but in that case you would need to override and rewrite the OnDamge function to allow for the VisibleDamageType to be different in that case. The thing is though, I do not know if the method is the same as it is currently in ServUO.

The CanBleed functionality would go into BaseCreature, the AddBlood method change basically stays the same but you would want something like.
Code:
if(damage >0 && !(defender is BaseCreature && !defender.CanBleed))

But is there any reason you stick to that old version?
 
Oh right, in at least that version the RunUO Core only came by compiled, that will complicate the approach to do this in RunUO 2.2

I dont really know if there is a better way then but in that case you would need to override and rewrite the OnDamge function to allow for the VisibleDamageType to be different in that case. The thing is though, I do not know if the method is the same as it is currently in ServUO.

The CanBleed functionality would go into BaseCreature, the AddBlood method change basically stays the same but you would want something like.
Code:
if(damage >0 && !(defender is BaseCreature && !defender.CanBleed))

But is there any reason you stick to that old version?

LOL I started with Das mode U7 Love U8 I am Old Man.... I don't like how servuo is coded I know why it is code that way it will read faster in run time but I like Runuo its coded is I and read it better
 
What do you mean with you dont like how it is coded? ServUO is an updated fork of RunUO :p
Well the code look like this in runuo
using System;
using System.Text;
using System.Collections;
using Server.Network;
using Server.Targeting;
using Server.Mobiles;
using Server.Spells;
using Server.Spells.Necromancy;
using Server.Spells.Bushido;
using Server.Spells.Ninjitsu;
using Server.Factions;
using Server.Engines.Craft;
using System.Collections.Generic;
using Server.Spells.Spellweaving;

And Servuo codes look like this

Well the code look like this in runuo
using System; using System.Text; using System.Collections; using Server.Network; using Server.Targeting; using Server.Mobiles; using Server.Spells; using Server.Spells.Necromancy; using Server.Spells.Bushido; using Server.Spells.Ninjitsu; using Server.Factions; using Server.Engines.Craft; using System.Collections.Generic; using Server.Spells.Spellweaving;

This is how it look like and I don't like it lol
 
You should use a proper editor, that is just a different line ending that your editor doesnt understand properly and sees it as an space.

I only know that the basic windows editor does this.
 
You should use a proper editor, that is just a different line ending that your editor doesnt understand properly and sees it as an space.

I only know that the basic windows editor does this.

Well How I code is in Notepad....yup old man LOL
 
Even an old man can get used to a better tool ;) I personally like Sublime Text as a text editor. You can drop in your folder and do fast searches and directly open the files based on names without searching them down ;) but thats a little advanced ^^. But I guess you could try Notepad++ since it is more of a basic but solid editor.
 
Even an old man can get used to a better tool ;) I personally like Sublime Text as a text editor. You can drop in your folder and do fast searches and directly open the files based on names without searching them down ;) but thats a little advanced ^^. But I guess you could try Notepad++ since it is more of a basic but solid editor.
Nice.............Anyway I am trying your stuff out and nothing is working on my end ..
But Good news though I have New Artwork Done For the logs and Kindling
 
I cant say if it works on RunUO 2.2 since I didnt test it there, that was just speculation of how it should work ;).

But I can tell you that what I wrote would work on ServUO, since I tested that.
 
I cant say if it works on RunUO 2.2 since I didnt test it there, that was just speculation of how it should work ;).

But I can tell you that what I wrote would work on ServUO, since I tested that.
Notepad++ should work no prob with RunUO 2.2 I was using it with that and that method should be found in BaseCreature.cs in Runuo 2.2
 
Well thats a necro post if I saw one :D also, I never said that notepad++ would not work with servuo / runuo. It was more about the edit to mobile.cs
 
lol my bad Pyro I wasn't paying attention to the year just the day of the original post.... April 19th .... just floating through the posts on here. my bad i misread what you said also you went back to the original topic.....
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back