![]() |
differencing races? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: differencing races? (/Thread-differencing-races) |
RE: differencing races? - XuN - 06-10-2014 04:13 PM http://www.uoguide.com/Damage_Calculations RE: differencing races? - kn4tseb - 06-11-2014 07:24 AM Thank you both! ![]() RE: differencing races? - kn4tseb - 06-11-2014 09:13 AM Okey, for some reason i have this issue, might be nothing, but.... if equal race condition is set as for SRC as [] it works fine tried it human vs human; but when i set it to NOT equal like in the example below it doesnt work... ive tried a human vs elf, didnt work, gargoyle vs human didnt work. PHP Code: ON=@Hit RE: differencing races? - Extreme - 06-11-2014 09:49 AM PHP Code: If (<ARGO.WEAPON> && <ARGO.WEAPON.TYPE> != T_WEAPON_BOW) RE: differencing races? - kn4tseb - 06-11-2014 10:58 AM thanks for the tip at twohands check ^^ saves some lines ![]() but race vs diff race check isnt working ![]() RE: differencing races? - Extreme - 06-11-2014 12:06 PM Who is <UID> and who is <SRC> ? Put a SERV.B <NAME> <SRC.NAME> to check! RE: differencing races? - kn4tseb - 06-11-2014 12:33 PM @hit src= player being hit and [] player making the hit... ill try what you say but i dont think its about that because when IF(<RACE> == <SRC.RACE>) is set, it works EDITED: just checked <SRC.NAME> = Player being hit <NAME> = Player making the action RE: differencing races? - Extreme - 06-11-2014 12:46 PM Well, it should work then. RE: differencing races? - kn4tseb - 06-11-2014 01:12 PM Should i try that under the function? ok i re-checked everything, and this is what i got: when races check are equal, inside the function only at the ELSE side of the function it did work, the other ones didnt.. only the ELSE part SRC is still the char being hit inside the function and uid is still me PHP Code: [function race] only works at "ELSE" RE: differencing races? - Extreme - 06-11-2014 01:43 PM Okay, one tip: when comparing things, if you have more than one condition, you should use () on each condition. Here you go: PHP Code: [FUNCTION RACE] |