Jump to content
  • 0

Requesting a guide npc


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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~~

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/12/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  10/06/12
  • Last Seen:  

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
Link to comment

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Posted · Hidden by Capuche, August 13, 2013 - a bump hiden
Hidden by Capuche, August 13, 2013 - a bump hiden

bump

Link to comment

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/12/13
  • Last Seen:  

May be possible. But then again, a lot of bugs might be present like obstruction of npc's path, when npc gets clicked it stops.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

This is a brilliant idea, can someone help?



belphegor how about it is not allow to be click until it reach its destination?
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
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.

×
×
  • Create New...