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
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #1
fishing latest nightly
The fishing skill seems to be broken on the latest nightly release. As a GM I can fish without problems but my players are having problems, the skills seems to @abort when it is suppose to @success. Can anyone confirm?

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-30-2014 01:40 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

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



Post: #2
RE: fishing latest nightly
I found this on the latest script pack:

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

ON
=@PreStart
    
IF (<SRC.FINDLAYER.layer_horse>)
        
SRC.SYSMESSAGE You can't fish while riding!
        return 1
    ENDIF
    IF (<SRC.FINDLAYER.2.USESCUR>< 1)
        SRC.SYSMESSAGE The tool is out of charges.
        return 1
    ENDIF

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

ON=@Success
    ACTARG2=1        // 1 will pack the resource, 0 place it on the ground.
    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
    
// Damage for Fishing Poles was never active, I add it here anyway.
    //IF ( <SERV.EXPERIMENTAL>&00002000)        // EF_DamageTools
    //    IF (<SRC.FINDLAYER.2.HITS> > 0)
    //        SRC.FINDLAYER.2.DAMAGE <eval <maxhits>*2>,DAM_PHYSICAL,<SRC>
    //    ELSE
    //        SRC.FINDLAYER.2.DESTROY
    //    ENDIF
    //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 

I tried with .gm off and seems working... i didn't try with a normal pg...
09-30-2014 02:07 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: fishing latest nightly
I found it works for plevel > 1, as a player plevel=1 it seems to never @success. However it does work sometimes but then stops to work completely. I reverted to an older version of sphereserver and now I'm having no problems.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-30-2014 02:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

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



Post: #4
RE: fishing latest nightly
Which version?
09-30-2014 02:45 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #5
RE: fishing latest nightly
August 4th and later, it's been broken since I've tried.

I reverted to a copy from 2013.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 09-30-2014 02:51 AM by Skul.)
09-30-2014 02:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: fishing latest nightly
(09-30-2014 02:50 AM)Skul Wrote:  August 4th and later, it's been broken since I've tried.

I reverted to a copy from 2013.

Please paste here your Fishing SKILL section please.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-30-2014 02:52 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #7
RE: fishing latest nightly
Code:
[SKILL 18]
DEFNAME=Skill_Fishing
KEY=Fishing
TITLE=Fisher
PROMPT_MSG=What water do you want to fish in?
DELAY=2.5
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
ADV_RATE=0.1,50.0,150.0
VALUES=1,30,200
RANGE=6
FLAGS=SKF_GATHER|SKF_NOMINDIST

ON=@START
LOCAL.CRAFTSTROKECNT=1
ANIM=11
SOUND=39
SERV.NEWITEM=0352d
NEW.ATTR=attr_move_never|attr_decay
NEW.P=<TARGP>
NEW.TIMER=2

ON=@TRY
IF ( <FLAGS> & statf_polymorph )
    SYSMESSAGE=You can not do that in your state.
    RETURN 1
ENDIF

ON=@SUCCESS
//lengthy code

ON=@ABORT
IF !(<TAG0.FISHINGFAIL>)
    TIMERF 1, f_fishing_abort
ENDIF
CTAG.TARGP=
CTAG.RESOURCE=
TAG.ACTITEM=
TAG.FIGHINGFAIL=

ON=@FAIL
IF !(<TAG0.FISHINGFAIL>)
    MESSAGE You find nothing useful.
ENDIF
CTAG.TARGP=
CTAG.RESOURCE=
TAG.ACTITEM=
TAG.FIGHINGFAIL=

[FUNCTION f_fishing_abort]
IF (<SERV.SKILL.<ACTION>.KEY>==fishing)
    MESSAGE You reel the line in and cast out again.
ELSE
    MESSAGE You reel the line in.
ENDIF

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 09-30-2014 02:55 AM by Skul.)
09-30-2014 02:55 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #8
RE: fishing latest nightly

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-30-2014 03:33 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #9
RE: fishing latest nightly
fishing works fine for me
09-30-2014 03:35 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: #10
RE: fishing latest nightly
try update your fishing skill on sphere_skills.scp based on latest scripts pack release, it's working fine here

also make sure that you're using this new script code on a sphere nightly >= 19 july 2014. This fishing change was implemented on this build when this skill got softcoded. If you try to use the softcoded fishing skill on a previous sphere build, or try to use a newest sphere build without the softcoded fishing skill, you will get some problems
09-30-2014 03:50 AM
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)