The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can cast spells under map
Author Message
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #1
Can cast spells under map
Sphere 56b 2012 year.

Hello.
Players with Injection can cast spells like as:
Wall of Stone, Paralyze field, Energy wall
and drop items UNDER MAP

How it possible to fix it?

I was try like this:
Code:
ON=@SPELLCAST
IF (<ARGN1>==24)
    IF !(<SRC.TARG.CANSEELOS>)
    SRC.SYSMESSAGE @0486 Вне поля видимости.
    RETURN 1
    ENDIF
ENDIF

SERV.LOG <SRC.NAME> <SRC.UID> Z: <SRC.P.Z> cast spell: <SRC.TARGP.Z>
But this is not help.


Attached File(s) Thumbnail(s)
   
(This post was last modified: 10-13-2017 05:09 AM by Russian.)
10-13-2017 04:47 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Can cast spells under map
Try:
Code:
ON=@SPELLCAST
IF (<ARGN1>==24)
    IF !(<SRC.CANSEELOS <SRC.TARGP>>)
    SRC.SYSMESSAGE @0486 Вне поля видимости.
    RETURN 1
    ENDIF
ENDIF

SERV.LOG <SRC.NAME> <SRC.UID> Z: <SRC.P.Z> cast spell: <SRC.TARGP.Z>
10-13-2017 05:34 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #3
RE: Can cast spells under map
Code:
ON=@SPELLCAST
IF ((<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)) && !(<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>,<SRC.TARGP.Z>,<SRC.TARGP.M>).Z>==<SRC.TARGP.Z>)
SERV.LOG <SRC.NAME> <SRC.UID> try to cast wall under map!
RETURN 1
ENDIF
I hope that is can help to fix bug. But now can not check this, because have not Injection.
10-13-2017 05:39 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #4
RE: Can cast spells under map
(10-13-2017 05:34 AM)darksun84 Wrote:  Try:
Code:
!(<SRC.CANSEELOS <SRC.TARGP>>)
That is not help ;(

I think, my Sphere does not read any .Z coordinates.
Because when player cast Wall of Fire on 2 floor, the NPC from 1rst floor is now attack this player.
May be some wrong from Sphere.ini setings?


Attached File(s) Thumbnail(s)
   
(This post was last modified: 10-13-2017 10:15 PM by Russian.)
10-13-2017 10:07 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Can cast spells under map
Check some of the Experimental Flags in the sphere.ini, there are some related to Line of Sight.
10-13-2017 10:21 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #6
RE: Can cast spells under map
That is all sphere.ini experimental flags:
Code:
// Experimental flags
// Flags for options that affect server behaviour and which might affect compatibility
// See the revisions.txt file for more details on this
// EF_DiagonalWalkCheck         = 00000001
// EF_UNICODE                   = 00000002 // No on Linux
// EF_New_Triggers              = 00000008
// EF_Intrinsic_Locals          = 00000020
// EF_Item_Strict_Comparison    = 00000040
// EF_NewPositionChecks         = 00000080 // Do not set while server is running !!!
// EF_WalkCheck                 = 00000100 //Не ставить.
// EF_AllowTelnetPacketFilter   = 00000200 // Enables packet filtering for telnet connections as well
// EF_Script_Profiler           = 00000400
// EF_Size_Optimise             = 00000800
// EF_Minimize_Triggers         = 00001000 // Minimize trigger calls (use only 0.51 triggers)
// EF_DamageTools               = 00002000 // damage tools (and fire @damage on them) while mining or lumberjacking
// EF_PetSlots                = 00004000 // INCOMPLETE YET! DO NOT USE until this warning is removed!
// EF_UsePingServer             = 00008000 // Enable the experimental Ping Server (for showing pings on the server list, uses UDP port 12000)
// EF_NPCAct_Triggers           = 00010000 // Enable @NPCSpecialAction and @NPCAction triggers (mutual exclusive with EF_Minimize_Triggers)
// EF_NetworkOutThread          = 00800000 // Send network data in a separate thread
// EF_Specific                  = 01000000 // Specific behaviour, not completly tested
Experimental=00000001|00000002|00000008|00000080|08000

// Option flags
// Flags for options that affect server behaviour but not compatibility
// See the revisions.txt file for more details on this
// OF_Command_Sysmsgs           = 00000008 //Shows status of hearall, allshow, allmove... commands after toggling them
// OF_OSIMultiSight             = 00000020
// OF_Items_AutoName            = 00000040
// OF_FileCommands              = 00000080 // This enables all FILE commands, information about this command is here
// OF_NoItemNaming              = 00000100 // If enabled, prevents Sphere from naming crafted items ("Crafted by...")
// OF_NoHouseMuteSpeech         = 00000200
// OF_Flood_Protection          = 00001000
// OF_Buffs                     = 00002000
// OF_NoPrefix                  = 00004000 // Add prefix "A" and "An" to itemnames or not
// OF_DyeType                   = 00008000 // if set allows using i_dye on all t_dye_vat instead of only i_dye_tub
// OF_DrinkIsFood               = 00010000 // type T_DRINK will increase FOOD lvl like T_FOOD
// OF_Specific                  = 01000000 // Specific behaviour, not completly tested
OptionFlags=08|080|0200|01000|04000
Sphere.exe is 2012 year, that is my problem, because i can not update to relase version.
How settings need to set?
(This post was last modified: 10-13-2017 10:36 PM by Russian.)
10-13-2017 10:36 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: Can cast spells under map
At this point i think that the Experimental flags will not fix the problem, but try this:

For each field, go to their item definition and add this in the @create

Code:
[ITEMDEF 0398c]
DEFNAME=i_fx_field_fire
TYPE=t_fire
CATEGORY=Animations
SUBSECTION=Fire Fields
DESCRIPTION=Fire Field West/East
DUPELIST=0398d,0398e,0398f,03990,03991,03992,03993,03994,03995
ON=@Create
   MOREZ=1
   timerf 1, z = <src.z>

You have to do this for each field itemdef animation that has the @create trigger
(This post was last modified: 10-13-2017 11:44 PM by darksun84.)
10-13-2017 11:44 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #8
RE: Can cast spells under map
This fix crete a new bug on this sotuation.

When ground with swings.


Attached File(s) Thumbnail(s)
       
(This post was last modified: 10-14-2017 01:10 AM by Russian.)
10-14-2017 01:05 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #9
RE: Can cast spells under map
Well the z need to be adjusted, probably src.z is not enough!
10-14-2017 01:37 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #10
RE: Can cast spells under map
How it possible to fix this bug? Sad
10-14-2017 03:26 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)