Can cast spells under map - Russian - 10-13-2017 04:47 AM
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.
RE: Can cast spells under map - darksun84 - 10-13-2017 05:34 AM
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>
RE: Can cast spells under map - Russian - 10-13-2017 05:39 AM
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.
RE: Can cast spells under map - Russian - 10-13-2017 10:07 PM
(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?
RE: Can cast spells under map - darksun84 - 10-13-2017 10:21 PM
Check some of the Experimental Flags in the sphere.ini, there are some related to Line of Sight.
RE: Can cast spells under map - Russian - 10-13-2017 10:36 PM
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?
RE: Can cast spells under map - darksun84 - 10-13-2017 11:44 PM
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
RE: Can cast spells under map - Russian - 10-14-2017 01:05 AM
This fix crete a new bug on this sotuation.
When ground with swings.
RE: Can cast spells under map - darksun84 - 10-14-2017 01:37 AM
Well the z need to be adjusted, probably src.z is not enough!
RE: Can cast spells under map - Russian - 10-14-2017 03:26 AM
How it possible to fix this bug?
|