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

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



Post: #1
Fishing
Ok, I just updated my version of sphereserver to the August 1st Nightly release and we realised that fishing is not working, looks like it's sending out a 'walking; anim and the skill loops forever, never actually reeling in a fish. I'm just wondering if this problem is just me or someone else? Let me know, thanks.

Also, the gathering skills (mining, fishing, lumberjacking) all give a 'You are too far away' message when the skill st arts, not sure why but the players are definitely in range.

PS: Good work on the ceiling height, I'm not having any problems with it anymore. Thanks.

Oh, just for your reference, here's my code for fishing:
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
FLAGS=SKF_GATHER|SKF_NOMINDIST

ON=@START
LOCAL.CRAFTSTROKECNT=1

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

ON=@SUCCESS
//much much code here

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 fail to find anything 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

Looks like setting LOCAL.CRAFTSTROKECNT to 1 causes sphere to read it as 65535... any ideas?

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 08-01-2014 02:20 PM by Skul.)
08-01-2014 01:57 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Fishing
It seems I missed some lines when moved the code from the skills to a generic function. Should be fixed in tomorrow's build.
08-01-2014 04:16 PM
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
Great Xun, thanks for reading!

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-01-2014 07:52 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: 3 Guest(s)