Jump to content

yuchinin

Members
  • Posts

    120
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by yuchinin

  1. On 2/23/2018 at 12:02 PM, GMHelios said:

    Hello guys,

    I get an error when I try to fish anything:

    
    [Error]: script_rid2sd: fatal error ! player not attached!
    [Debug]: Function: emotion (1 parameter):
    [Debug]: Data: variable name='ET_THINK' index=0
    [Debug]: Source (NPC): Test Spot at izlude (127,60)
    [Warning]: script:get_val: cannot access player variable 'ET_THINK', defaulting to 0

    Any ideas why is it showing up and how to fix it?

    Thanks for your time.

    Update your rAthena to latest to fix it

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

  3. 11 hours ago, rmon said:

    I am using fresh copy of English translation from https://github.com/zackdreaver/ROenglishRE 

    My KRO Client also updated (11-03-2017) for both rsu-kro-rag-lite and rsu-kro-renewal-lite

    But still getting the error.

    image.png.5a0372ecd79e849a2925e1990567870d.png

    --------------------------------------------------------------------------

    its the zeny that i want to remove since the script is not doing anything on the zeny 

    --------------------------------------------------------------------------

    Also,

    Can you assist me on the below screenshot ? as the links for the items is stacking up.

    I have diff settings for the below

    20 Extend Chat Box
    21 Extend Chat Room Box
    22 Extend PM Box

    image.png.732d63790c3bd638950dd90c0ee0fa05.png

    For the resource file loading failed, when did the missing resource error come out?
    As the item stacking problem, it's client issue so I can't do anything on it. But you may try using different client version like 20170614 since this version still work fine.

  4. 11 hours ago, rmon said:

    Hi @yuchinin,

    I'm Having a missing file which is also not included on your grf.

    image.png.5a0372ecd79e849a2925e1990567870d.png

    Also,

    Can you teach me how to remove Zeny on vending machine and slot machine ?

    image.png.93d27fdb0496f7a0cc5f3d3a95b7d402.pngimage.png.1799bf5de1b7fe836cb3bc8764b96727.png 

    Would love to have it all coin. :) 

     

     

     

     

    I didn't use any custom graphic on vending machine, all item are using kro default item sprite so consider update your client file if you haven't do that.
    To remove the coin, just select the "Eject Coin" to eject all coin.

  5. 1. The first argument of getmapxy needed to be string variable

    Quote

    getmapxy(getd(".m$"+strnpcinfo(3)+"$"),getd(".x"+strnpcinfo(3)),getd(".y"+strnpcinfo(3)),1); //line 312


    2. System detect Infinite loop

    Quote

    Can try to apply freeloop on these npc at suitable location, I can't read the language also don't have the map so can't help you on this.


    3.  Change OnEnable to OnEnablePacBonus

    Quote

    donpcevent "#pacporingbonus1"+.@k$+"::OnEnablePacBonus"; // line 206
    donpcevent "#pacporingbonus2"+.@k$+"::OnEnablePacBonus";// line 207
    donpcevent "#pacporingbonus3"+.@k$+"::OnEnablePacBonus";// line 208

     

    • Upvote 1
  6. 3 hours ago, whodhell said:

    i got this error everytime PVP end or has a winner

    
    [Error]: buildin_sleep2: no unit is attached
    [Debug]: Source (NPC): 10v10 PVP at prontera (147,140)

    heres the script i found

    
    
    prontera,147,145,5	script	Party PVP	757,{
    mes "I am Party Match Manager.";
    mes "Party Leader may create a PVP Match here.";
    next;
    switch( select( ( .Created )?"Join Game[ ^FF0000"+.No+"vs"+.No+"^000000 ]":"Create Game",
    				( ( getgmlevel() >= .GMLevel || getcharid(0) == getpartyleader( getcharid(1),2 ) ) && .Created )?"^FF0000Remove Game^000000":"" )){
    
    Case 1:
    	switch( .Created ){
    		Case 0:
    			getpartymember getcharid(1),1;
    			if( getcharid(0) != getpartyleader( getcharid(1),2 ) || !getcharid(1) ){
    				mes "Sorry, but only a ^FF0000Party Leader^000000 can register a game here.";
    			}else{
    				mes "How many Players for each Party Team ?";
    				mes "Min = 1    Max = "+$@partymembercount;
    				mes "Because you only have "+$@partymembercount+" member right now.";
    				next;
    				input .No,1,$@partymembercount;
    				announce "[ "+.No+"vs"+.No+" Party Match ] created by "+strcharinfo(0)+", you may register to join.",0;
    				set .Team[0],getcharid(1);
    				set .Created,1;
    			}
    			close;
    		Case 1:
    			if( !.Team[1] && getcharid(1) == .Team[0] ){
    				mes "Please wait for ^FF0000Team 2^000000 to Register.";
    			}else{
    				if( getcharid(0) != getpartyleader( getcharid(1),2 ) || !getcharid(1) ){
    					mes "Sorry, but only a ^FF0000Party Leader^000000 can register a game here.";
    					close;
    				}
    				getpartymember getcharid(1),1;
    				if( $@partymembercount < .No ){
    					mes "You didnt have enough of "+.No+" Member for the Game.";
    					mes "You only have "+$@partymembercount+" Member.";
    				}else{
    					mes "Confirm Registration ?";
    					if( select("Yes:No") == 1 ){
    						set .Team[1],getcharid(1);
    						set .Created,2;
    						setarray .Members[0],.No,.No;
    						for( set .@party,0; .@party < 2; set .@party,.@party + 1 ){
    							getpartymember .Team[.@party],1;
    							for( set .@i,0; .@i < .No; set .@i,.@i + 1 )
    								warpchar .Map$,0,0,$@partymembercid[.@i];
    						}
    						end;
    					}
    				}
    			}
    			close;
    		Case 2:
    			mes "^FF0000The Game is in Progress.^000000";
    			mes "[ A "+.No+" vs "+.No+" Game ]";
    			mes "Team ^FF0000"+getpartyname( .Team[0] )+"^000000 vs Team ^FF0000"+getpartyname( .Team[1] )+"^000000 .";
    			close;
    		}
    		close;
    Case 2:
    		mes "Done, Match will be terminated right away.";
    		mapannounce .Map$,"Match has been Cancelled by a GM.",0;
    		close2;
    	OnReset:
    		deletearray .Team[0],getarraysize( .Team );
    		deletearray .Members[0],getarraysize( .Members );
    		if( .Winner ){
    			getpartymember .Winner,2;
    			for( set .@i,0; .@i < .No; set .@i,.@i + 1 ){
    				getitem 512,100,$@partymemberaid[.@i];
    				getitem 607,1,$@partymemberaid[.@i];
    			}
    		set .Winner,0;
    		}
    		sleep2 2000;
    		set .Created,0;
    		mapwarp .Map$,"prontera",155,181;
    		end;
    }
    close;
    		
    OnPCDieEvent:
    OnPCLogoutEvent:
    if( strcharinfo(3) == .Map$ && .Created ){
    	for( set .@i,0; .@i < 2; set .@i,.@i + 1 )	
    		if( getcharid(1) == .Team[.@i] )
    			set .Members[.@i],.Members[.@i] - 1;
    			
    	if( .Members[0] < 1 ) set .Winner,.Team[1];
    	else if( .Members[1] < 1 ) set .Winner,.Team[0];
    			
    	if( .Winner ){
    		mapannounce .Map$,"Team "+getpartyname( .Winner )+" Win the "+.No+"vs"+.No+" Game.",0;
    		donpcevent strnpcinfo(0)+"::OnReset";
    	}else{
    		warp "prontera",155,181;
    	}
    }
    end;
    				
    OnInit:
    set .GMLevel,80;
    set .Map$,"06guild_01";
    end;
    }
    
    06guild_01	mapflag	nobranch
    06guild_01	mapflag	nowarpto
    06guild_01	mapflag	nowarp
    06guild_01	mapflag	nogo
    06guild_01	mapflag	pvp
    06guild_01	mapflag	noreturn
    06guild_01	mapflag	nosave
    06guild_01	mapflag	nomemo

    thnx for the help

    Comment out this line
     

    Quote

    sleep2 2000;

     

    • Love 1
  7. On ‎8‎/‎24‎/‎2017 at 6:36 PM, jasonch said:

    Hmmm, should've made myself clearer. Sorry. What I actually wanted is that the character has the ability to choose what value to set for each value on the the array.

    For example: The character chooses on a menu the value "2" on the an array "arrayname[0]", then chooses again "3" on arrayname[1], 1 on arrayname[2], and so on...
    Then it will attach to the char: arrayname[0], 2, 3, 1,.....

    Is it possible? And how do I call that values attach to the char? So the NPC will say: You chose values 2, 3 ,1, so on....
     

    From your comment I think what you want are each character can define their own array order but not attaching array to character.
    So player A may have arrayname,2,3,1;
    Player B may have arrayname,3,1,2;
    Is this what you want or am I wrong?

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

  9. 2 minutes ago, Badarosk0 said:

     

    Hi, I'm having trouble running the event. When I click on the Spot Test nothing happens and I get the following error:

    [Debug]: script debug : 0 110150052 : Monster Controller: Not Found
    [Debug]: script debug : 0 110150481 : Monster Controller: Not Found
    [Info]: npc_parse_function: Overwriting user function [arrfind_fishdb] (npc/realro/eventos/disguise.txt:588)
    [Info]: npc_parse_function: Overwriting user function [arrget_fishdb] (npc/realro/eventos/disguise.txt:598)

    New version uploaded. Pending for approval.
    //= 1.2.2 Remove function (arrfind_fishdb , arrfind_fishdb)
    //=       Change function name (arrfind_fishdb > arrfind_db, arrget_fishdb > arrget_db)
    //=       Remove function name arrfind_db and arrget_fishdb and added it to common library
    //= 1.2.2a Add a hard fish example

  10. 2 hours ago, raste28 said:

    can you teach me how to use 00webhos?

    Sorry for late reply, but I think I don't have the time to guide you step by step on how to host@@
    If you totally have no knowledge on hosting you may try host it locally by using XAMMP first, after you success about XAMMP on your local computer then you can copy the website file to real hosting.

    *Just a note that XAMMP are merely for development purpose, don't ever try to use it for real hosting unless you know what you are doing.

  11. Just now, estoudegreve said:

     

    i dont want erros, i dont have erros now, but can it cause a bug on my server?

    It will not cause any problem in your server since it just the client can't found the require model. Basically just a visual problem so nothing to worry about.

    • Upvote 1
×
×
  • Create New...