![]() |
Defname calling - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Defname calling (/Thread-Defname-calling) Pages: 1 2 |
RE: Defname calling - rastrero - 09-01-2016 02:33 AM [function isweapon] if (type==t_weapon_sword) elseif (type==t_weapon_fence) elseif (type==t_weapon_mace_smith) elseif (type==t_weapon_mace_crook) elseif (type==t_weapon_mace_staff) elseif (type==t_weapon_bow_run) elseif (type==t_weapon_bow) elseif (type==t_weapon_xbow) else return 0 endif return <uid> This function is bad anyway. All weapon got damange values U have just to check the damage value, if exist its a weapon. Anyway how darksun said. There is already the same function with same name on sphere. |