Added setting of state.speed_changed in script function 'npcspeed'.
Should fix the walking npc display problem (bugreport:2434). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13378 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
8f4832ca4c
commit
ae7050eb1a
@ -10995,13 +10995,16 @@ BUILDIN_FUNC(npctalk)
|
||||
// change npc walkspeed [Valaris]
|
||||
BUILDIN_FUNC(npcspeed)
|
||||
{
|
||||
struct npc_data *nd=(struct npc_data *)map_id2bl(st->oid);
|
||||
int x=0;
|
||||
struct npc_data* nd;
|
||||
int speed;
|
||||
|
||||
x=script_getnum(st,2);
|
||||
speed = script_getnum(st,2);
|
||||
nd =(struct npc_data *)map_id2bl(st->oid);
|
||||
|
||||
if(nd) {
|
||||
nd->speed=x;
|
||||
if( nd )
|
||||
{
|
||||
nd->speed = speed;
|
||||
nd->ud.state.speed_changed = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user