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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
weapon speed trouble
Author Message
svf
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2013
Reputation: 0



Post: #1
weapon speed trouble
I'm trying to change attack speed from different types of weapons. I change argn1 value on @HitTry and on melee weapons it works perfectly, but with any bows or crossbows, changes in argn1 value and nothing happens, ranged attack speed always the same.

I try use 0.56c release or latest 0.56d

In sphere.ini:

Code:
CombatDamageEra=0
CombatSpeedEra=0
SpeedScaleFactor=0

bow script:

Code:
[itemdef test_bow]
id=i_bow
name=test bow
tdata3=i_arrow
tdata4=i_arrow_x
type=t_weapon_bow
flip=1
skill=Archery
dam=10,20
value=50
weight=20.0
reqstr=30
speed=50
twohands=y

tevents=t_tooltips

resources=30 i_ingot_iron
skillmake=blacksmithing 30.0

category=Weapons
subsection=Professions - Blacksmith - Bows
description=Bow

On=@Create
    hitpoints=25

If i try change
Code:
on=@hittry
if (<action> == skill_swordsmanship) || (<action> == skill_macefighting) || (<action> == skill_fencing)
  argn1 = 4.0
  sysmessage Speed: <fval(<argn1>)>
endif
All ok and changes in argn1 value work fine

But for ranged weapons:
Code:
if (<action> == skill_archery)
  argn1 = 4.0
  sysmessage <fval(<argn1>)>
endif

or

if (<findlayer(layer_hand2).type>==t_weapon_bow) ||(<findlayer(layer_hand2).type>==t_weapon_xbow)
  sysmessage WEAPON: <argo.name>
  argn1=4.0
  sysmessage <fval(<argn1>)>
endif

nothing happen, ranged speed always same and too fast

Please help, what could be the problem?
(This post was last modified: 03-02-2017 04:40 AM by svf.)
03-02-2017 04:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
weapon speed trouble - svf - 03-02-2017 04:10 AM
RE: weapon speed trouble - Russian - 03-02-2017, 05:54 AM
RE: weapon speed trouble - svf - 03-02-2017, 06:41 AM
RE: weapon speed trouble - massis87 - 03-18-2017, 05:55 PM
RE: weapon speed trouble - Coruja - 03-20-2017, 09:04 AM

Forum Jump:


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