Jump to content
yuchinin

【ユチニン】Yuchinin's Script Collection [Updated: 2017/07/30]

Recommended Posts

Scripting Core
Released Script

Pending Script Upload:

Spoiler
  1. Farming System
  2. Simulate Vending Network
  3. Monster Controller (Core)
  4. Monster Tamer
  5. Patrolling Guard
  6. Arcus System

【SHOWCASE】DotA Style Monster Behavior (Monster Controller)      

Spoiler

 

 

【SHOWCASE】ARCUS SYSTEM

A communication device to provide feature below:

  • Calling npc from distance
  • Mailing System Hook
  • GPS System Hook (Navigation Npc, Player)
  • Magic Support
  • More feature developing...

Arcus System Spoiler: (Old)

Spoiler

post-19161-0-01622000-1457010564_thumb.png
post-19161-0-09507400-1457010596_thumb.png
post-19161-0-26039700-1457010624_thumb.png
post-19161-0-09279200-1457010659_thumb.png
post-19161-0-32745800-1457010690_thumb.png
post-19161-0-27456200-1457010723_thumb.png
post-19161-0-34126300-1457010749_thumb.png
post-19161-0-44451900-1457010782_thumb.png
post-19161-0-61652000-1457010816_thumb.png

 
Edited by yuchinin
Hide video to spoiler
  • Upvote 4
  • Love 3
Link to comment
Share on other sites

@yuchinin i got error on fishing script can you please check it thank you ^_^

