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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fishing latest nightly
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #13
RE: fishing latest nightly
I use r2036 and this code:

Code:
[SKILL 18]
DEFNAME=Skill_Fishing
KEY=Fishing
TITLE=Fisher%s
FLAGS=SKF_GATHER
RANGE=6
PROMPT_MSG=What water do you want to fish in?
DELAY=8.0
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=10
BONUS_DEX=90
BONUS_INT=0
BONUS_STATS=25
ADV_RATE=5.0,50.0,350.0
VALUES=1,30,200

ON=@PreStart

    // IF (<SRC.FINDLAYER.2.USESCUR>< 1)
        // SRC.SYSMESSAGE The tool is out of charges.
        // return 1
    // ENDIF

ON=@Start
    ANIM 11
    SERV.NEWITEM i_memory_fishing_splash
    NEW.LINK=<UID>
    NEW.P=<ACT.P>

ON=@Success
    ACTARG2=0        // 1 will pack the resource, 0 place it on the ground.
    sound 05a4
    //SRC.FINDLAYER.2.USESCUR --

ON=@Fail
    SRC.SYSMESSAGE You fish a while, but fail to catch anything.

ON=@Abort
    SRC.SYSMESSAGE You pull your line back in and stop fishing.

ON=@Stroke
    IF (<SRC.FINDLAYER.layer_horse>)
        SRC.SYSMESSAGE You can't fish while riding!
        return 1
    ENDIF

[ITEMDEF i_memory_fishing_splash]
ID=i_memory

ON=@Create
ATTR=attr_move_never|attr_decay
TIMERD=15
IF (<TIMERD> > <SERV.SKILL.FISHING.DELAY>)    // We don't want to fire the splash after the fish success so a check for skill's delay is needed.
TIMERD=<eval <SERV.SKILL.FISHING.DELAY>/2>
ENDIF

ON=@Timer
IF (<LINK.ACTION> == skill_fishing)        // Check out if cont is still fishing, otherwise we don't want the effect.
EFFECT 2,0352D,4,16
SOUND 0364
ENDIF

everything is with GM OFF but players are experiencing some problems: 9 times on 10 they cannot finish the action.
What should i do?

UPDATE: fishing is working for me now but player are experiencing this "you have not line of sight". Never had this check before.
(This post was last modified: 09-30-2014 05:46 AM by Rizz.)
09-30-2014 05:05 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
fishing latest nightly - Skul - 09-30-2014, 01:40 AM
RE: fishing latest nightly - Rizz - 09-30-2014, 02:07 AM
RE: fishing latest nightly - Skul - 09-30-2014, 02:09 AM
RE: fishing latest nightly - Rizz - 09-30-2014, 02:45 AM
RE: fishing latest nightly - Skul - 09-30-2014, 02:50 AM
RE: fishing latest nightly - Extreme - 09-30-2014, 02:52 AM
RE: fishing latest nightly - Skul - 09-30-2014, 02:55 AM
RE: fishing latest nightly - Extreme - 09-30-2014, 03:33 AM
RE: fishing latest nightly - darksun84 - 09-30-2014, 03:35 AM
RE: fishing latest nightly - Coruja - 09-30-2014, 03:50 AM
RE: fishing latest nightly - Extreme - 09-30-2014, 03:56 AM
RE: fishing latest nightly - Skul - 09-30-2014, 04:32 AM
RE: fishing latest nightly - Rizz - 09-30-2014 05:05 AM
RE: fishing latest nightly - Rizz - 10-02-2014, 07:35 PM
RE: fishing latest nightly - Coruja - 10-03-2014, 08:37 AM

Forum Jump:


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