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
Parry Skill Help
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: Parry Skill Help
return 2 is the same of let the trigger/function do its default action like it doesn't have any return set. So return 2 basically stop the code execution and make the trigger return it's default result. Since you're only using the trigger for 1 purpose, you doesn't need to use return 2 at the end, this will make the trigger return its default value, which it will already do it anyway even with no return 2

so I can't see nothing wrong on this code
Code:
ON=@UseQuick
IF !(<FINDLAYER.layer_hand2.ISARMOR>)   //always fail the skill if there's no shield equipped
  return 0
ENDIF
it will make the char fail the skill if there's no shield equipped (skill fail = no skill gain), or it will proceed with default result/gain if the shield exist
03-31-2017 06:09 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Messages In This Thread
Parry Skill Help - UltimaGo - 03-30-2017, 09:36 AM
RE: Parry Skill Help - Coruja - 03-30-2017, 10:28 AM
RE: Parry Skill Help - YoAmoElUO - 03-30-2017, 10:42 AM
RE: Parry Skill Help - Coruja - 03-30-2017, 01:42 PM
RE: Parry Skill Help - UltimaGo - 03-31-2017, 12:59 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 02:01 AM
RE: Parry Skill Help - UltimaGo - 03-31-2017, 04:33 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 05:15 AM
RE: Parry Skill Help - Coruja - 03-31-2017 06:09 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 07:43 AM
RE: Parry Skill Help - UltimaGo - 03-31-2017, 08:11 AM
RE: Parry Skill Help - Gregory - 09-28-2019, 10:50 PM

Forum Jump:


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