prontera,155,185,5 script jsdfksdjf 1_F_MARIA,{
if ( .mobid ) end;
.mobid = monster( "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(3)+"::Onaaa" );
setunitdata .mobid, UDT_MAXHP, 1000000;
setunitdata .mobid, UDT_HP, 1000000;
while ( .mobid ) {
npctalk "Poring HP is now "+( getunitdata( .mobid, UDT_HP ) / 10000 )+"%";
sleep 2000;
}
end;
Onaaa:
.mobid = 0;
end;
}
... although this script is working but ... my map-server.exe spam error ...
check the script command in script.c
... Line 19671
}
break;
default:
ShowError("buildin_getunitdata: Unknown object!\n");
script_pushint(st, 0);
return false;
} // end of bl->type switch
#undef getunitdata_sub
return false; <<----- WTF PUT A RETURN FALSE FOR WHAT REASON !!!
}