Jump to content
  • 0

help fishing system


matheus00123

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   3
  • Joined:  01/14/12
  • Last Seen:  

Hello,

Sorry if I'm in the wrong area, I am Brazilian and my English did not and it such thing despite using the translator: D

I'm upgrading to rAthena to be more up to date and have better support, so let's end it.

I bought some scripts to the other emulator and it worked, time to migrate all gave error, some managed to solve, the script below and are fishing system error in time to recompile, below pictures of error and diff src.

If anyone can help me I would appreciate it.

Error pattern to compile.

post-1533-0-11774100-1465040744_thumb.jpg

Diff used.

sistema_de_pescaria.diff

I managed to work more to teleport skill to use alone, and I wanted the skill to work on time so that you are in the water.

The issue below run more as said it works only in time to teleport ...

case CUSTOM_CATCH_FISH:			if(sd)			{				if( npc_script_event(sd,NPCE_PEACHEVENT) ) {					ShowDebug("Event 'OnPeachEvent' not found in any npc!\n");					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);				}			}			break;
Edited by matheus00123
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   11
  • Joined:  12/06/11
  • Last Seen:  

change the

{"Peach NPC Event", "OnPeachEvent"},

 

to

 

{"Peach Event",script_config.peach_event_name},

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   3
  • Joined:  01/14/12
  • Last Seen:  

Hello
I will check, editor after you have the answer, but I believe it is not, but the code below will check more before have real certainty

		case CUSTOM_CATCH_FISH:
			if( sd )
			{
				if( !npc->script_event(sd,NPCE_PEACHEVENT) ) {
					ShowDebug("Event 'OnPeachEvent' not found in any npc!\n");
					clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				}
			}
			break;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   11
  • Joined:  12/06/11
  • Last Seen:  

 

Hello

I will check, editor after you have the answer, but I believe it is not, but the code below will check more before have real certainty

		case CUSTOM_CATCH_FISH:
			if( sd )
			{
				if( !npc->script_event(sd,NPCE_PEACHEVENT) ) {
					ShowDebug("Event 'OnPeachEvent' not found in any npc!\n");
					clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				}
			}
			break;

 

 

clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);

to

 

clif_skill_fail(sd,sd->menuskill_id,USESKILL_FAIL_LEVEL,0);

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   3
  • Joined:  01/14/12
  • Last Seen:  

my dear friend,

thanks to you can understand the code , could solve 'll give you a plus (+) , grateful even ...

Edited by matheus00123
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...