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
SERV.LOG debugging help
Author Message
ISOcol
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2022
Reputation: 0



Post: #1
SERV.LOG debugging help
// Gathered from Discord
// Add these events to your Sphere.ini Events /////////
// EventsPlayer=e_combat_stuff

[EVENTS e_combat_stuff]
ON=@Hit
SERV.LOG <NAME> HAVE JUST HIT <SRC.NAME>
IF (<WEAPON>)
SERV.LOG A WEAPON WAS USED: <WEAPON.NAME>
SERV.LOG <WEAPON.NAME>'S DAMAGE IS <WEAPON.DAM.LO> - <WEAPON.DAM.HI>
ELSE
SERV.LOG NO WEAPON WAS USED.
SERV.LOG <NAME>'S DAMAGE IS <DAM>
ENDIF

SERV.LOG DAMAGE STARTED AS <ARGN1>

SERV.LOG THE SKILL USED IN THIS ATTACK IS <ACTION>
IF (<ACTION> == WRESTLING) || (<ACTION> == MACEFIGHTING)
ARGN1 = <EVAL <ARGN1> + (<STR>/8)> //APPLY YOUR FORMULA HERE

ELIF (<ACTION> == ARCHERY) || (<ACTION> == FENCING)
ARGN1 = <EVAL <ARGN1> + (<DEX>/8)>

ELIF (<ACTION> == SWORDSMANSHIP)
ARGN1 = <EVAL <ARGN1> + (<DEX>/16) + (<STR>/16)>

ENDIF

SERV.LOG DAMAGE AFTER STATS BONUS ACCORDING TO THE SKILL IS <ARGN1>

IF (<SRC.ISPLAYER>) //PLAYER HITS ANOTHER PLAYER
SERV.LOG THE ARMOR OF THE DEFENDANT IS <SRC.ARMOR>
LOCAL.DAMAGE_REDUCTION = <EVAL <SRC.ARMOR>/20> //APPLY YOUR FORMULA HERE

ELSE //PLAYER HITS A NPC
SERV.LOG THE ARMOR OF THE DEFENDANT IS <SRC.AC>
LOCAL.DAMAGE_REDUCTION = <EVAL <SRC.AC>/20> //APPLY YOUR FORMULA HERE

ENDIF
ARGN1 -= <LOCAL.DAMAGE_REDUCTION>
SERV.LOG AFTER DAMAGE REDUCTION OF <LOCAL.DAMAGE_REDUCTION>, DAMAGE IS <ARGN1>
(This post was last modified: 08-28-2022 07:56 AM by ISOcol.)
08-28-2022 07:43 AM
Find all posts by this user Like Post Quote this message in a reply
Aris
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2022
Reputation: 0



Post: #2
RE: SERV.LOG debugging help
Thanks
10-14-2022 04:37 PM
Find all posts by this user Like Post Quote this message in a reply
VIision
Apprentice
*

Posts: 14
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2024
Reputation: 0



Post: #3
RE: SERV.LOG debugging help
thanks
11-27-2024 02:06 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)