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-nmm8 (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-nmm8 (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-nmm8 (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
a timer, pause or something in a Trigger?
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: a timer, pause or something in a Trigger?
A cool idea is to make a custom skill that handles carving:

Code:
[SKILL 58]
DEFNAME = Skill_carving
Key = Carving
FLAGS=SKF_GATHER|SKF_SCRIPTED
DELAY = 1.0
STAT_STR=0
STAT_DEX=0
STAT_INT=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
//This will prevent the skill advancement
ADV_RATE = 0

ON=@Start
//5 Strokes with 1.0 delay, around 5 seconds?
local.GatherStrokeCnt = 5
actdiff = 0

ON=@Stroke
//Play the bow animation
bow

ON=@Success
act = <tag.carveCorpse>
useitem <tag.carveWeapon>
last

Then add this trigger to a general player event

Code:
ON=@itemTargon_Item
if (<argo.type> == t_corpse) && (!<tag0.carveCorpse> ) //Start the custom carving skill -> Skill 58
    //Set Corpse Uid
    tag.carveCorpse = <argo>
    //Set the item used for carving
    tag.carveWeapon = <act>
    skill 58
    return 1
elseif (<argo.type> == t_corpse) && (<tag0.carveCorpse> ) //Proceeds with carving.
    tag.carveCorpse =
    tag.carveWeapon =
    return 0
endif

It seems to work for now
08-11-2017 05:48 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
Post Reply 


Messages In This Thread
RE: a timer, pause or something in a Trigger? - darksun84 - 08-11-2017 05:48 AM

Forum Jump:


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