Guest User

Untitled

a guest
Nov 27th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. [Error]: Loading NPC file: npc/custom/pesca.txt
  2. script error on npc/custom/pesca.txt line 83
  3. parse_callfunc: expected ')' to close argument list
  4. 79 : {
  5. 80 : .@fishchk$ = getarg(0);
  6. 81 : .@varname$ = getarg(1);
  7. 82 : .@npc$ = strnpcinfo(3);
  8. * 83 : for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
  9. 84 : if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
  10. 85 : return getVariable(.@varname$+"["+.@x+"]");
  11. 86 : }
  12. 87 : }
  13. 88 : debugmes "Local_Fish_Val_Get return null";
  14. [Error]:
  15. script error on npc/custom/pesca.txt line 96
  16. parse_callfunc: expected ')' to close argument list
  17. 92 : {
  18. 93 : .@fishchk$ = getarg(0);
  19. 94 : .@varname$ = getarg(1);
  20. 95 : .@npc$ = strnpcinfo(3);
  21. * 96 : for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
  22. 97 : if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
  23. 98 : setVariable(.@varname$+"["+.@x+"]",getVariable(.@varname$+"["+.@x+"]")+getarg(2));
  24. 99 : break;
  25. 100 : }
  26. 101 : }
  27. [Error]:
  28. script error on npc/custom/pesca.txt line 108
  29. parse_simpleexpr: unmatched ')'
  30. 105 : {
  31. 106 : .@npc$ = strnpcinfo(3);
  32. 107 :
  33. * 108 : if(getVariable'('".status"+.@npc$) == 0){
  34. 109 : .@delay = getarg(0,100);
  35. 110 : .@variation = getarg(1,0);
  36. 111 : .@hook_timeout = getarg(2,750);
  37. 112 : .@bait_timeout = getarg(3,rand(10,20));
  38. 113 :
  39. [Error]:
  40. script error on npc/custom/pesca.txt line 275
  41. script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
  42. 273 : {
  43. 274 : .@npc$ = strnpcinfo(3);
  44. * 275 : .@fish$ = getVariable('"'.fish"+.@npc$+"$");
  45. 276 : for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
  46. 277 : if(getVariable(".fish_amt["+.@x+"]") < getVariable(".fish_max["+.@x+"]")){
  47. 278 : if(getVariable(".fish_timetick["+.@x+"]")==0){
  48. 279 : setVariable(".fish_timetick["+.@x+"]",gettimetick(2));
  49. 280 : }else if(gettimetick(2)>getVariable(".fish_timetick["+.@x+"]")){
  50. [Error]:
  51. script error on npc/custom/pesca.txt line 305
  52. parse_callfunc: expected ')' to close argument list
  53. 300 : {
  54. 301 : .@arrvarname$ = getarg(0);
  55. 302 : .@message$ = getarg(1);
  56. 303 : .@isconsumed = getarg(2,0);
  57. 304 : .@mstr$ = "Leave:";
  58. * 305 : for(.@x=0;.@x<getarraysize(getVariable'('.@arrvarname$));.@x++){
  59. 306 : .@temp$ = .@arrvarname$+"["+.@x+"]";
  60. 307 : .@optional$ = "";
  61. 308 : if(.@arrvarname$==".rod_list"){
  62. 309 : .@index = arrfind_db("$@rod_data$",getVariable(.@temp$));
  63. 310 : .@indicator_slow_bonus = atoi(arrget_db("$@rod_data$",.@index,1));
  64. [Error]:
  65. script error on npc/custom/pesca.txt line 336
  66. parse_callfunc: expected ')' to close argument list
  67. 334 : {
  68. 335 : .@name$ = "";
  69. * 336 : if(getarraysize(getVariable'('".fish_list$"))==1){
  70. 337 : if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) .@name$ = getVariable(".fish_name$[0]");
  71. 338 : }else{
  72. 339 : .@count = 0;
  73. 340 : do{
  74. 341 : .@index = rand(getarraysize(getVariable(".fish_rate")));
  75. [Error]:
  76. script error on npc/custom/pesca.txt line 371
  77. parse_simpleexpr: unmatched ')'
  78. 366 : {
  79. 367 : .@npc$ = strnpcinfo(3);
  80. 368 : .@arrname1$ = getarg(0);
  81. 369 : .@arrname2$ = getarg(1);
  82. 370 :
  83. * 371 : if( getVariable'('".status"+.@npc$) == 0 && @bindspot$ == "" ){
  84. 372 : mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
  85. 373 : .@rod = Fishing_Item_Check_Func(.@arrname1$,"Select a rod");
  86. 374 : if(!.@rod || getVariable(".status"+.@npc$)!= 0){
  87. 375 : mes "You don't have the selected item or someone is using this spot, please try again later.";
  88. 376 : end;
  89. [Error]:
  90. script error on npc/custom/pesca.txt line 426
  91. script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
  92. 422 : {
  93. 423 : //.@sleepduration = getarg(0);
  94. 424 : .@npc$ = strnpcinfo(3);
  95. 425 : delwaitingroom .@npc$;
  96. * 426 : .@name$ = getVariable('"'.charname"+.@npc$+"$");
  97. 427 : .@aid = getcharid2(3,.@name$);
  98. 428 : .@charid = getcharid2(0,.@name$);
  99. 429 : if(isloggedin(.@aid,.@charid)){
  100. 430 : setd "@bindspot$","",getcharid2(0,getVariable(".charname"+.@npc$+"$"));
  101. 431 : }
  102. [Error]:
  103. script error on npc/custom/pesca.txt line 449
  104. parse_line: expect command, missing function name or calling undeclared function
  105. 447 : {
  106. 448 : sleep2 1000;
  107. * 449 : if(!playerattached()) 'F'ishing_End_Func(); // add check to counter unexpected player not attach (server reload/disconnect/logout)
  108. 450 : showscript "It's a "+getVariable(".fish"+strnpcinfo(3)+"$")+"!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
  109. 451 : sleep2 1000;
  110. 452 : if(!playerattached()) Fishing_End_Func(); // add check to counter unexpected player not attach (server reload/disconnect/logout)
  111. 453 : .@fish$ = getVariable(".fish"+strnpcinfo(3)+"$");
  112. 454 : .@fish_index = arrfind_db("$@fish_data$",.@fish$);
  113. [Error]:
  114. script error on npc/custom/pesca.txt line 536
  115. parse_simpleexpr: unmatched ')'
  116. 534 : {
  117. 535 : while(1){
  118. * 536 : if(getnpctimer(0) || getVariable'('".status"+strnpcinfo(3)) > 0){
  119. 537 : sleep 5000;
  120. 538 : continue;
  121. 539 : }
  122. 540 : specialeffect EF_BUBBLE;
  123. 541 : specialeffect 199;
  124. [Error]:
  125. script error on npc/custom/pesca.txt line 550
  126. parse_line: expect command, missing function name or calling undeclared function
  127. 547 : {
  128. 548 : .@npc$ = strnpcinfo(3);
  129. 549 : getmapxy(.@map$,.@mapx,.@mapy,UNITTYPE_NPC);
  130. * 550 : 's'etVariable(".npcx"+.@npc$,.@mapx);
  131. 551 : setVariable(".npcy"+.@npc$,.@mapy);
  132. 552 : setVariable(".npcname"+.@npc$+"$",strnpcinfo(0));
  133. 553 :
  134. 554 : for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
  135. 555 : deletearray .@T$,getarraysize(.@T$);
  136. [Error]:
  137. script error on npc/custom/pesca.txt line 567
  138. parse_line: expect command, missing function name or calling undeclared function
  139. 566 : {
  140. * 567 : 'F'ishing_Start_Func(".rod_list",".bait_list");
  141. 568 : end;
  142. 569 :
  143. 570 : OnSuccess:
  144. 571 : emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
  145. 572 : showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
Add Comment
Please, Sign In to add comment