Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Error]: Loading NPC file: npc/custom/pesca.txt
- script error on npc/custom/pesca.txt line 83
- parse_callfunc: expected ')' to close argument list
- 79 : {
- 80 : .@fishchk$ = getarg(0);
- 81 : .@varname$ = getarg(1);
- 82 : .@npc$ = strnpcinfo(3);
- * 83 : for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
- 84 : if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
- 85 : return getVariable(.@varname$+"["+.@x+"]");
- 86 : }
- 87 : }
- 88 : debugmes "Local_Fish_Val_Get return null";
- [Error]:
- script error on npc/custom/pesca.txt line 96
- parse_callfunc: expected ')' to close argument list
- 92 : {
- 93 : .@fishchk$ = getarg(0);
- 94 : .@varname$ = getarg(1);
- 95 : .@npc$ = strnpcinfo(3);
- * 96 : for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
- 97 : if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
- 98 : setVariable(.@varname$+"["+.@x+"]",getVariable(.@varname$+"["+.@x+"]")+getarg(2));
- 99 : break;
- 100 : }
- 101 : }
- [Error]:
- script error on npc/custom/pesca.txt line 108
- parse_simpleexpr: unmatched ')'
- 105 : {
- 106 : .@npc$ = strnpcinfo(3);
- 107 :
- * 108 : if(getVariable'('".status"+.@npc$) == 0){
- 109 : .@delay = getarg(0,100);
- 110 : .@variation = getarg(1,0);
- 111 : .@hook_timeout = getarg(2,750);
- 112 : .@bait_timeout = getarg(3,rand(10,20));
- 113 :
- [Error]:
- script error on npc/custom/pesca.txt line 275
- script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
- 273 : {
- 274 : .@npc$ = strnpcinfo(3);
- * 275 : .@fish$ = getVariable('"'.fish"+.@npc$+"$");
- 276 : for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
- 277 : if(getVariable(".fish_amt["+.@x+"]") < getVariable(".fish_max["+.@x+"]")){
- 278 : if(getVariable(".fish_timetick["+.@x+"]")==0){
- 279 : setVariable(".fish_timetick["+.@x+"]",gettimetick(2));
- 280 : }else if(gettimetick(2)>getVariable(".fish_timetick["+.@x+"]")){
- [Error]:
- script error on npc/custom/pesca.txt line 305
- parse_callfunc: expected ')' to close argument list
- 300 : {
- 301 : .@arrvarname$ = getarg(0);
- 302 : .@message$ = getarg(1);
- 303 : .@isconsumed = getarg(2,0);
- 304 : .@mstr$ = "Leave:";
- * 305 : for(.@x=0;.@x<getarraysize(getVariable'('.@arrvarname$));.@x++){
- 306 : .@temp$ = .@arrvarname$+"["+.@x+"]";
- 307 : .@optional$ = "";
- 308 : if(.@arrvarname$==".rod_list"){
- 309 : .@index = arrfind_db("$@rod_data$",getVariable(.@temp$));
- 310 : .@indicator_slow_bonus = atoi(arrget_db("$@rod_data$",.@index,1));
- [Error]:
- script error on npc/custom/pesca.txt line 336
- parse_callfunc: expected ')' to close argument list
- 334 : {
- 335 : .@name$ = "";
- * 336 : if(getarraysize(getVariable'('".fish_list$"))==1){
- 337 : if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) .@name$ = getVariable(".fish_name$[0]");
- 338 : }else{
- 339 : .@count = 0;
- 340 : do{
- 341 : .@index = rand(getarraysize(getVariable(".fish_rate")));
- [Error]:
- script error on npc/custom/pesca.txt line 371
- parse_simpleexpr: unmatched ')'
- 366 : {
- 367 : .@npc$ = strnpcinfo(3);
- 368 : .@arrname1$ = getarg(0);
- 369 : .@arrname2$ = getarg(1);
- 370 :
- * 371 : if( getVariable'('".status"+.@npc$) == 0 && @bindspot$ == "" ){
- 372 : mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
- 373 : .@rod = Fishing_Item_Check_Func(.@arrname1$,"Select a rod");
- 374 : if(!.@rod || getVariable(".status"+.@npc$)!= 0){
- 375 : mes "You don't have the selected item or someone is using this spot, please try again later.";
- 376 : end;
- [Error]:
- script error on npc/custom/pesca.txt line 426
- script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
- 422 : {
- 423 : //.@sleepduration = getarg(0);
- 424 : .@npc$ = strnpcinfo(3);
- 425 : delwaitingroom .@npc$;
- * 426 : .@name$ = getVariable('"'.charname"+.@npc$+"$");
- 427 : .@aid = getcharid2(3,.@name$);
- 428 : .@charid = getcharid2(0,.@name$);
- 429 : if(isloggedin(.@aid,.@charid)){
- 430 : setd "@bindspot$","",getcharid2(0,getVariable(".charname"+.@npc$+"$"));
- 431 : }
- [Error]:
- script error on npc/custom/pesca.txt line 449
- parse_line: expect command, missing function name or calling undeclared function
- 447 : {
- 448 : sleep2 1000;
- * 449 : if(!playerattached()) 'F'ishing_End_Func(); // add check to counter unexpected player not attach (server reload/disconnect/logout)
- 450 : showscript "It's a "+getVariable(".fish"+strnpcinfo(3)+"$")+"!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
- 451 : sleep2 1000;
- 452 : if(!playerattached()) Fishing_End_Func(); // add check to counter unexpected player not attach (server reload/disconnect/logout)
- 453 : .@fish$ = getVariable(".fish"+strnpcinfo(3)+"$");
- 454 : .@fish_index = arrfind_db("$@fish_data$",.@fish$);
- [Error]:
- script error on npc/custom/pesca.txt line 536
- parse_simpleexpr: unmatched ')'
- 534 : {
- 535 : while(1){
- * 536 : if(getnpctimer(0) || getVariable'('".status"+strnpcinfo(3)) > 0){
- 537 : sleep 5000;
- 538 : continue;
- 539 : }
- 540 : specialeffect EF_BUBBLE;
- 541 : specialeffect 199;
- [Error]:
- script error on npc/custom/pesca.txt line 550
- parse_line: expect command, missing function name or calling undeclared function
- 547 : {
- 548 : .@npc$ = strnpcinfo(3);
- 549 : getmapxy(.@map$,.@mapx,.@mapy,UNITTYPE_NPC);
- * 550 : 's'etVariable(".npcx"+.@npc$,.@mapx);
- 551 : setVariable(".npcy"+.@npc$,.@mapy);
- 552 : setVariable(".npcname"+.@npc$+"$",strnpcinfo(0));
- 553 :
- 554 : for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
- 555 : deletearray .@T$,getarraysize(.@T$);
- [Error]:
- script error on npc/custom/pesca.txt line 567
- parse_line: expect command, missing function name or calling undeclared function
- 566 : {
- * 567 : 'F'ishing_Start_Func(".rod_list",".bait_list");
- 568 : end;
- 569 :
- 570 : OnSuccess:
- 571 : emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
- 572 : showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
Add Comment
Please, Sign In to add comment