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
CanUse extension
Author Message
golfin
Banned

Posts: 213
Likes Given: 2
Likes Received: 32 in 28 posts
Joined: Nov 2017

Eranova

Post: #3
RE: CanUse extension
Yes, they are added as well as function iswarrior, isranger, issorcerer, isalchemyst and isthiev.

Code:
[DEFNAME canuse_flags]
can_u_all            0
can_u_male            01
can_u_female        02
can_u_human            04
can_u_elf            08
can_u_gargoyle        010
can_u_none            020
can_u_warrior        040
can_u_ranger        060
can_u_sorcerer        080
can_u_alchemyst    100
can_u_thiev            200
Code:
[function IsWarior]
IF ( (<SKILLCLASS>==Class_Warrior) )
   RETURN 1
ENDIF
RETURN 0

[function IsRanger]
IF ( (<SKILLCLASS>==Class_Ranger) )
   RETURN 1
ENDIF
RETURN 0

[function IsSorcerer]
IF ( (<SKILLCLASS>==Class_Sorcerer) )
   RETURN 1
ENDIF
RETURN 0

[function IsAlchemyst]
IF ( (<SKILLCLASS>==Class_Alchemyst) )
   RETURN 1
ENDIF
RETURN 0

[Function IsThiev]
IF ( (<SKILLCLASS>==Class_Thiev) )
   RETURN 1
ENDIF
RETURN 0
(This post was last modified: 10-23-2018 06:58 PM by golfin.)
10-23-2018 06:55 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
CanUse extension - golfin - 10-23-2018, 03:01 AM
RE: CanUse extension - darksun84 - 10-23-2018, 06:12 PM
RE: CanUse extension - golfin - 10-23-2018 06:55 PM
RE: CanUse extension - darksun84 - 10-23-2018, 08:30 PM
RE: CanUse extension - golfin - 10-23-2018, 09:14 PM
RE: CanUse extension - golfin - 10-25-2018, 04:35 AM

Forum Jump:


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