Jump to content

Recommended Posts

Posted (edited)
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
  • 1 month later...
  • 1 year later...
Posted (edited)

Plant Vs Zombie Minigame Showcase

Spoiler

 

Edited by yuchinin
Hide video to spoiler
  • Love 1
  • 2 weeks later...
  • 1 month later...
Posted
5 minutes ago, crazyarashi said:

this is very amusing to watch XD

Ahaha thanks~ I think the background original video of this are more amusing~XD

  • 2 months later...
Posted

@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 :        .@fishchk$ = getarg(0);
    82 :        .@varname$ = getarg(1);
    83 :        .@npc$ = strnpcinfo(3);
*   84 :        for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
    85 :                if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
    86 :                        return getVariable(.@varname$+"["+.@x+"]");
    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 :        .@fishchk$ = getarg(0);
    95 :        .@varname$ = getarg(1);
    96 :        .@npc$ = strnpcinfo(3);
*   97 :        for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
    98 :                if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
    99 :                        setVariable(.@varname$+"["+.@x+"]",getVariable(.@varname$+"["+.@x+"]")+getarg(2));
   100 :                        break;
   101 :                }
   102 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 109
    parse_simpleexpr: unmatched ')'
   106 : {
   107 :        .@npc$ = strnpcinfo(3);
   108 :
*  109 :        if(getVariable'('".status"+.@npc$) == 0){
   110 :                .@delay = getarg(0,100);
   111 :                .@variation = getarg(1,0);
   112 :                .@hook_timeout = getarg(2,750);
   113 :                .@bait_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 :        .@npc$ = strnpcinfo(3);
*  277 :        .@fish$ = getVariable('"'.fish"+.@npc$+"$");
   278 :        for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
   279 :                if(getVariable(".fish_amt["+.@x+"]") < getVariable(".fish_max["+.@x+"]")){
   280 :                        if(getVariable(".fish_timetick["+.@x+"]")==0){
   281 :                                setVariable(".fish_timetick["+.@x+"]",gettimetick(2));
   282 :                        }else if(gettimetick(2)>getVariable(".fish_timetick["+.@x+"]")){
[Error]:
script error on npc/custom/FishingSimulation.txt line 307
    parse_callfunc: expected ')' to close argument list
   302 : {
   303 :        .@arrvarname$ = getarg(0);
   304 :        .@message$ = getarg(1);
   305 :        .@isconsumed = getarg(2,0);
   306 :        .@mstr$ = "Leave:";
*  307 :        for(.@x=0;.@x<getarraysize(getVariable'('.@arrvarname$));.@x++){
   308 :                .@temp$ = .@arrvarname$+"["+.@x+"]";
   309 :                .@optional$ = "";
   310 :                if(.@arrvarname$==".rod_list"){
   311 :                        .@index = arrfind_db("$@rod_data$",getVariable(.@temp$));
   312 :                        .@indicator_slow_bonus = atoi(arrget_db("$@rod_data$",.@index,1));
[Error]:
script error on npc/custom/FishingSimulation.txt line 338
    parse_callfunc: expected ')' to close argument list
   336 : {
   337 :        .@name$ = "";
*  338 :        if(getarraysize(getVariable'('".fish_list$"))==1){
   339 :                if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) .@name$ = getVariable(".fish_name$[0]");
   340 :        }else{
   341 :                .@count = 0;
   342 :                do{
   343 :                        .@index = rand(getarraysize(getVariable(".fish_rate")));
[Error]:
script error on npc/custom/FishingSimulation.txt line 373
    parse_simpleexpr: unmatched ')'
   368 : {
   369 :        .@npc$ = strnpcinfo(3);
   370 :        .@arrname1$ = getarg(0);
   371 :        .@arrname2$ = getarg(1);
   372 :
*  373 :        if( getVariable'('".status"+.@npc$) == 0 && @bindspot$ == "" ){
   374 :                mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
   375 :                .@rod = Fishing_Item_Check_Func(.@arrname1$,"Select a rod");
   376 :                if(!.@rod || getVariable(".status"+.@npc$)!= 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 :        //.@sleepduration = getarg(0);
   426 :        .@npc$ = strnpcinfo(3);
   427 :        delwaitingroom .@npc$;
*  428 :        .@name$ = getVariable('"'.charname"+.@npc$+"$");
   429 :        .@aid = getcharid2(3,.@name$);
   430 :        .@charid = getcharid2(0,.@name$);
   431 :        if(isloggedin(.@aid,.@charid)){
   432 :                setd "@bindspot$","",getcharid2(0,getVariable(".charname"+.@npc$+"$"));
   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 :        .@fish$ = getVariable(".fish"+strnpcinfo(3)+"$");
   456 :        .@fish_index = arrfind_db("$@fish_data$",.@fish$);
[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 :        .@npc$ = strnpcinfo(3);
   551 :        getmapxy(.@map$,.@mapx,.@mapy,UNITTYPE_NPC);
*  552 :        's'etVariable(".npcx"+.@npc$,.@mapx);
   553 :        setVariable(".npcy"+.@npc$,.@mapy);
   554 :        setVariable(".npcname"+.@npc$+"$",strnpcinfo(0));
   555 :
   556 :        for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
   557 :                deletearray .@T$,getarraysize(.@T$);
[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)+"$"));

 

Posted (edited)
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 :        .@fishchk$ = getarg(0);
    82 :        .@varname$ = getarg(1);
    83 :        .@npc$ = strnpcinfo(3);
*   84 :        for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
    85 :                if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
    86 :                        return getVariable(.@varname$+"["+.@x+"]");
    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 :        .@fishchk$ = getarg(0);
    95 :        .@varname$ = getarg(1);
    96 :        .@npc$ = strnpcinfo(3);
*   97 :        for(.@x=0;.@x<getarraysize(getVariable'('".fish_list$"));.@x++){
    98 :                if(getVariable(".fish_name$["+.@x+"]")==.@fishchk$){
    99 :                        setVariable(.@varname$+"["+.@x+"]",getVariable(.@varname$+"["+.@x+"]")+getarg(2));
   100 :                        break;
   101 :                }
   102 :        }
[Error]:
script error on npc/custom/FishingSimulation.txt line 109
    parse_simpleexpr: unmatched ')'
   106 : {
   107 :        .@npc$ = strnpcinfo(3);
   108 :
*  109 :        if(getVariable'('".status"+.@npc$) == 0){
   110 :                .@delay = getarg(0,100);
   111 :                .@variation = getarg(1,0);
   112 :                .@hook_timeout = getarg(2,750);
   113 :                .@bait_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 :        .@npc$ = strnpcinfo(3);
*  277 :        .@fish$ = getVariable('"'.fish"+.@npc$+"$");
   278 :        for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
   279 :                if(getVariable(".fish_amt["+.@x+"]") < getVariable(".fish_max["+.@x+"]")){
   280 :                        if(getVariable(".fish_timetick["+.@x+"]")==0){
   281 :                                setVariable(".fish_timetick["+.@x+"]",gettimetick(2));
   282 :                        }else if(gettimetick(2)>getVariable(".fish_timetick["+.@x+"]")){
[Error]:
script error on npc/custom/FishingSimulation.txt line 307
    parse_callfunc: expected ')' to close argument list
   302 : {
   303 :        .@arrvarname$ = getarg(0);
   304 :        .@message$ = getarg(1);
   305 :        .@isconsumed = getarg(2,0);
   306 :        .@mstr$ = "Leave:";
*  307 :        for(.@x=0;.@x<getarraysize(getVariable'('.@arrvarname$));.@x++){
   308 :                .@temp$ = .@arrvarname$+"["+.@x+"]";
   309 :                .@optional$ = "";
   310 :                if(.@arrvarname$==".rod_list"){
   311 :                        .@index = arrfind_db("$@rod_data$",getVariable(.@temp$));
   312 :                        .@indicator_slow_bonus = atoi(arrget_db("$@rod_data$",.@index,1));
[Error]:
script error on npc/custom/FishingSimulation.txt line 338
    parse_callfunc: expected ')' to close argument list
   336 : {
   337 :        .@name$ = "";
*  338 :        if(getarraysize(getVariable'('".fish_list$"))==1){
   339 :                if(rand(1,10000) <= getVariable(".fish_rate[0]") && getVariable(".fish_amt[0]")>0) .@name$ = getVariable(".fish_name$[0]");
   340 :        }else{
   341 :                .@count = 0;
   342 :                do{
   343 :                        .@index = rand(getarraysize(getVariable(".fish_rate")));
[Error]:
script error on npc/custom/FishingSimulation.txt line 373
    parse_simpleexpr: unmatched ')'
   368 : {
   369 :        .@npc$ = strnpcinfo(3);
   370 :        .@arrname1$ = getarg(0);
   371 :        .@arrname2$ = getarg(1);
   372 :
*  373 :        if( getVariable'('".status"+.@npc$) == 0 && @bindspot$ == "" ){
   374 :                mes "[ "+CStr(strnpcinfo(0),"RED")+" ]";
   375 :                .@rod = Fishing_Item_Check_Func(.@arrname1$,"Select a rod");
   376 :                if(!.@rod || getVariable(".status"+.@npc$)!= 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 :        //.@sleepduration = getarg(0);
   426 :        .@npc$ = strnpcinfo(3);
   427 :        delwaitingroom .@npc$;
*  428 :        .@name$ = getVariable('"'.charname"+.@npc$+"$");
   429 :        .@aid = getcharid2(3,.@name$);
   430 :        .@charid = getcharid2(0,.@name$);
   431 :        if(isloggedin(.@aid,.@charid)){
   432 :                setd "@bindspot$","",getcharid2(0,getVariable(".charname"+.@npc$+"$"));
   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 :        .@fish$ = getVariable(".fish"+strnpcinfo(3)+"$");
   456 :        .@fish_index = arrfind_db("$@fish_data$",.@fish$);
[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 :        .@npc$ = strnpcinfo(3);
   551 :        getmapxy(.@map$,.@mapx,.@mapy,UNITTYPE_NPC);
*  552 :        's'etVariable(".npcx"+.@npc$,.@mapx);
   553 :        setVariable(".npcy"+.@npc$,.@mapy);
   554 :        setVariable(".npcname"+.@npc$+"$",strnpcinfo(0));
   555 :
   556 :        for(.@x=0;.@x<getarraysize(getVariable(".fish_list$"));.@x++){
   557 :                deletearray .@T$,getarraysize(.@T$);
[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
Posted
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

Posted
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

  • 6 months later...
Posted (edited)

Nice collection you got there is the Interactive Cooking a free script too? looks awesome

Edited by Katakuri
typo grammar

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.

  • Recently Browsing   0 members

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