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

  • Unchained
    Custom (Classic)
    • Players
    • 142 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 88 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 86 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 83 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 31 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 22 Online
    • 30 Peak
  • Arth
    Custom (Modern)
    • Players
    • 22 Online
    • 34 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 20 Online
    • 172 Peak
  • Heritage
    New Legacy
    • Players
    • 19 Online
    • 41 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back