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
races bodies
Author Message
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #4
RE: races bodies
Osiris, here is some funcitons i use to make this verifications:

Code:
[function ishuman]
if (<body> == c_man) || (<body> == c_woman)
return 1
endif
return 0

[function isgargoyle]
if (<body> == c_gargoyle_male) || (<body> == c_gargoyle_female)
return 1
endif
return 0

[function iselven]
if (<body> == c_elf_male) || (<body> == c_elf_female)
return 1
endif
return 0

[function ismale]
if (<body> == c_gargoyle_male) || (<body> == c_elf_male) || (<body> == c_man)
return 1
endif
return 0

[function isfemale]
if (<body> == c_gargoyle_female) || (<body> == c_elf_female) || (<body> == c_woman)
return 1
endif
return 0

[FUNCTION ishumanaid]
if (<ismale> || <isfemale>)
RETURN 1
endif
RETURN 0

There is a function that checks if the player is male or female in any race.
Hope it help you!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
09-02-2015 07:03 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
races bodies - Osirirs - 09-01-2015, 11:42 AM
RE: races bodies - Coruja - 09-01-2015, 01:05 PM
RE: races bodies - XuN - 09-01-2015, 05:16 PM
RE: races bodies - escribano - 09-02-2015 07:03 AM
RE: races bodies - Osirirs - 09-02-2015, 10:02 AM
RE: races bodies - escribano - 09-02-2015, 11:15 AM
RE: races bodies - pointhz - 09-02-2015, 12:05 PM
RE: races bodies - escribano - 09-02-2015, 12:27 PM
RE: races bodies - Osirirs - 09-03-2015, 08:38 AM
RE: races bodies - azmanomer - 09-03-2015, 11:43 AM
RE: races bodies - XuN - 09-06-2015, 08:01 PM
RE: races bodies - pointhz - 09-04-2015, 01:33 AM
RE: races bodies - Osirirs - 09-04-2015, 10:46 AM
RE: races bodies - Osirirs - 09-05-2015, 05:12 AM
RE: races bodies - XuN - 09-05-2015, 09:16 AM
RE: races bodies - Osirirs - 09-06-2015, 02:26 AM
RE: races bodies - Artyk - 09-06-2015, 04:11 AM
RE: races bodies - Osirirs - 09-06-2015, 04:43 AM
RE: races bodies - pointhz - 09-06-2015, 05:15 AM
RE: races bodies - Osirirs - 09-07-2015, 08:35 AM
RE: races bodies - XuN - 09-07-2015, 05:17 PM
RE: races bodies - Osirirs - 09-07-2015, 09:40 PM
RE: races bodies - pointhz - 09-08-2015, 12:19 AM
RE: races bodies - Osirirs - 09-08-2015, 12:33 AM
RE: races bodies - pointhz - 09-08-2015, 12:46 AM
RE: races bodies - Osirirs - 09-08-2015, 12:49 AM
RE: races bodies - pointhz - 09-08-2015, 12:57 AM
RE: races bodies - azmanomer - 09-08-2015, 01:14 AM
RE: races bodies - Osirirs - 09-08-2015, 01:18 AM
RE: races bodies - pointhz - 09-08-2015, 01:38 AM
RE: races bodies - XuN - 09-08-2015, 05:53 PM
RE: races bodies - Osirirs - 09-08-2015, 03:27 AM
RE: races bodies - Osirirs - 09-09-2015, 03:12 AM
RE: races bodies - pointhz - 09-09-2015, 03:15 AM

Forum Jump:


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