sipemula Posted August 21, 2017 Posted August 21, 2017 (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 August 21, 2017 by sipemula Quote
0 Stolao Posted August 21, 2017 Posted August 21, 2017 its a custom function in him common library you have to make sure his common library is installed as well Quote
0 sipemula Posted August 21, 2017 Author Posted August 21, 2017 (edited) how to install common libary ?, this my config at, custom_conf.txt npc: npc/custom/etc/common.txt Edited August 21, 2017 by sipemula Quote
0 yuchinin Posted August 22, 2017 Posted August 22, 2017 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. Quote
0 sipemula Posted August 23, 2017 Author Posted August 23, 2017 thank for your respon ^^ its very help Quote
Question
sipemula
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 sipemula6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.