Jump to content
  • 0

Requesting a guide npc


Question

Posted

Hello cmsm94 here,

I am requesting a npc that will do the follow:

1, its a npc that will move.

2. if you click that npc and want to know where is this place located forexample weapon shop, it will move to that place.

3. then it will walk back to its original position

4. only a person can use that if he/she have an item which activates the npc.

 

My second request is.

A guard npc.

Its a poring that move 4 front step and 4 back steps unlimitedly.

It is like a infomation npc which moves.

 

 

Does anyone know? btw is this possible? @>@?



bump



bump~~

6 answers to this question

Recommended Posts

Posted (edited)

Well, say you put.

 

if($walking==1) end;

 

It'll still stop walking. Why not just make the guide warp to the selected location with the player, some 

 

npctalk "We're here!";

sleep 3000;

npctalk "I better be going now.";

movenpc strnpcinfo(0)+", $dx, $dy;

 

Something like that.

 

EDIT:

 

Unless you put in something like

 

if($walking==1)

{

   npctalk "I'm busy.";

   sleep 3000;

   npcspeed 1;

   npcwalkto $x,$y;

}

 

And in the main script you put in something like

 

mes "Pick a location.";

switch(select("Blacksmith:Rental"))

{

   case 1:

   {

      mes "Alright.";

      close2;

      set $x, 9999; // real X coords here.

      set $y, 9999; // real Y coords here.

      set $walking,1;

      npcspeed 1;

      npcwalkto $x,$y;

   }

   case 2:

   {

    second location here.

   }

 

Still just a concept though. I'll try this out when i have the time. Well, hopefully someone's taking the time to make one. 

Edited by belphegor
  • 1
Posted

prontera,155,181,5	script	Sample	757,{

end;

OnInit:

npcspeed 200;

while( 1 ){

npcwalkto rand( 150,160 ),rand( 175,185 );

sleep 15000;

}

end;

}

prontera,155,181,5	script	Sample	757,{

if( .location ) end;

set .location,select( implode( .map_name$,":" ) );

close2;

while( .location ){

npcwalkto .npc_x[.location-1],.npc_y[.location-1];

sleep 5000;

getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 );

if( .@npc_x == .coordinate_y[.location-1] && .@npc_y == .coordinate_y[.location-1] ){

npctalk "You reached..";

set .location,0;

sleep 3000;

break;

}

}

movenpc strnpcinfo(0),.npc_x,.npc_y;

end;

OnInit:

npcspeed 200;

getmapxy( .npc_map$,.npc_x,.npc_y,1 );

setarray .map_name$,"Location 1","Location 2","Location 3";

setarray .coordinate_x,150,160,170;

setarray .coordinate_y,174,180,160;

end;

}

  • Upvote 1
Posted (edited) · Hidden by Capuche, August 13, 2013 - He asks me to delete so..
Hidden by Capuche, August 13, 2013 - He asks me to delete so..

Oops. Wrong thread. Sorry. Delete my post please.

Edited by IceTea

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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