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-nmm6 (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-nmm6 (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-nmm6 (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
differencing races?
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #26
RE: differencing races?
(06-12-2014 05:32 AM)darksun84 Wrote:  
(06-12-2014 05:02 AM)kn4tseb Wrote:  tryed both ways:
if (<RACE> != <SRC.RACE>)
and if (<RACE>) != (<SRC.RACE>)

nothing changes... still taking c_man or c_woman as a different body than mine.
dunno what im missing but its the only thing left to finish the script.

ON=@Hit
If (<WEAPON> && <WEAPON.TYPE> != T_WEAPON_BOW)
IF (!<ARGO.TWOHANDS>)
if (<RACE>) != (<SRC.RACE>)
SERV.B MY NAME IS <name>
endif
endif
endif

[FUNCTION RACE]
IF (<OBODY> == C_MAN) || (<OBODY> == C_WOMAN)
RETURN 1
ELIF (<OBODY> == C_ELF_MALE) || (<OBODY> == C_ELF_FEMALE)
RETURN 2
ELIF (<OBODY> == C_GARGOYLE_MALE) || (<OBODY> == C_GARGOYLE_FEMALE)
RETURN 3
ELSE
RETURN -1
ENDIF

Try this way
Code:
If (<WEAPON>) && (<WEAPON.TYPE> != T_WEAPON_BOW)
   IF (!<ARGO.TWOHANDS>)
       if (<RACE <uid>>) != (<RACE <src>>)
       SERV.B MY NAME IS  <name>
       endif
   endif
endif

[FUNCTION RACE]
ref1=<args> //
IF (<ref1.OBODY> == C_MAN) || (<ref1.OBODY> == C_WOMAN)
RETURN 1
ELIF (<ref1.OBODY> == C_ELF_MALE) || (<ref1.OBODY> == C_ELF_FEMALE)
RETURN 2
ELIF (<ref1.OBODY> == C_GARGOYLE_MALE) || (<ref1.OBODY> == C_GARGOYLE_FEMALE)
RETURN 3
ELSE
RETURN -1
ENDIF

exactly the same, work against different races, but when i try it against a c_man or c_woman playing as a human race char
it acts like they had different obodies... so there was no difference. Sad. could it be something wrong with my server? xdd
06-12-2014 07:51 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
differencing races? - kn4tseb - 06-09-2014, 07:27 AM
RE: differencing races? - XuN - 06-09-2014, 05:28 PM
RE: differencing races? - kn4tseb - 06-10-2014, 05:26 AM
RE: differencing races? - Alaric - 06-09-2014, 09:21 PM
RE: differencing races? - kn4tseb - 06-10-2014, 02:56 AM
RE: differencing races? - darksun84 - 06-10-2014, 03:14 AM
RE: differencing races? - Extreme - 06-10-2014, 05:42 AM
RE: differencing races? - XuN - 06-10-2014, 06:55 AM
RE: differencing races? - kn4tseb - 06-10-2014, 10:21 AM
RE: differencing races? - Extreme - 06-10-2014, 02:46 PM
RE: differencing races? - XuN - 06-10-2014, 04:13 PM
RE: differencing races? - kn4tseb - 06-11-2014, 07:24 AM
RE: differencing races? - kn4tseb - 06-11-2014, 09:13 AM
RE: differencing races? - Extreme - 06-11-2014, 09:49 AM
RE: differencing races? - kn4tseb - 06-11-2014, 10:58 AM
RE: differencing races? - Extreme - 06-11-2014, 12:06 PM
RE: differencing races? - kn4tseb - 06-11-2014, 12:33 PM
RE: differencing races? - Extreme - 06-11-2014, 12:46 PM
RE: differencing races? - kn4tseb - 06-11-2014, 01:12 PM
RE: differencing races? - Extreme - 06-11-2014, 01:43 PM
RE: differencing races? - kn4tseb - 06-11-2014, 01:45 PM
RE: differencing races? - Extreme - 06-12-2014, 12:41 AM
RE: differencing races? - kn4tseb - 06-12-2014, 05:02 AM
RE: differencing races? - darksun84 - 06-12-2014, 05:32 AM
RE: differencing races? - kn4tseb - 06-12-2014 07:51 AM
RE: differencing races? - Extreme - 06-12-2014, 05:53 AM
RE: differencing races? - Extreme - 06-12-2014, 08:20 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:26 AM
RE: differencing races? - Extreme - 06-12-2014, 08:33 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:42 AM
RE: differencing races? - Extreme - 06-12-2014, 08:54 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:59 AM
RE: differencing races? - Extreme - 06-12-2014, 09:38 AM
RE: differencing races? - kn4tseb - 06-12-2014, 09:55 AM
RE: differencing races? - holy - 07-01-2014, 02:35 PM

Forum Jump:


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