Jump to content

wwshakioww

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by wwshakioww

  1. 16 hours ago, AnnieRuru said:
    
    prontera,155,185,4	script	Kafra Follower	1_F_MARIA,{
    	if ( .masteraid ) {
    		if ( .masteraid != getcharid(3) ) {
    			mes "already have a master";
    			close;
    		}
    		else {
    			mes "do whatever you like to me ^.^";
    			next;
    			if ( select("buff", "open storage") == 1 ) {
    				specialeffect2 EF_INCAGILITY;
    				sc_start SC_INCREASEAGI,240000,10;
    				specialeffect2 EF_BLESSING;
    				sc_start SC_BLESSING,240000,10;
    				close;
    			}
    			close2;
    			openstorage;
    			end;
    		}
    	}
    	mes "my master ?";
    	next;
    	select "Yes";
    	.masteraid = getcharid(3);
    	close2;
    	while ( .masteraid ) {
    		attachrid .masteraid;
    		getmapxy .@map$, .@x, .@y, UNITTYPE_PC;
    		getmapxy .@map1$, .@x1, .@y1, UNITTYPE_NPC;
    		if ( .@map$ != .@map1$ || distance( .@x, .@y, .@x1, .@y1 ) > 15 ) {
    			while ( checkcell( .@map$, .@x2 = .@x + rand(-2,2), .@y2 = .@y + rand(-2,2), cell_chknopass ) );
    			unitwarp getnpcid(0), .@map$, .@x2, .@y2;
    		}
    		else if ( distance( .@x, .@y, .@x1, .@y1 ) > 5 ) {
    			while ( checkcell( .@map$, .@x2 = .@x + rand(-2,2), .@y2 = .@y + rand(-2,2), cell_chknopass ) );
    			npcwalkto .@x2, .@y2;
    		}
    		sleep 250;
    	}
    	unitwarp getnpcid(0), "prontera", 155,185;
    	end;
    OnInit:
    	npcspeed 100;
    	end;
    OnPCLogoutEvent:
    	if ( .masteraid == getcharid(3) )
    		.masteraid = 0;
    	end;
    }

    a simple OnPCLogoutEvent should let the npc go back to its location

    Wow !!

    It's perfect.
    That's more than the script I wanted

    Thank you very much
    I was impressed with your letters.

     

    I'm sorry, can I ask you one more question?

    how can i this script Timer 10 min ?

     

  2. 9 hours ago, n0tttt said:

    If you don't have a problem with the NPC moving anywhere and then other players unable to do the quest until the NPC arrives, then...

    
    	if(.m$ == "") {
    		getmapxy .m$,.x,.y,UNITTYPE_NPC;
    		doevent strnpcinfo(0)+"::OnFollow";
    	}
    	end;
    
    OnFollow:
    
    	.@npc_id = getnpcid(0);
    	.@time = 10*60/2;
    	while(.@timer < .@time && playerattached()) {
    		getmapxy .@m0$,.@x0,.@y0,UNITTYPE_PC;
    		getmapxy .@m1$,.@x1,.@y1,UNITTYPE_NPC;
    		.@dis = distance(.@x0,.@y0,.@x1,.@y1);
    		getfreecell .@m0$,.@x1,.@y1,.@x0,.@y0,2,2,1|4;
    		if(.@dis > 14 || .@m0$ != .@m1$)
    			unitwarp .@npc_id,.@m0$,.@x1,.@y1;
    		else
    			npcwalkto .@x1,.@y1;
    		.@timer++;
    		sleep2 2000;
    	}
    	unitwarp .@npc_id,.m$,.x,.y;
    	.m$ = "";
    	.x = .y = 0;
    	end;

     

    wow !! very good !! +A+♥ Awesome !!

    Thank you very much !!

  3. 9 hours ago, n0tttt said:

    If you don't have a problem with the NPC moving anywhere and then other players unable to do the quest until the NPC arrives, then...

    
    	if(.m$ == "") {
    		getmapxy .m$,.x,.y,UNITTYPE_NPC;
    		doevent strnpcinfo(0)+"::OnFollow";
    	}
    	end;
    
    OnFollow:
    
    	.@npc_id = getnpcid(0);
    	.@time = 10*60/2;
    	while(.@timer < .@time && playerattached()) {
    		getmapxy .@m0$,.@x0,.@y0,UNITTYPE_PC;
    		getmapxy .@m1$,.@x1,.@y1,UNITTYPE_NPC;
    		.@dis = distance(.@x0,.@y0,.@x1,.@y1);
    		getfreecell .@m0$,.@x1,.@y1,.@x0,.@y0,2,2,1|4;
    		if(.@dis > 14 || .@m0$ != .@m1$)
    			unitwarp .@npc_id,.@m0$,.@x1,.@y1;
    		else
    			npcwalkto .@x1,.@y1;
    		.@timer++;
    		sleep2 2000;
    	}
    	unitwarp .@npc_id,.m$,.x,.y;
    	.m$ = "";
    	.x = .y = 0;
    	end;

     

    I was very impressed with your answer.
    Let's run this script ?

  4. 3 hours ago, pajodex said:

    네, 사실 저는 당신을 전체 코드에서 제외시키지 않았습니다, 당신이 직접하는 법을 배우기를 바랍니다.

    팁 : * getmapxy에 대한 정보 

    Very Thx ?

    very very Thx +_+;;

  5. 9 hours ago, pajodex said:

    (.time <60 * 10) {// 60 초 × 10 분 = 10의 사촌 10 분으로 설정하면서 getmapxy ( @지도. $, @. X , Y @. , UNITTYPE_PC); // 캐릭터의 맵을 얻는다. xy - 아직 UNITTYPE_ 또는 BL_npcspeed 200을 사용하고 있는지 확실하지 않다 . // 설정 NPC 보행 속도 npcwalkto . @ X , Y @. ; // npc는 플레이어 좌표로 이동합니다 . time ++; 수면 1000; }

    Thank you very much !! pajodex +_+;;

    But it only moves once at first, then it does not work because there is no "Attached" connection

    I looked up script_command in the doc folder and it did not work

     

    dfsgsdfag.png

  6. 4 hours ago, pajodex said:

    그러면 @storage 명령을 사용하고 buff에는 항상 항목 스크롤이 있습니까?

    내가 틀렸다고 생각하지 않는다면, 애호가들 에게 줄 수있는 애완 동물이 있습니다 . 확실하지는 않지만 (결코 시도하지 않았습니다).

     

    추신 : 힐러 / 버퍼 npcs 여기에 많이 있습니다. 당신은 검색 창에서 그들을 찾을 수 있습니다.

    Thx for your answer ?

    I just want to make a NPC following for 10 minutes.

    I wonder how it is possible?

    I want to make sure I follow it for a fixed amount of time.

     

  7. I want npc to follow my character after the conversation
    A script that can write buffs or open a warehouse as needed

    Can anyone do this?

    I used to see the "Dedicated Poring" script, which was problematic.
    Please help me :D

     

     

  8. 5 hours ago, luizragna said:

    16 진수 버전입니까? iteminfo .lua 또는  .lub 사용을 합니까?

    안녕하세요 ?

    I want to know how to use "Lua & Lub" file 

     

    1 hour ago, hendra814 said:

    문제는 iteminfo_sak.lua가 아닌 항목이 있습니다 iteminfo 파일을 읽는 것입니다.

    oh !!

    i found iteminfo_sak.lua file.

    but .. my client is not reading this files...

    OMG..

     

×
×
  • Create New...