Jump to content
  • 0

help Fishing Script Error


Question

Posted (edited)

Im use Fishing Script from 

My error Is :

[Error]:  Loading NPC file: npc/custom/events/FishingSimulation.txt
script error on npc/custom/events/FishingSimulation.txt line 504
    parse_line: expect command, missing function name or calling undeclared function
   499 :                sleep 1000;
   500 :                emotion E_OMG,1,getVariable(".charname"+strnpcinfo(3)+"$");
   501 :                setnpcdisplay(strnpcinfo(3), getVariable(".npcname"+strnpcinfo(3)+"$"),723);
   502 :                .@gid = monster(.@map$,.@x,.@y,"--ja--",.@mob,1,"",2);
   503 :                if(is_function("aimode")){
*  504 :                        'a'imode(.@gid,"aggro");
   505 :                }
   506 :        }else if(.@mode$=="junkitem"){
   507 :                emotion E_WAH,1,getVariable(".charname"+strnpcinfo(3)+"$");
   508 :                showscript "I wonder who throw this...",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   509 :                explode(.@itemlist$,.@idlist$,":");
[Error]:
script error on npc/custom/events/FishingSimulation.txt line 574
    parse_line: expect command, missing function name or calling undeclared function
   569 :        emotion E_LOUD,1;
   570 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   571 :        specialeffect 6;
   572 :        soundeffectall "fish_reel03.wav",0;
   573 :
*  574 :        'F'ish_Reward_Func();
   575 :        Fishing_End_Func();
   576 :
   577 : OnHit:
   578 :        emotion E_SWT2;
   579 :        emotion E_SWT2,1;
 

How Fix that ?

Edited by sipemula

6 answers to this question

Recommended Posts

  • 0
Posted
49 minutes ago, sader1992 said:

im not sure but i think this

 

 

@sipemula Yes this is the required library you need to download and load it before the fishing script.
Example load order:
npc: npc/custom/etc/common.txt <= Just incase this is loaded before the fishing script

npc: npc/custom/etc/FishingSimulation.txt

For error on line 504, it is ok to just comment it out since it is part of my Monster Controller Library and I still not think about release it yet.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...