Easy...
NPC Code:
// NPC by Ice Pick
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
hearts = 3;
}
if(strequals(#g,your guild)&&strequals(#c,move)) {
this.move = 1;
timeout = 0.05;
if(x = 11) {
this.move = 2;
if(y = 10) {
this.move = 3;
}
}
}
if(this.move = 1) {
dir = 3;
x+=0.2;
setcharani walk,;
timeout = 0.05;
}
if(this.move = 2) {
dir = 2;
y+=0.2;
setcharani walk,;
timeout = 0.05;
}
if(this.move = 3) {
dir = 1;
setcharani idle,;
x=x;
y=y;
}
you can change the x, and y's arround if you want. I just put thoughs in their to test it.
this.move = 1 is for moving right
this.move = 2 is for moving down
this.move = 3 is for turning left and stoping.