SphereServer BugTracker - SphereServer
View Issue Details
0002164SphereServerexecutable - windows buildpublic20-06-13 18:3029-10-13 04:06
DavideRei 
Ben 
normalmajoralways
resolvedfixed 
Windows 7 64bit
 
0.56c Nightly 
Automated (specify build number)
DiagonalWalkCheck, New_Triggers, NewPositionChecks, WalkCheck, Size_Optimise, NPCAct_Triggers
Buffs, NoPrefix
1590
0002164: Npcs attack players from a different building floor with AdvancedLos NPC
With AdvancedLos=01|02 npcs can attack and hit(with spells and arrows) a player on a different building floor.
<I.canseelos <src.uid>> in @ATTACK and @HITTRY triggers return 1

I tried in building with different type of floor(stone,sandstone,wood). No differences.

The problem does not occur with AdvancedLos=01
In this case <I.canseelos <src.uid>> in @ATTACK and @HITTRY triggers return 0
Go in a two or more floor building.
Add a monster(i tried with c_liche) on second floor
Go to first floor

The monster can attack you from second floor(or from another floor, no matter if you are on a higher or lower floor)
Client version: 7.0.7.3
No tags attached.
Issue History
20-06-13 18:30DavideReiNew Issue
03-07-13 12:08Gil AmarthIssue Monitored: Gil Amarth
03-07-13 12:10Gil AmarthNote Added: 0001567
15-09-13 21:01BenNote Added: 0001688
28-09-13 21:26XuNNote Added: 0001695
27-10-13 18:48BenNote Added: 0001749
27-10-13 19:13BenNote Edited: 0001749bug_revision_view_page.php?bugnote_id=0001749#r538
28-10-13 00:07BenAssigned To => Ben
28-10-13 00:07BenStatusnew => assigned
29-10-13 04:06BenNote Added: 0001752
29-10-13 04:06BenStatusassigned => resolved
29-10-13 04:06BenFixed in Version => 0.56c Nightly
29-10-13 04:06BenResolutionopen => fixed

Notes
(0001567)
Gil Amarth   
03-07-13 12:10   
I confirm this issue, actually I had to disable advancedlos from my server because this, it´s very problematic if npcs and players can attack others between floors.
(0001688)
Ben   
15-09-13 21:01   
Download latest nightly build and enable DEBUGF_LOS and run some tests.
Post any debug messages you receive.

I can't seem to find this bug.
(0001695)
XuN   
28-09-13 21:26   
http://pastebin.com/jK8Vts4W [^]

Just enable these flags and place yourself in wrong in this coords: 5864,532,15 and any npc that can cast or throw (i tested with an ogre) in this coords: 5864,537,15 and it can kill players.
(0001749)
Ben   
27-10-13 18:48   
(edited on: 27-10-13 19:13)
As for this location 5864,532,15... The issue here is the height of the monster. Ogre is 28, a wall is normally 20, mounted player goes up to 20.
Line of sight is measured from eyes wich is set at height - 1
Using these numbers, and ogre can see a player over this wall since there is no roof. The player can also see the ogre if not standing too close to the wall.
Not sure if that can be changed.

As for the 2 floor issue, still looking.

(0001752)
Ben   
29-10-13 04:06   
Issue with NPC attacking from other floor should now be fixed.