kn4tseb
Master
Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0
|
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. . could it be something wrong with my server? xdd
|
|
06-12-2014 07:51 AM |
|
|