prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; npctalk callfunc( "F_RandMes", 2, "I'm talking.", // 1 "Hello!" // 2 ); } end;}
prontera,150,150,0 script Sample 100,{ .@x = rand(100,500); .@y = rand(100,500); if ( checkcell( strnpcinfo(4), .@x, .@y, cell_chkpass ) ) movenpc strnpcinfo(1), .@x, .@y; end;}
Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; npctalk callfunc( "F_RandMes", 2, "I'm talking.", // 1 "Hello!" // 2 ); } end;}
comment out npctalk ....Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; npctalk callfunc( "F_RandMes", 2, "I'm talking.", // 1 "Hello!" // 2 ); } end;}
How about if I will disable the talking?
because the NPC spams alot. XD could u teach me how to disable it please?
The problem is it doesn't walk anymore..comment out npctalk ....Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{
end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"I'm talking.", // 1
"Hello!" // 2
);
}
end;
}
How about if I will disable the talking?
because the NPC spams alot. XD could u teach me how to disable it please?
// npctalk callfunc( "F_RandMes", 2,
// "I'm talking.", // 1
// "Hello!" // 2
prontera,150,150,5 script Sample 100,{ end;OnInit: while (1) { do { .@x = rand(100,500); .@y = rand(100,500); } while (!checkcell(strnpcinfo(4),.@x,.@y,cell_chkpass)); npcwalkto .@x, .@y; sleep 500; } end;}
comment out npctalk ....Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{ end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"I'm talking.", // 1
"Hello!" // 2
);
}
end;
}
How about if I will disable the talking?
because the NPC spams alot. XD could u teach me how to disable it please?
// npctalk callfunc( "F_RandMes", 2,
// "I'm talking.", // 1
// "Hello!" // 2
The problem is it doesn't walk anymore..
prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; } end;}
[Error]: script:callfunc: function not found! [F_RandMes]
The problem is it doesn't walk anymore..comment out npctalk ....Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{
end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"I'm talking.", // 1
"Hello!" // 2
);
}
end;
}
How about if I will disable the talking?
because the NPC spams alot. XD could u teach me how to disable it please?
// npctalk callfunc( "F_RandMes", 2,
// "I'm talking.", // 1
// "Hello!" // 2
prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; } end;}
[Error]: script:callfunc: function not found! [F_RandMes]
The problem is it doesn't walk anymore..comment out npctalk ....Using this now and its perfect.http://rathena.org/board/topic/74196-walkable-and-talkable-npc/?p=155955
try Annie's script
prontera,156,177,5 script kdjfhkshf2 100,{
end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"I'm talking.", // 1
"Hello!" // 2
);
}
end;
}
How about if I will disable the talking?
because the NPC spams alot. XD could u teach me how to disable it please?
// npctalk callfunc( "F_RandMes", 2,
// "I'm talking.", // 1
// "Hello!" // 2
prontera,156,177,5 script kdjfhkshf2 100,{ end;OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; } end;}
doesnt work on latest rev
//= 2.17 Renamed 'F_RandMes' to 'F_Rand'. [Euphy]
[Error]: script:callfunc: function not found! [F_RandMes]
- npctalk callfunc("F_RandMes", 2, "I'm talking.","Hello!");+ npctalk callfunc("F_Rand","I'm talking.","Hello!");
izlude,130,135,5 script Payon Soldier 105,{ end; OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; } end;}
NPC don't have walk animation, use monster sprite ID , if you want walk animation.How can i make this one use the "walk animation" instead of "sliding"???
Code:izlude,130,135,5 script Payon Soldier 105,{ end; OnInit: .@interval = 5; .@step = 5; while (1) { sleep .@interval * 1000; getmapxy .@map$, .@x, .@y, 1; while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) ); npcwalkto .@npc_x, .@npc_y; } end;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.