[Error]:  Loading NPC file: npc/custom/FishingSimulation.txt
script error on npc/custom/FishingSimulation.txt line 84
    parse_callfunc: expected ')' to close argument list
    80 : {
    81 :        [email protected]$ = getarg(0);
    82 :        [email protected]$ = getarg(1);
    83 :        [email protected]$ = strnpcinfo(3);
*   84 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('".fish_list$"));[email protected]++){
    85 :                if(getVariable(".fish_name$["[email protected]+"]")[email protected]$){
    86 :                        return getVariable([email protected]$+"["[email protected]+"]");
    87 :                }
    88 :        }
    89 :        debugmes "Local_Fish_Val_Get return null";
[Error]:
script error on npc/custom/FishingSimulation.txt line 97
    parse_callfunc: expected ')' to close argument list
    93 : {
    94 :        [email protected]$ = getarg(0);
    95 :        [email protected]$ = getarg(1);
    96 :        [email protected]$ = strnpcinfo(3);
*   97 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('".fish_list$"));[email protected]++){
    98 :                if(getVariable(".fish_name$["[email protected]+"]")[email protected]$){
    99 :                        setVariable([email protected]$+"["[email protected]+"]",getVariable([email protected]$+"["[email protected]+"]")+getarg(2));
   100 :                        break;
   101 :                }
   102 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 109
    parse_simpleexpr: unmatched ')'
   106 : {
   107 :        [email protected]$ = strnpcinfo(3);
   108 :
*  109 :        if(getVariable'('".status"[email protected]$) == 0){
   110 :                [email protected] = getarg(0,100);
   111 :                [email protected] = getarg(1,0);
   112 :                [email protected]_timeout = getarg(2,750);
   113 :                [email protected]_timeout = getarg(3,rand(10,20));
   114 :
[Error]:
script error on npc/custom/FishingSimulation.txt line 277
    script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
   275 : {
   276 :        [email protected]$ = strnpcinfo(3);
*  277 :        [email protected]$ = getVariable('"'.fish"[email protected]$+"$");
   278 :        for([email protected]=0;[email protected]<getarraysize(getVariable(".fish_list$"));[email protected]++){
   279 :                if(getVariable(".fish_amt["[email protected]+"]") < getVariable(".fish_max["[email protected]+"]")){
   280 :                        if(getVariable(".fish_timetick["[email protected]+"]")==0){
   281 :                                setVariable(".fish_timetick["[email protected]+"]",gettimetick(2));
   282 :                        }else if(gettimetick(2)>getVariable(".fish_timetick["[email protected]+"]")){
[Error]:
script error on npc/custom/FishingSimulation.txt line 307
    parse_callfunc: expected ')' to close argument list
   302 : {
   303 :        [email protected]$ = getarg(0);
   304 :        [email protected]$ = getarg(1);
   305 :        [email protected] = getarg(2,0);
   306 :        [email protected]$ = "Leave:";
*  307 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('[email protected]$));[email protected]++){
   308 :                [email protected]$ = [email protected]$+"["[email protected]+"]";
   309 :                [email protected]$ = "";
   310 :                if([email protected]$==".rod_list"){
   311 :                        [email protected] = arrfind_db("[email protected]_data$",getVariable([email protected]$));
   312 :                        [email protected]_slow_bonus = atoi(arrget_db("[email protected]_data$",[email protected],1));
[Error]:
script error on npc/custom/FishingSimulation.txt line 338
    parse_callfunc: expected ')' to close argument list
   336 : {
   337 :        [email protected]$ = "";
*  338 :        if(getarraysize(getVariable'('".fish_list$"))==1){
   339 :                if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) [email protected]$ = getVariable(".fish_name$[0]");
   340 :        }else{
   341 :                [email protected] = 0;
   342 :                do{
   343 :                        [email protected] = rand(getarraysize(getVariable(".fish_rate")));
[Error]:
script error on npc/custom/FishingSimulation.txt line 373
    parse_simpleexpr: unmatched ')'
   368 : {
   369 :        [email protected]$ = strnpcinfo(3);
   370 :        [email protected]$ = getarg(0);
   371 :        [email protected]$ = getarg(1);
   372 :
*  373 :        if( getVariable'('".status"[email protected]$) == 0 && @bindspot$ == "" ){
   374 :                mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
   375 :                [email protected] = Fishing_Item_Check_Func([email protected]$,"Select a rod");
   376 :                if([email protected] || getVariable(".status"[email protected]$)!= 0){
   377 :                        mes "You don't have the selected item or someone is using this spot, please try again later.";
   378 :                        end;
[Error]:
script error on npc/custom/FishingSimulation.txt line 428
    script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
   424 : {
   425 :        //[email protected] = getarg(0);
   426 :        [email protected]$ = strnpcinfo(3);
   427 :        delwaitingroom [email protected]$;
*  428 :        [email protected]$ = getVariable('"'.charname"[email protected]$+"$");
   429 :        [email protected] = getcharid2(3,[email protected]$);
   430 :        [email protected] = getcharid2(0,[email protected]$);
   431 :        if(isloggedin([email protected],[email protected])){
   432 :                setd "@bindspot$","",getcharid2(0,getVariable(".charname"[email protected]$+"$"));
   433 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 451
    parse_line: expect command, missing function name or calling undeclared function
   449 : {
   450 :        sleep2 1000;
*  451 :        if(!playerattached()) 'F'ishing_End_Func();     // add check to counter unexpected player not attach (server reload/disconnect/logout)
   452 :        showscript "It's a "+getVariable(".fish"+strnpcinfo(3)+"$")+"!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   453 :        sleep2 1000;
   454 :        if(!playerattached()) Fishing_End_Func();       // add check to counter unexpected player not attach (server reload/disconnect/logout)
   455 :        [email protected]$ = getVariable(".fish"+strnpcinfo(3)+"$");
   456 :        [email protected]_index = arrfind_db("[email protected]_data$",[email protected]$);
[Error]:
script error on npc/custom/FishingSimulation.txt line 538
    parse_simpleexpr: unmatched ')'
   536 : {
   537 :        while(1){
*  538 :                if(getnpctimer(0) || getVariable'('".status"+strnpcinfo(3)) > 0){
   539 :                        sleep 5000;
   540 :                        continue;
   541 :                }
   542 :                specialeffect EF_BUBBLE;
   543 :                specialeffect 199;
[Error]:
script error on npc/custom/FishingSimulation.txt line 552
    parse_line: expect command, missing function name or calling undeclared function
   549 : {
   550 :        [email protected]$ = strnpcinfo(3);
   551 :        getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_NPC);
*  552 :        's'etVariable(".npcx"[email protected]$,[email protected]);
   553 :        setVariable(".npcy"[email protected]$,[email protected]);
   554 :        setVariable(".npcname"[email protected]$+"$",strnpcinfo(0));
   555 :
   556 :        for([email protected]=0;[email protected]<getarraysize(getVariable(".fish_list$"));[email protected]++){
   557 :                deletearray [email protected]$,getarraysize([email protected]$);
[Error]:
script error on npc/custom/FishingSimulation.txt line 569
    parse_line: expect command, missing function name or calling undeclared function
   568 : {
*  569 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   570 : end;
   571 :
   572 : OnSuccess:
   573 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   574 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 629
    parse_line: expect command, missing function name or calling undeclared function
   628 : {
*  629 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   630 : end;
   631 :
   632 : OnSuccess:
   633 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   634 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 689
    parse_line: expect command, missing function name or calling undeclared function
   688 : {
*  689 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   690 : end;
   691 :
   692 : OnSuccess:
   693 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   694 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 749
    parse_line: expect command, missing function name or calling undeclared function
   748 : {
*  749 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   750 : end;
   751 :
   752 : OnSuccess:
   753 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   754 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));

 

Link to comment
Share on other sites

On ‎2017‎年‎12‎月‎16‎日 at 3:36 PM, Quesooo said:

@yuchinin i got error on fishing script can you please check it thank you ^_^

[Error]:  Loading NPC file: npc/custom/FishingSimulation.txt
script error on npc/custom/FishingSimulation.txt line 84
    parse_callfunc: expected ')' to close argument list
    80 : {
    81 :        [email protected]$ = getarg(0);
    82 :        [email protected]$ = getarg(1);
    83 :        [email protected]$ = strnpcinfo(3);
*   84 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('".fish_list$"));[email protected]++){
    85 :                if(getVariable(".fish_name$["[email protected]+"]")[email protected]$){
    86 :                        return getVariable([email protected]$+"["[email protected]+"]");
    87 :                }
    88 :        }
    89 :        debugmes "Local_Fish_Val_Get return null";
[Error]:
script error on npc/custom/FishingSimulation.txt line 97
    parse_callfunc: expected ')' to close argument list
    93 : {
    94 :        [email protected]$ = getarg(0);
    95 :        [email protected]$ = getarg(1);
    96 :        [email protected]$ = strnpcinfo(3);
*   97 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('".fish_list$"));[email protected]++){
    98 :                if(getVariable(".fish_name$["[email protected]+"]")[email protected]$){
    99 :                        setVariable([email protected]$+"["[email protected]+"]",getVariable([email protected]$+"["[email protected]+"]")+getarg(2));
   100 :                        break;
   101 :                }
   102 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 109
    parse_simpleexpr: unmatched ')'
   106 : {
   107 :        [email protected]$ = strnpcinfo(3);
   108 :
*  109 :        if(getVariable'('".status"[email protected]$) == 0){
   110 :                [email protected] = getarg(0,100);
   111 :                [email protected] = getarg(1,0);
   112 :                [email protected]_timeout = getarg(2,750);
   113 :                [email protected]_timeout = getarg(3,rand(10,20));
   114 :
[Error]:
script error on npc/custom/FishingSimulation.txt line 277
    script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
   275 : {
   276 :        [email protected]$ = strnpcinfo(3);
*  277 :        [email protected]$ = getVariable('"'.fish"[email protected]$+"$");
   278 :        for([email protected]=0;[email protected]<getarraysize(getVariable(".fish_list$"));[email protected]++){
   279 :                if(getVariable(".fish_amt["[email protected]+"]") < getVariable(".fish_max["[email protected]+"]")){
   280 :                        if(getVariable(".fish_timetick["[email protected]+"]")==0){
   281 :                                setVariable(".fish_timetick["[email protected]+"]",gettimetick(2));
   282 :                        }else if(gettimetick(2)>getVariable(".fish_timetick["[email protected]+"]")){
[Error]:
script error on npc/custom/FishingSimulation.txt line 307
    parse_callfunc: expected ')' to close argument list
   302 : {
   303 :        [email protected]$ = getarg(0);
   304 :        [email protected]$ = getarg(1);
   305 :        [email protected] = getarg(2,0);
   306 :        [email protected]$ = "Leave:";
*  307 :        for([email protected]=0;[email protected]<getarraysize(getVariable'('[email protected]$));[email protected]++){
   308 :                [email protected]$ = [email protected]$+"["[email protected]+"]";
   309 :                [email protected]$ = "";
   310 :                if([email protected]$==".rod_list"){
   311 :                        [email protected] = arrfind_db("[email protected]_data$",getVariable([email protected]$));
   312 :                        [email protected]_slow_bonus = atoi(arrget_db("[email protected]_data$",[email protected],1));
[Error]:
script error on npc/custom/FishingSimulation.txt line 338
    parse_callfunc: expected ')' to close argument list
   336 : {
   337 :        [email protected]$ = "";
*  338 :        if(getarraysize(getVariable'('".fish_list$"))==1){
   339 :                if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) [email protected]$ = getVariable(".fish_name$[0]");
   340 :        }else{
   341 :                [email protected] = 0;
   342 :                do{
   343 :                        [email protected] = rand(getarraysize(getVariable(".fish_rate")));
[Error]:
script error on npc/custom/FishingSimulation.txt line 373
    parse_simpleexpr: unmatched ')'
   368 : {
   369 :        [email protected]$ = strnpcinfo(3);
   370 :        [email protected]$ = getarg(0);
   371 :        [email protected]$ = getarg(1);
   372 :
*  373 :        if( getVariable'('".status"[email protected]$) == 0 && @bindspot$ == "" ){
   374 :                mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
   375 :                [email protected] = Fishing_Item_Check_Func([email protected]$,"Select a rod");
   376 :                if([email protected] || getVariable(".status"[email protected]$)!= 0){
   377 :                        mes "You don't have the selected item or someone is using this spot, please try again later.";
   378 :                        end;
[Error]:
script error on npc/custom/FishingSimulation.txt line 428
    script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
   424 : {
   425 :        //[email protected] = getarg(0);
   426 :        [email protected]$ = strnpcinfo(3);
   427 :        delwaitingroom [email protected]$;
*  428 :        [email protected]$ = getVariable('"'.charname"[email protected]$+"$");
   429 :        [email protected] = getcharid2(3,[email protected]$);
   430 :        [email protected] = getcharid2(0,[email protected]$);
   431 :        if(isloggedin([email protected],[email protected])){
   432 :                setd "@bindspot$","",getcharid2(0,getVariable(".charname"[email protected]$+"$"));
   433 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 451
    parse_line: expect command, missing function name or calling undeclared function
   449 : {
   450 :        sleep2 1000;
*  451 :        if(!playerattached()) 'F'ishing_End_Func();     // add check to counter unexpected player not attach (server reload/disconnect/logout)
   452 :        showscript "It's a "+getVariable(".fish"+strnpcinfo(3)+"$")+"!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   453 :        sleep2 1000;
   454 :        if(!playerattached()) Fishing_End_Func();       // add check to counter unexpected player not attach (server reload/disconnect/logout)
   455 :        [email protected]$ = getVariable(".fish"+strnpcinfo(3)+"$");
   456 :        [email protected]_index = arrfind_db("[email protected]_data$",[email protected]$);
[Error]:
script error on npc/custom/FishingSimulation.txt line 538
    parse_simpleexpr: unmatched ')'
   536 : {
   537 :        while(1){
*  538 :                if(getnpctimer(0) || getVariable'('".status"+strnpcinfo(3)) > 0){
   539 :                        sleep 5000;
   540 :                        continue;
   541 :                }
   542 :                specialeffect EF_BUBBLE;
   543 :                specialeffect 199;
[Error]:
script error on npc/custom/FishingSimulation.txt line 552
    parse_line: expect command, missing function name or calling undeclared function
   549 : {
   550 :        [email protected]$ = strnpcinfo(3);
   551 :        getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_NPC);
*  552 :        's'etVariable(".npcx"[email protected]$,[email protected]);
   553 :        setVariable(".npcy"[email protected]$,[email protected]);
   554 :        setVariable(".npcname"[email protected]$+"$",strnpcinfo(0));
   555 :
   556 :        for([email protected]=0;[email protected]<getarraysize(getVariable(".fish_list$"));[email protected]++){
   557 :                deletearray [email protected]$,getarraysize([email protected]$);
[Error]:
script error on npc/custom/FishingSimulation.txt line 569
    parse_line: expect command, missing function name or calling undeclared function
   568 : {
*  569 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   570 : end;
   571 :
   572 : OnSuccess:
   573 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   574 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 629
    parse_line: expect command, missing function name or calling undeclared function
   628 : {
*  629 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   630 : end;
   631 :
   632 : OnSuccess:
   633 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   634 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 689
    parse_line: expect command, missing function name or calling undeclared function
   688 : {
*  689 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   690 : end;
   691 :
   692 : OnSuccess:
   693 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   694 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));
[Error]:
script error on npc/custom/FishingSimulation.txt line 749
    parse_line: expect command, missing function name or calling undeclared function
   748 : {
*  749 : 'F'ishing_Start_Func(".rod_list",".bait_list");
   750 : end;
   751 :
   752 : OnSuccess:
   753 :        emotion ET_BLABLA,getcharid(3,getVariable(".charname"+strnpcinfo(3)+"$"));
   754 :        showscript "I got it!",getcharid2(3,getVariable(".charname"+strnpcinfo(3)+"$"));

 

//=====******** Note ********=================================
//= This script need my release of:
//= 1. Yuchinin Common Library (common.txt)
//= Better let it load first before adding my other script.
//= 2. Fishing.grf

Edited by yuchinin
Link to comment
Share on other sites

48 minutes ago, yuchinin said:

//=====******** Note ********=================================
//= This script need my release of:
//= 1. Yuchinin Common Library (common.txt)
//= Better let it load first before adding my other script.
//= 2. Fishing.grf

i forgot to say i also use your common.txt file and i got this error

 

thank you

Link to comment
Share on other sites

22 hours ago, Quesooo said:

i forgot to say i also use your common.txt file and i got this error

 

thank you

Hmm...Then maybe you should let my common library load first before other script.
like 
npc: npc/.../common.txt
npc: npc/.../fishingSimulation.txt

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
Reply to this topic...

×   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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.