weapon speed calculating formula - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: weapon speed calculating formula (/Thread-weapon-speed-calculating-formula) |
weapon speed calculating formula - WRWR - 05-12-2012 09:43 AM How is weapon speed calculating in core? RE: weapon speed calculating formula - ShiryuX - 05-12-2012 02:31 PM I scripted it some time ago for SCP, it is: Code: return <eval (<serv.SpeedScaleFactor> * 10) / ((<dex> + 100) * <feval <floatval 150 / <fval <local.speed>>>>)> RE: weapon speed calculating formula - WRWR - 05-12-2012 05:49 PM SpeedscaleFactor from spehre.ini local.speed is speed from weapon script? right? RE: weapon speed calculating formula - ShiryuX - 05-13-2012 01:31 AM Exactly. If you have no weapon, local.speed = 20 RE: weapon speed calculating formula - WRWR - 05-13-2012 03:36 AM Thanks RE: weapon speed calculating formula - WRWR - 05-16-2012 11:36 PM How about ARGN in @HITTRY? RE: weapon speed calculating formula - admin phoenix - 05-16-2012 11:46 PM (05-12-2012 02:31 PM)ShiryuX Wrote: I scripted it some time ago for SCP, it is: how you put this in the script? RE: weapon speed calculating formula - ShiryuX - 05-18-2012 12:13 AM Copy and paste in a file. RE: weapon speed calculating formula - Extreme - 06-04-2012 03:29 AM Hi, I made my swing speed calculation using this: http://uo.stratics.com/content/arms-armor/combat.php#speed If you want to show the weapon speed in the tooltips I recommend to use this: Code: [EVENTS E_PlayerTooltipEvent] ex 1: Hammer pick REAL speed is 3.25s, then you should set the speed in 32 ex 2: Katana REAL speed is 2.5s, then you shoud set the speed in 25 I think the SCP scripts is already like this, but you can check. So, the Swing Speed calculation I did this: Code: IF ( <EVAL <FVAL ((<UID.<WEAPON>.SPEED>) - <EVAL (<UID.<WEAPON>.SPEED>/10)*10>)>> == 2 ) || ( <EVAL <FVAL ((<UID.<WEAPON>.SPEED>) - <EVAL (<UID.<WEAPON>.SPEED>/10)*10>)>> == 7 ) |