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
Weapon problem
Author Message
Thysis
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2015
Reputation: 0



Post: #1
Weapon problem
oki have a Big problem i cant set the weapon speed max exemple i want the same speed with 100 dex and 3k2 dex exemple Smile it is possible ?? if yes how ?? here one of my fencing weapon down there the trouble is if i set the speed for a nice speed with 100 dex it ok but if i boost dex to 500 it go lightning speed and i dont want this i want to stay whit the same weapon speed when i got 100 dex

[ITEMDEF i_poignard_rouille]
DEFNAME=i_poignard_rouille
NAME=Poignard rouille
ID=i_knife_skinning
TYPE=t_weapon_fence
SKILL=Fencing
REQSTR=0
SPEED=20
WEIGHT=2
TWOHANDS=N
DAM={4 12}
TAG.OVERRIDE.SPEED 35
TEVENTS=t_speciauxe
RESOURCES=1 i_ingot_rusty
SKILLMAKE=BLACKSMITHING 0.1, t_weapon_mace_smith

ON=@CREATE
HITPOINTS=100
COLOR=0aa6


CATEGORY=Armes
SUBSECTION=Armes +0
DESCRIPTION=Poignard rouille
05-11-2016 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Weapon problem
the SPEED value on weapons is not an absolute value, it's just a variable used by the combat swing speed formula, which uses many variables (dex / stam / weapon speed / etc) to calculate the swing speed

you can choose between many pre-defined formulas (sphere custom / pre-AOS / AOS / SE / ML) using CombatSpeedEra on sphere.ini, but all these formulas also uses DEX to calculate the speed
https://github.com/Sphereserver/Source/b...lc.cpp#L25

if you don't like any of these formulas, you can script your own formula using ARGN1 on @HitTry trigger
Code:
[EVENTS e_combat] //add this event on all chars
ON=@HitTry
ARGN1=20
this will make all weapons attack in the same speed of 2.0s. Of course this is just an example, you must add your own formula on the script
05-11-2016 04:56 AM
Find all posts by this user Like Post Quote this message in a reply
Thysis
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2015
Reputation: 0



Post: #3
RE: Weapon problem
Code:
[EVENTS e_combat] //add this event on all chars
ON=@HitTry
ARGN1=20


its not on char but on each diffent weapon it is possible to make something close but for weapon ?? exemple fancing weapon hit a this speed sword weapon got this type of speed mace hit at this speed ??
05-27-2016 01:59 AM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #4
RE: Weapon problem
[EVENTS e_combat] //add this event on all chars
ON=@HitTry
IF (<ARGO.BASEID>==i_katana_blackrock)
ARGN1=20
ELSEIF (<ARGO.BASEID>==i_katana_gold)
ARGN1=10
ENDIF


Just change the ID's and the speeds to the ones you want
05-27-2016 07:45 AM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #5
RE: Weapon problem
static void SetWeaponTimeout(P_CHAR pc_attacker, P_ITEM pWeapon)
{
int x,j;

if (pWeapon)
{
if (pWeapon->spd==0) pWeapon->spd=35;
x = (15000 / ((pc_attacker->effDex()+100) * pWeapon->spd)*MY_CLOCKS_PER_SEC); //Calculate combat delay
}
else
{
if(pc_attacker->skill[WRESTLING]>200) j = 35;
else if(pc_attacker->skill[WRESTLING]>400) j = 40;
else if(pc_attacker->skill[WRESTLING]>600) j = 45;
else if(pc_attacker->skill[WRESTLING]>800) j = 50;
else j = 30;
x = (15000 / ((pc_attacker->effDex()+100) * j)*MY_CLOCKS_PER_SEC);
}
pc_attacker->timeout=uiCurrentTime+x;
}
08-12-2017 10:53 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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