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
Overriding weapon speeds
Author Message
BladeCraft
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 2



Post: #1
Overriding weapon speeds
Similar to http://forum.spherecommunity.net/Thread-...-Need-help, is there a way to FULLY, 100% manipulate a base weapons speed? I want to make players be able to temporarily hit NPCs like they had 20000 dex without giving them 20000 dex.

I am rusty as hell but I tried...
- changing the weapons weight attribute in game and that does not let me (is there an override tag?)
- changing the weapons speed attribute in game and that does not let me (is there an override tag?)
- setting argn1 @hit to 0 and that just makes it insta swing but still has the delay between swings

I'd prefer to work off the event triggers more than manipulating weapons but does anyone have a good way to do this?

Best way for me to describe what I want to do is that i want to change the delay between 2 swings, not make a single swing faster. ARGN1 makes so the kryss comes down instantly but than it still takes another second for the second swing to begin.
(This post was last modified: 02-19-2013 02:06 PM by BladeCraft.)
02-19-2013 01:58 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #2
RE: Overriding weapon speeds
02-19-2013 05:03 PM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #3
RE: Overriding weapon speeds
I don't remember exactly, but you could try setting timerd in on=@start of your weaponskill and have a look what it does.
02-19-2013 05:54 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
BladeCraft
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 2



Post: #4
RE: Overriding weapon speeds
Phoenix, unfortunately my build is from 2008 and I dont think i have the resources to bring myself up to date right now. Thank you for sharing though because I think its a good suggestion.

Sco, I love you. Made a fun little .berserk function. I am not 100% sure how secure ACT is under skillstart but this seems to do the trick quite nicely

Code:
[function berserk]
If <isevent.e_berserk>
  events -e_berserk
  emote calm down as the BerSerKer leaves
else
  events +e_berserk
  emote are possesed by the BerSerKer
endif


[events e_berserk]
on=@hittry
//sayu [ ] is hitting <src.name>
If (<src.npc>)
  argn1=
  dorand 3
    sound 190
    sound 200
    sound 220
  enddo
endif

on=@skillstart
If ( (<src.action>==Skill_Swordsmanship)||(<src.action>==Skill_Macefighting)||(<src.action>==Skill_Fencing)||(<src.action>==Skill_Wrestling) )&&(<src.flags>&statf_war)&&(<act.npc>)
  timerd=
endif
02-20-2013 11:59 AM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #5
RE: Overriding weapon speeds
I had a look and i am using something similar for quite some years now. Never had any problem with ACT in @start in the skillsections, so i think it might be save in @skillstart as well in most cases.

But: if you want to be sure, theres a memory-item on src with link on what it's attacking.

Code:
... && (<src.memoryfindtype(memory_war_targ).link.npc>)
(This post was last modified: 02-20-2013 09:22 PM by sco.)
02-20-2013 09:21 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: 2 Guest(s)