sahisahi

Member
I added some custom landtile (cave) they have Impassable and Wall flags added.


then i created a custom mob that do certain things on his OnThink method, theres a LOS check, for some reason mob still sending the ebolt effect through wall.

Any clue?

if i add Item 74 (wall) to the game the mob just wall through unless i set it to non movable, is this even normal?

C#:
    public override void OnThink()
        {
            base.OnThink();
           
             if (Combatant == null)
             {
                this.CurrentSpeed = 0.1;
                return;
             }
           
if (this.Combatant.Player && Combatant.InLOS(this))
            {
               
                if ( Utility.Random( 58 ) == 1 )
            {
                SendEBolt( Combatant );
            }

cave.png
 
If it's a relatively small area where you need to control LOS, you can always add LOSBlockers on top of the affected tiles.
 
yeah, what Falkor said.
I didn't pay enough attention to notice you were in the land tiles section. A land tile can't be used for los that way, because it has no height.
 
Another random idea -- is there a copy of your custom file (UOP or MUL) in both your client's folder and the folder that ServUO uses for client files? If the server doesn't have a copy of that file it doesn't know anything about the custom tile!
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back